development:csdk:1.0:graphics
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| development:csdk:1.0:graphics [2024/11/08 01:57] – removed - external edit (Unknown date) 127.0.0.1 | development:csdk:1.0:graphics [2024/11/08 01:59] (current) – ↷ Links adapted because of a move operation clyde | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Graphics on the GameTank ====== | ||
| + | |||
| + | In most systems, a sprite is a graphical resource of limited size that can be moved across the screen without modifying the playfield. Not so on the GameTank. A " | ||
| + | |||
| + | **The GameTank approach is to completely redraw the entire screen for every frame**. This is achieved thanks to the the system' | ||
| + | |||
| + | ===== VRAM ===== | ||
| + | |||
| + | In order to achieve maximum efficiency, graphical assets need to be loaded in VRAM using '' | ||
| + | |||
| + | ===== Double Buffer ===== | ||
| + | |||
| + | The C SDK provides easy double buffering to avoid any flickering. A typical animation loop in C looks like this: | ||
| + | |||
| + | while(1) { | ||
| + | // Draw stuff | ||
| + | await_draw_queue(); | ||
| + | sleep(1); | ||
| + | flip_pages(); | ||
| + | // Business logic | ||
| + | } | ||
| + | |||
