Show
Ignore:
Timestamp:
07/04/08 03:46:13 (5 months ago)
Author:
krobillard
Message:

Thune

  • Implemented date!. Added ur_arrayExpand(), save.

ThuneGL

  • Added line-edit widget, blit, move-glyphs.
  • Can now make font from texture & binary.
  • Optimized renderGlyphXY() a bit.
  • twidget close event handler works again.
  • Updated thune-gl.spec for renamed glv RPM.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/doc/GLManual

    r537 r540  
    6464:: 
    6565 
    66     (raster! w,h,b -- raster) 
     66    (raster! w,h,bpp -- raster) 
    6767 
    6868 
     
    7878Font 
    7979---- 
    80 :: 
    81  
    82     (font! ["font.name" 20 "chars abc" 256,128] -- font) 
     80 
     81Fonts 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 
     86Font components can be selected with:: 
     87 
     88    font/raster 
     89    font/texture 
     90    font/binary     ; Glyph data 
    8391 
    8492 
     
    137145gl-max-textures   ( -- count)             GL_MAX_TEXTURE_UNITS 
    138146shadowmap         (size -- framebuffer)   Create shadowmap                
     147blit              (dst src coord -- dst)  Copy from one raster to another 
     148move-glyphs       (font offset -- font)   Move texture position of glyphs 
    139149================  ======================  ====================== 
    140150 
     
    261271scale             vec3!/number!           glScalef() 
    262272font              font!                   Set font used by text instruction 
     273font/no-bind      font!                   Set font, but don't bind texture 
    263274text              [coord!] text           Draw text in current font 
    264275sphere            radius slices,stacks    Draw textured GLUT sphere