Changeset 442 for branches/thune/thread_safe/doc/GLManual
- Timestamp:
- 08/05/07 00:26:17 (16 months ago)
- Files:
-
- 1 modified
-
branches/thune/thread_safe/doc/GLManual (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/thune/thread_safe/doc/GLManual
r383 r442 169 169 ================ ====================== ====================== 170 170 lerp_ (val1 val2 t -- valt) 171 curve-value_ (curve t -- valt) 171 172 ================ ====================== ====================== 172 173 173 174 174 175 lerp 176 ++++ 177 178 Does a linear interpolation between two values of the same type 179 (decimal!, vec3!, or coord!). 180 181 This is the calculation used:: 182 183 result = v1 + ((v2 - v1) * t) 184 185 Stack usage:: 186 187 (v1 decimal!/vec3!/coord! 188 v2 decimal!/vec3!/coord! 189 t decimal! 190 -- decimal!/vec3!/coord!) 191 192 193 curve-value 175 194 +++++++++++ 176 195 177 Does a linear interpolation between two decimal or two vec3 values. 178 179 :: 180 181 (decimal!/vec3! decimal!/vec3! decimal! -- decimal!/vec3!) 196 Returns value on curve at time t. Currently only linear segments are 197 implemented. 198 199 Stack usage:: 200 201 (block! decimal!/int! -- value) 202 203 Example:: 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 182 210 183 211 … … 196 224 clear glClear() 197 225 call draw-list 226 enable/F glEnable() 227 disable/F glDisable() 198 228 solid Draw without textures 199 229 model Draw with texture (will be changed) … … 212 242 font font! Draw with font 213 243 text [coord!] text Draw text in current font 244 sphere radius slices,stacks Draw textured GLUT sphere 214 245 shader shader!/none!/0 Load shader 215 246 framebuffer framebuffer!/none!/0 Bind framebuffer
