Mercurial > repos > tabletprog
comparison samples/sdl.tp @ 284:99c18127da04
Add another SDL_RenderCopy binding in the form of copyRect:To
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Tue, 22 Jul 2014 08:32:39 -0700 |
parents | 0ec4f1b68a38 |
children | b01d7c1b4edd |
comparison
equal
deleted
inserted
replaced
283:0ec4f1b68a38 | 284:99c18127da04 |
---|---|
15 if: (tex copy) != 0 { | 15 if: (tex copy) != 0 { |
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 render present | 21 render present |
21 sdl delay: 3000u32 | 22 sdl delay: 3000u32 |
22 tex destroy | 23 tex destroy |
23 } none: { | 24 } none: { |
24 surf free | 25 surf free |