Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefont improvements #213

Merged
merged 5 commits into from
Jan 14, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added font and texture size info to header comment
  • Loading branch information
einsteinx2 committed Aug 23, 2019
commit 6d48d0e443dc17ff775859bea7fd1c71b91cdd39
14 changes: 13 additions & 1 deletion makefont.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,19 @@ int main( int argc, char **argv )
" * those of the authors and should not be interpreted as representing official\n"
" * policies, either expressed or implied, of Nicolas P. Rougier.\n"
" * ============================================================================\n"
" */\n");
" */\n\n");

fprintf( file,
"/* ============================================================================\n"
" * Parameters\n"
" * ----------------------------------------------------------------------------\n"
" * Font size: %f\n"
" * Texture width: %d\n"
" * Texture height: %d\n"
" * Texture depth: %d\n"
" * ===============================================================================\n"
" */\n\n",
font_size, atlas->width, atlas->height, atlas->depth);


// ----------------------
Expand Down