9 .include "library/sdl_types.pir"
10 .include "datatypes.pasm"
13 .include "library/sdl.pasm"
21 .local pmc SetVideoMode
23 .local pmc SDL_UpdateRect
24 .local pmc SDL_FillRect
25 .local pmc new_SDL_Rect
28 SDL_Init = global "SDL::SDL_Init"
29 SetVideoMode = global "SDL::SDL_SetVideoMode"
30 SDL_Quit = global "SDL::SDL_Quit"
31 SDL_UpdateRect = global "SDL::SDL_UpdateRect"
32 SDL_FillRect = global "SDL::SDL_FillRect"
33 new_SDL_Rect = global "new_SDL_Rect"
45 .nci_call SetVideoMode
49 .local object blue_rect
50 #.local object blue_color
52 blue_rect = _new_SDL_Rect()
53 # blue_color = _new_SDL_Color( 255, 255, 255 )
64 set blue_rect['w'], 100
65 set blue_rect['h'], 100
66 set blue_rect['x'], 270
67 set blue_rect['y'], 190
73 .nci_call SDL_FillRect
78 # update full screen (all 0 arguments)
85 .nci_call SDL_UpdateRect
102 # vim: expandtab shiftwidth=4 ft=pir: