|
SDL
2.0
|
Include dependency graph for teststreaming.c:Go to the source code of this file.
Macros | |
| #define | MOOSEPIC_W 64 |
| #define | MOOSEPIC_H 88 |
| #define | MOOSEFRAME_SIZE (MOOSEPIC_W * MOOSEPIC_H) |
| #define | MOOSEFRAMES_COUNT 10 |
Functions | |
| void | quit (int rc) |
| void | UpdateTexture (SDL_Texture *texture, int frame) |
| void | loop () |
| int | main (int argc, char **argv) |
Variables | |
| SDL_Color | MooseColors [84] |
| Uint8 | MooseFrames [MOOSEFRAMES_COUNT][MOOSEFRAME_SIZE] |
| SDL_Renderer * | renderer |
| int | frame |
| SDL_Texture * | MooseTexture |
| SDL_bool | done = SDL_FALSE |
| #define MOOSEFRAME_SIZE (MOOSEPIC_W * MOOSEPIC_H) |
Definition at line 30 of file teststreaming.c.
Referenced by main().
| #define MOOSEFRAMES_COUNT 10 |
Definition at line 31 of file teststreaming.c.
| #define MOOSEPIC_H 88 |
Definition at line 28 of file teststreaming.c.
Referenced by main(), and UpdateTexture().
| #define MOOSEPIC_W 64 |
Definition at line 27 of file teststreaming.c.
Referenced by main(), and UpdateTexture().
| void loop | ( | ) |
Definition at line 95 of file teststreaming.c.
References done, frame, SDL_Event::key, SDL_KeyboardEvent::keysym, MOOSEFRAMES_COUNT, NULL, SDL_KEYDOWN, SDL_PollEvent, SDL_QUIT, SDL_RenderClear, SDL_RenderCopy, SDL_RenderPresent, SDL_TRUE, SDLK_ESCAPE, SDL_Keysym::sym, SDL_Event::type, and UpdateTexture().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 127 of file teststreaming.c.
References done, frame, loop(), MOOSEFRAME_SIZE, MooseFrames, MOOSEFRAMES_COUNT, MOOSEPIC_H, MOOSEPIC_W, NULL, quit(), SDL_CreateRenderer, SDL_CreateTexture, SDL_CreateWindow, SDL_DestroyRenderer, SDL_GetError, SDL_Init, SDL_INIT_VIDEO, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_PIXELFORMAT_ARGB8888, SDL_RWclose, SDL_RWFromFile, SDL_RWread, SDL_TEXTUREACCESS_STREAMING, SDL_WINDOW_RESIZABLE, SDL_WINDOWPOS_UNDEFINED, and window.
| void quit | ( | int | rc | ) |
Definition at line 64 of file teststreaming.c.
References SDL_Quit.
Referenced by main(), and UpdateTexture().
| void UpdateTexture | ( | SDL_Texture * | texture, |
| int | frame | ||
| ) |
Definition at line 70 of file teststreaming.c.
References SDL_Color::b, frame, SDL_Color::g, MooseFrames, MOOSEPIC_H, MOOSEPIC_W, NULL, quit(), SDL_Color::r, SDL_GetError, SDL_LockTexture, SDL_LOG_CATEGORY_APPLICATION, SDL_LogError, and SDL_UnlockTexture.
Referenced by loop().
Definition at line 62 of file teststreaming.c.
| int frame |
Definition at line 60 of file teststreaming.c.
Referenced by loop(), main(), and UpdateTexture().
| SDL_Color MooseColors[84] |
Definition at line 33 of file teststreaming.c.
| Uint8 MooseFrames[MOOSEFRAMES_COUNT][MOOSEFRAME_SIZE] |
Definition at line 57 of file teststreaming.c.
Referenced by main(), and UpdateTexture().
| SDL_Texture* MooseTexture |
Definition at line 61 of file teststreaming.c.
| SDL_Renderer* renderer |
Definition at line 59 of file teststreaming.c.