Changeset 540 for trunk/thune/doc/GLManual
- Timestamp:
- 07/04/08 03:46:13 (5 months ago)
- Files:
-
- 1 modified
-
trunk/thune/doc/GLManual (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/doc/GLManual
r537 r540 64 64 :: 65 65 66 (raster! w,h,b -- raster)66 (raster! w,h,bpp -- raster) 67 67 68 68 … … 78 78 Font 79 79 ---- 80 :: 81 82 (font! ["font.name" 20 "chars abc" 256,128] -- font) 80 81 Fonts can be created from a TrueType file or from a raster and binary:: 82 83 (font! ["font-file.ttf" 20 char-set 256,128] -- font) 84 (font! [raster!/texture! binary!] -- font) 85 86 Font components can be selected with:: 87 88 font/raster 89 font/texture 90 font/binary ; Glyph data 83 91 84 92 … … 137 145 gl-max-textures ( -- count) GL_MAX_TEXTURE_UNITS 138 146 shadowmap (size -- framebuffer) Create shadowmap 147 blit (dst src coord -- dst) Copy from one raster to another 148 move-glyphs (font offset -- font) Move texture position of glyphs 139 149 ================ ====================== ====================== 140 150 … … 261 271 scale vec3!/number! glScalef() 262 272 font font! Set font used by text instruction 273 font/no-bind font! Set font, but don't bind texture 263 274 text [coord!] text Draw text in current font 264 275 sphere radius slices,stacks Draw textured GLUT sphere
