Mercurial > repos > tabletprog
comparison samples/sdl.tp @ 287:b01d7c1b4edd
Add binding for simple form of SDL_RenderCopyEx
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 22 Jul 2014 18:39:00 -0700 |
parents | 99c18127da04 |
children | 38bbbf74b735 |
comparison
equal
deleted
inserted
replaced
286:ddf38b66b2e2 | 287:b01d7c1b4edd |
---|---|
16 print: "Failed to copy texture to renderer: " . (sdl getError) . "\n" | 16 print: "Failed to copy texture to renderer: " . (sdl getError) . "\n" |
17 } | 17 } |
18 surf free | 18 surf free |
19 tex copyTo: (sdl rect: 160 120 size: 320 224) | 19 tex copyTo: (sdl rect: 160 120 size: 320 224) |
20 tex copyRect: (sdl rect: 80 60 size: 160 120) To: (sdl rect: 40 30 size: 320 224) | 20 tex copyRect: (sdl rect: 80 60 size: 160 120) To: (sdl rect: 40 30 size: 320 224) |
21 tex copyTo: (sdl rect: 320 240 size: 320 224) rotated: 45.0 | |
21 render present | 22 render present |
22 sdl delay: 3000u32 | 23 sdl delay: 3000u32 |
23 tex destroy | 24 tex destroy |
24 } none: { | 25 } none: { |
25 surf free | 26 surf free |