Changeset 486
- Timestamp:
- 10/15/07 04:51:18 (11 months ago)
- Location:
- trunk/thune/gl
- Files:
-
- 3 modified
-
draw_list.c (modified) (1 diff)
-
gx.c (modified) (5 diffs)
-
scripts/cloud.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/gl/draw_list.c
r458 r486 1197 1197 break; 1198 1198 1199 case DOP_IMAGE: // image [x,y] texture1199 case DOP_IMAGE: // image[/trans] [x,y] texture 1200 1200 { 1201 1201 GLfloat x, y; -
trunk/thune/gl/gx.c
r485 r486 29 29 #include "glh.h" 30 30 #include "gx.h" 31 #include "urlan_atoms.h" 31 32 #include "gx_atoms.h" 32 33 #include "audio.h" … … 1383 1384 } 1384 1385 1386 behav = vc + CI_ANIM_BEHAVIOR; 1387 if( ur_is(behav, UT_NONE) ) // Return early if inactive 1388 return 1; 1389 1385 1390 curve = vc + CI_ANIM_CURVE; 1386 1391 if( ! ur_is(curve, UT_BLOCK) ) … … 1397 1402 } 1398 1403 1399 behav = vc + CI_ANIM_BEHAVIOR; 1404 period = ur_decimal(vc + CI_ANIM_PERIOD); 1405 timec = vc + CI_ANIM_TIME; 1406 1400 1407 if( ur_is(behav, UT_INT) ) 1401 1408 { 1402 period = ur_decimal(vc + CI_ANIM_PERIOD);1403 1404 timec = vc + CI_ANIM_TIME;1405 1409 dt += ur_decimal(timec); 1406 1410 if( dt > period ) … … 1417 1421 } 1418 1422 } 1419 else 1420 { 1421 ur_decimal(timec) = dt; 1422 } 1423 1423 cval: 1424 ur_decimal(timec) = dt; 1424 1425 if( (period != 1.0) && (period > 0.0) ) 1425 1426 dt /= period; … … 1427 1428 return _curveValue( ut, curve, value, dt ); 1428 1429 } 1429 #if 0 1430 else if( ur_is(cell, UT_WORD) ) 1431 { 1432 switch( ur_atom(cell) ) 1430 else if( ur_is(behav, UT_WORD) ) 1431 { 1432 switch( ur_atom(behav) ) 1433 1433 { 1434 1434 case UR_ATOM_LOOP: 1435 dt += ur_decimal(timec); 1436 if( dt > period ) 1437 dt -= period; 1438 goto cval; 1439 1440 /* 1435 1441 case UR_ATOM_PING_PONG: 1436 1442 case UR_ATOM_PONG: 1437 1443 break; 1438 }1439 }1440 #endif 1444 */ 1445 } 1446 } 1441 1447 return 1; 1442 1448 } -
trunk/thune/gl/scripts/cloud.t
r347 r486 1 1 ; Particle cloud test 2 3 "test_fw.t" load do4 2 5 3 10.0 :zoom
