Show
Ignore:
Timestamp:
08/05/07 00:26:17 (16 months ago)
Author:
krobillard
Message:

Added ++/-- to replace word inc/dec.
Renamed UR_FLAG_EOL as UR_FLAG_SOL.
GL - Added 'sphere draw opcode and 'curve-value call.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/doc/GLManual

    r383 r442  
    169169================  ======================  ====================== 
    170170lerp_             (val1 val2 t -- valt) 
     171curve-value_      (curve t -- valt) 
    171172================  ======================  ====================== 
    172173 
    173174 
    174175lerp 
     176++++ 
     177 
     178Does a linear interpolation between two values of the same type 
     179(decimal!, vec3!, or coord!). 
     180 
     181This is the calculation used:: 
     182 
     183        result = v1 + ((v2 - v1) * t) 
     184 
     185Stack usage:: 
     186 
     187    (v1 decimal!/vec3!/coord! 
     188     v2 decimal!/vec3!/coord! 
     189     t  decimal! 
     190     -- decimal!/vec3!/coord!) 
     191 
     192 
     193curve-value 
    175194+++++++++++ 
    176195 
    177 Does a linear interpolation between two decimal or two vec3 values. 
    178  
    179 :: 
    180  
    181     (decimal!/vec3!  decimal!/vec3! decimal! -- decimal!/vec3!) 
     196Returns value on curve at time t.  Currently only linear segments are 
     197implemented. 
     198 
     199Stack usage:: 
     200 
     201    (block!  decimal!/int! -- value) 
     202 
     203Example:: 
     204 
     205    [0.0  2.0 
     206     0.5  7.0 
     207     1.0  7.0 
     208     8.0  2.0] 3 curve-value 
     209    = 5.57143 
    182210 
    183211 
     
    196224clear                                     glClear() 
    197225call              draw-list 
     226enable/F                                  glEnable() 
     227disable/F                                 glDisable() 
    198228solid                                     Draw without textures 
    199229model                                     Draw with texture (will be changed) 
     
    212242font              font!                   Draw with font 
    213243text              [coord!] text           Draw text in current font 
     244sphere            radius slices,stacks    Draw textured GLUT sphere 
    214245shader            shader!/none!/0         Load shader 
    215246framebuffer       framebuffer!/none!/0    Bind framebuffer