Changeset 309 for trunk/thune/gl
- Timestamp:
- 11/09/06 02:31:27 (2 years ago)
- Location:
- trunk/thune/gl
- Files:
-
- 2 modified
-
draw_list.c (modified) (2 diffs)
-
test.t (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/gl/draw_list.c
r306 r309 352 352 else 353 353 { 354 w *= 0.5; // * aspect 355 h *= 0.5; 356 glOrtho( -w, w, -h, h, 354 glOrtho( 0, w, 0, h, 357 355 number_d( ctxCells + CAM_CTX_NEAR ), 358 356 number_d( ctxCells + CAM_CTX_FAR ) ); … … 692 690 break; 693 691 692 case DOP_TRANSLATE: 693 ++pc; 694 VAL_WORD_OR_PC 695 if( ur_is(val, UT_VEC3) ) 696 { 697 glTranslatef( val->vec3.xyz[0], 698 val->vec3.xyz[1], 699 val->vec3.xyz[2] ); 700 } 701 break; 702 703 case DOP_ROTATE: 704 break; 705 694 706 case DOP_SCALE: 695 707 { -
trunk/thune/gl/test.t
r306 r309 9 9 10 10 10.0 :zoom 11 12 0.0,0.0,0.0 :center 11 13 12 14 [ … … 155 157 156 158 dup :.t 157 .t/3 2 div :.t/3158 .t/4 2 div :.t/4159 .t/3 2 div dup :center/x :.t/3 160 .t/4 2 div dup :center/y :.t/4 159 161 .t :visual-cam/viewport 160 162 ] … … 194 196 lighting off 195 197 push 198 translate center 196 199 scale zoom 197 200 call bg-list … … 199 202 200 203 font fontA color $ffffff 201 text "Hello^/There"204 text 0,400 "Line 1^/Line 2" 202 205 text "More" 203 text -200,-200 "-200,-200"206 text 200,200 "200,200" 204 207 text mouse-pos mouse-pos 205 208 206 209 font fontF 207 text 0, 40 "Ceti Alpha III"210 text 0,0 "ZERO" 208 211 209 212 ;children ['draw get do] iter
