Changeset 37396 in project


Ignore:
Timestamp:
03/17/19 12:34:33 (13 months ago)
Author:
Kooda
Message:

Document gl-type for CHICKEN 5

File:
1 copied

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/gl-type

    r37394 r37396  
    88
    99=== Requirements
     10* srfi-1
     11* srfi-13
     12* srfi-14
    1013* freetype
    1114* gl-utils
    1215* miscmacros
    13 * opengl-glew
     16* epoxy
    1417
    1518
     
    2932<procedure> (string-mesh STRING FACE [line-spacing: SPACING] [max-width: MAX-WIDTH] [x: X] [y: Y] [mesh: MESH])</procedure>
    3033
    31 Render the given {{STRING}} into a [[http://api.call-cc.org/doc/gl-utils/mesh|gl-utils mesh]] with the provided {{FACE}}. {{SPACING}} is multiplied by the standard line advancement – a smaller spacing results in less space between successive lines – defaults to {{1.3}}. If {{MAX-WIDTH}} is provided, the string will be word-wrapped such that it does not exceed the given width. {{X}} and {{Y}} may be given to provide an offset to the rendered string’s origin. {{MESH}} may be supplied in order to reuse a mesh previously created with {{string-mesh}}. When {{MESH}} is supplied, the number of graphical characters (non-whitespace characters in the char-set of {{FACE}}) in {{STRING}} must be equal to or less than the number of graphical characters in the string used to create {{MESH}}.
     34Render the given {{STRING}} into a [[https://api.call-cc.org/5/doc/gl-utils/mesh|gl-utils mesh]] with the provided {{FACE}}. {{SPACING}} is multiplied by the standard line advancement – a smaller spacing results in less space between successive lines – defaults to {{1.3}}. If {{MAX-WIDTH}} is provided, the string will be word-wrapped such that it does not exceed the given width. {{X}} and {{Y}} may be given to provide an offset to the rendered string’s origin. {{MESH}} may be supplied in order to reuse a mesh previously created with {{string-mesh}}. When {{MESH}} is supplied, the number of graphical characters (non-whitespace characters in the char-set of {{FACE}}) in {{STRING}} must be equal to or less than the number of graphical characters in the string used to create {{MESH}}.
    3235
    3336Strings are rendered with the upper-left corner of the text at the origin, with the dimensions of the mesh set in pixels. The mesh that is created has vertex attributes {{position}} – a 2 element {{#:float}} – and {{tex-coord}} – a 2 element normalized {{#:ushort}}, and {{#:ushort}} indices.
     
    4346
    4447=== Examples
    45 See the [[https://github.com/AlexCharlton/gl-type/tree/master/examples|examples directory]].
     48See the [[https://www.upyum.com/cgit.cgi/gl-type/tree/examples|examples directory]].
    4649
    4750
    4851=== Version history
     52
     53==== Version 0.4.0
     54* Maintenance given to [[/users/kooda|Kooda]]
     55* Port to CHICKEN 5
     56
    4957
    5058==== Version 0.3.0
     
    6573
    6674=== Source repository
    67 Source available on [[https://github.com/AlexCharlton/gl-type|GitHub]].
     75Source available [[https://www.upyum.com/cgit.cgi/gl-type/|here]]
    6876
    69 Bug reports and patches welcome! Bugs can be reported via GitHub or to alex.n.charlton at gmail.
     77Bug reports and patches welcome! Bugs can be reported to kooda@upyum.com
    7078
    7179
    72 === Author
     80=== Authors
    7381Alex Charlton
     82
     83Adrien (Kooda) Ramos
    7484
    7585
    7686=== License
    7787BSD
     88
Note: See TracChangeset for help on using the changeset viewer.