summaryrefslogtreecommitdiff
path: root/2d/font.scm
Commit message (Collapse)AuthorAgeFilesLines
* Add more texture anchor types.David Thompson2014-03-311-1/+1
| | | | | | | | * 2d/texture.scm (anchor-texture): Add top-right, bottom-left, bottom-right, top-center, and bottom-center anchor types. * 2d/font.scm (make-label): Don't call anchor-texture when there is no texture.
* Fix crash when the empty string is used for a label.David Thompson2014-03-301-11/+15
| | | | | | * 2d/font.scm (render-text): Bail when surface is #f. (make-label): Don't make vertices when there is no texture. (draw-label): Don't draw when there is no texture.
* Don't load font shaders upon importing (2d font) module.David Thompson2014-03-291-10/+15
| | | | | | | * 2d/font.scm (font-shader): Set to #f initially. (enable-fonts): New procedure. * examples/font.scm: Enable fonts.
* Replace figl with the new guile-opengl official release.David Thompson2014-03-231-3/+2
|
* Change license to GPLv3+.David Thompson2014-03-081-8/+8
|
* Import new signal moduleDavid Thompson2014-02-171-1/+1
| | | | | | * 2d/font.scm: Import (2d signal). * 2d/game.scm: Import (2d signal). * 2d/sprite.scm: Import (2d signal).
* Rewrite font module.David Thompson2014-02-161-82/+106
| | | | | | | | | | | | | | FTGL has been dropped in favor of SDL_ttf. * 2d/font: Rewrite everything! * 2d/wrappers/ftgl.scm: Delete it. * configure.ac: Check for SDL_ttf. * data/Makefile.am (shaders_DATA): Add font shaders. * data/shaders/font-fragment.glsl: New shader. * data/shaders/font-vertex.glsl: New shader. * examples/font.scm: Rewrite font example. * examples/fonts/AUTHORS: Delete it. * examples/fonts/Boxy-Bold.ttf: Delete it.
* Don't load default font upon module import.David Thompson2014-02-151-3/+3
| | | | | * 2d/font.scm (default-font): Delete variable. (load-default-font): New procedure.
* Add a convenient default font.David Thompson2014-02-111-1/+6
| | | | | | | | | * data/fonts/DejaVuSans.ttf: New file. * data/fonts/AUTHORS: New file. * data/Makefile.am: New file. * configure.ac (AC_CONFIG_FILES): Add 'data/Makefile'. * Makefile.am (SUBDIRS): Add 'data'. * 2d/font.scm (default-font): New variable.
* Don't export font-ftgl-font procedure.David Thompson2014-01-261-1/+0
| | | | * 2d/font.scm: Remove font-ftgl-font from export list.
* Clean up docstrings in font module.David Thompson2013-09-151-2/+5
|
* Rename apply-color to use-color.David Thompson2013-08-271-1/+1
|
* Add procedures to perform a gl-translate or gl-scale given a vector2 object.David Thompson2013-08-271-8/+7
|
* Replace old vector module with new vector2 module.David Thompson2013-08-271-1/+1
|
* Make the origin the top-left corner of the window again.David Thompson2013-08-261-3/+14
|
* Create textbox type.David Thompson2013-08-181-12/+43
|
* Change render-font to draw-font and don't any matrix or color manipulation.David Thompson2013-08-181-8/+7
|
* Change render-font procedure.David Thompson2013-08-181-13/+37
|
* Use color module in font module.David Thompson2013-08-171-1/+2
|
* Create basic font module.David Thompson2013-08-171-0/+54