Changeset 436 for branches/thune

Show
Ignore:
Timestamp:
07/25/07 22:34:46 (16 months ago)
Author:
krobillard
Message:

GL test framework changed so F9 now reloads script.

Location:
branches/thune/thread_safe/gl
Files:
6 modified
1 moved

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/gl/boot.c

    r420 r436  
    2929  "]\n" 
    3030  "context :widget-proto\n" 
     31  "script-env/os [\n" 
     32  "    linux [$100 :mouse-lb\n" 
     33  "        $200 :mouse-mb\n" 
     34  "        $400 :mouse-rb]\n" 
     35  "    [1 :mouse-lb\n" 
     36  "        2 :mouse-rb\n" 
     37  "        3 :mouse-mb]\n" 
     38  "] case\n" 
    3139  "[\n" 
    3240  "    copy\n" 
  • branches/thune/thread_safe/gl/gx.t

    r420 r436  
    6868context :hit-input 
    6969*/ 
     70 
     71 
     72script-env/os [ 
     73    linux [$100 :mouse-lb 
     74           $200 :mouse-mb 
     75           $400 :mouse-rb] 
     76    [1 :mouse-lb 
     77     2 :mouse-rb 
     78     3 :mouse-mb] 
     79] case 
     80 
    7081 
    7182[ 
  • branches/thune/thread_safe/gl/gx_atoms.h

    r427 r436  
    11// This file is automatically generated - do not edit. 
    22 
    3 #define UR_ATOM_DRAW_LIST_OPCODES               317 
    4 #define UR_ATOM_WIDTH           318 
    5 #define UR_ATOM_HEIGHT          319 
    6 #define UR_ATOM_AREA            320 
    7 #define UR_ATOM_RECT            321 
    8 #define UR_ATOM_RASTER          322 
    9 #define UR_ATOM_TEXTURE         323 
    10 #define UR_ATOM_ELEM            324 
    11 #define UR_ATOM_CLOSE           177 
    12 #define UR_ATOM_FOCUS           325 
    13 #define UR_ATOM_RESIZE          326 
    14 #define UR_ATOM_KEY_DOWN                327 
    15 #define UR_ATOM_KEY_UP          328 
    16 #define UR_ATOM_MOUSE_MOVE              329 
    17 #define UR_ATOM_MOUSE_UP                330 
    18 #define UR_ATOM_MOUSE_DOWN              331 
    19 #define UR_ATOM_MOUSE_WHEEL             332 
    20 #define UR_ATOM_AMBIENT         333 
    21 #define UR_ATOM_DIFFUSE         334 
    22 #define UR_ATOM_SPECULAR                335 
    23 #define UR_ATOM_POS             336 
    24 #define UR_ATOM_SHADER          337 
    25 #define UR_ATOM_VERTEX          338 
    26 #define UR_ATOM_FRAGMENT                339 
    27 #define UR_ATOM_DEFAULT         340 
    28 #define UR_ATOM_WAIT            341 
    29 #define UR_ATOM_RGB             342 
    30 #define UR_ATOM_RGBA            343 
    31 #define UR_ATOM_DEPTH           344 
    32 #define UR_ATOM_CLAMP           345 
    33 #define UR_ATOM_REPEAT          346 
    34 #define UR_ATOM_NEAREST         347 
    35 #define UR_ATOM_LINEAR          348 
    36 #define UR_ATOM_MIN             349 
    37 #define UR_ATOM_MAG             350 
    38 #define UR_ATOM_MIPMAP          351 
    39 #define UR_ATOM_ON              256 
    40 #define UR_ATOM_OFF             258 
    41 #define UR_ATOM_ADD             196 
    42 #define UR_ATOM_BURN            352 
    43 #define UR_ATOM_COLOR           353 
    44 #define UR_ATOM_TRANS           354 
    45 #define UR_ATOM_SPRITE          355 
     3#define UR_ATOM_DRAW_LIST_OPCODES               319 
     4#define UR_ATOM_WIDTH           320 
     5#define UR_ATOM_HEIGHT          321 
     6#define UR_ATOM_AREA            322 
     7#define UR_ATOM_RECT            323 
     8#define UR_ATOM_RASTER          324 
     9#define UR_ATOM_TEXTURE         325 
     10#define UR_ATOM_ELEM            326 
     11#define UR_ATOM_CLOSE           179 
     12#define UR_ATOM_FOCUS           327 
     13#define UR_ATOM_RESIZE          328 
     14#define UR_ATOM_KEY_DOWN                329 
     15#define UR_ATOM_KEY_UP          330 
     16#define UR_ATOM_MOUSE_MOVE              331 
     17#define UR_ATOM_MOUSE_UP                332 
     18#define UR_ATOM_MOUSE_DOWN              333 
     19#define UR_ATOM_MOUSE_WHEEL             334 
     20#define UR_ATOM_AMBIENT         335 
     21#define UR_ATOM_DIFFUSE         336 
     22#define UR_ATOM_SPECULAR                337 
     23#define UR_ATOM_POS             338 
     24#define UR_ATOM_SHADER          339 
     25#define UR_ATOM_VERTEX          340 
     26#define UR_ATOM_FRAGMENT                341 
     27#define UR_ATOM_DEFAULT         342 
     28#define UR_ATOM_WAIT            343 
     29#define UR_ATOM_RGB             344 
     30#define UR_ATOM_RGBA            345 
     31#define UR_ATOM_DEPTH           346 
     32#define UR_ATOM_CLAMP           347 
     33#define UR_ATOM_REPEAT          348 
     34#define UR_ATOM_NEAREST         349 
     35#define UR_ATOM_LINEAR          350 
     36#define UR_ATOM_MIN             351 
     37#define UR_ATOM_MAG             352 
     38#define UR_ATOM_MIPMAP          353 
     39#define UR_ATOM_ON              258 
     40#define UR_ATOM_OFF             260 
     41#define UR_ATOM_ADD             198 
     42#define UR_ATOM_BURN            354 
     43#define UR_ATOM_COLOR           355 
     44#define UR_ATOM_TRANS           356 
     45#define UR_ATOM_SPRITE          357 
  • branches/thune/thread_safe/gl/scripts/fbo.t

    r347 r436  
    11; Thune GL Framebuffer Object Test 
    22 
    3  
    4 "test_fw.t" load do 
    53 
    64128,128 :fb-size 
  • branches/thune/thread_safe/gl/scripts/shadow.t

    r348 r436  
    11; Shadowmap Test 
    2  
    3  
    4 "test_fw.t" load do 
    52 
    63 
  • branches/thune/thread_safe/gl/scripts/view.t

    r423 r436  
    11; Thune GL View 
    22 
    3 < 
    4  "test_fw.t" load do 
    5  "scripts/stars.t" load do 
    6 > 
     3<"scripts/stars.t" load do> 
    74 
    850.6 :zoom 
    9 10,0,10 :bg-color 
     610,0,10 'bg-color set 
    107;off key-repeat 
    1180.0,0 :win-size 
     
    176173    now start-time sub :flare-sh/time 
    177174] 
    178 proc :sim-update 
     175proc 'sim-update set 
    179176 
    180177 
     
    231228        ] 
    232229        f1  [help none help-dl either :help] 
     230        f9  ['reload throw] 
    233231        f10 [display.snapshot "snapshot.png" save.png] 
    234232    ] 
  • branches/thune/thread_safe/gl/testfw.t

    r423 r436  
    11; Thune GL Test Harness 
    22 
    3 script-env/os [ 
    4     linux [$100 :mouse-lb 
    5            $200 :mouse-mb 
    6            $400 :mouse-rb] 
    7     [1 :mouse-lb 
    8      2 :mouse-rb 
    9      3 :mouse-mb] 
    10 ] case 
     3 
     4args empty? ift ("Specify script to run" print) 
     5args/1 full-path :script-file 
    116 
    127 
     
    6257 
    6358[] proc :sim-update 
     591.0 :zoom 
     600,0,155 :bg-color 
    6461 
    65 0,0,155 :bg-color 
     62 
     63[ 
     64    [ 
     65        recycle 
     66        script-file load context drop 
     67    ] 
     68    [dup 'reload if/eq (drop recurse)] try 
     69] 
     70proc :run-script     ; ( -- ) 
     71 
    6672 
    6773[wid] 
    6874[ 
    69     recycle 
     75    ;recycle 
    7076    bg-color display.swap 
    7177    [ 
     
    8288 
    8389 
    84 1.0 :zoom 
    85  
    8690[dlist] 
    8791[ 
     
    8993        key-down [ 
    9094            esc [quit] 
     95            f9  ['reload throw] 
    9196            f10 [display.snapshot "snapshot.png" save.png] 
    9297        ] 
     
    118123 
    119124 
     125run-script 
     126 
     127 
    120128;eof