SDL
2.0
|
Go to the source code of this file.
Functions | |
void | DrawChessBoard (SDL_Renderer *renderer) |
void | loop () |
int | main (int argc, char *argv[]) |
Variables | |
SDL_Window * | window |
SDL_Renderer * | renderer |
SDL_Surface * | surface |
int | done |
void DrawChessBoard | ( | SDL_Renderer * | renderer | ) |
Definition at line 32 of file testdrawchessboard.c.
References SDL_Rect::h, rect, SDL_RenderFillRect, SDL_RenderGetViewport, SDL_SetRenderDrawColor, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
Referenced by loop().
void loop | ( | ) |
Definition at line 59 of file testdrawchessboard.c.
References done, DrawChessBoard(), e, SDL_WindowEvent::event, SDL_Event::key, SDL_KeyboardEvent::keysym, SDL_CreateSoftwareRenderer, SDL_DestroyRenderer, SDL_GetWindowSurface, SDL_KEYDOWN, SDL_PollEvent, SDL_QUIT, SDL_RenderClear, SDL_SetRenderDrawColor, SDL_UpdateWindowSurface, SDL_WINDOWEVENT, SDL_WINDOWEVENT_SIZE_CHANGED, SDLK_ESCAPE, SDL_Keysym::sym, SDL_Event::type, and SDL_Event::window.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 101 of file testdrawchessboard.c.
References done, loop(), SDL_CreateSoftwareRenderer, SDL_CreateWindow, SDL_GetError, SDL_GetWindowSurface, SDL_Init, SDL_INIT_VIDEO, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogError, SDL_LogSetPriority, SDL_Quit, SDL_RenderClear, SDL_SetRenderDrawColor, SDL_WINDOW_RESIZABLE, and SDL_WINDOWPOS_UNDEFINED.
int done |
Definition at line 29 of file testdrawchessboard.c.
SDL_Renderer* renderer |
Definition at line 27 of file testdrawchessboard.c.
Definition at line 28 of file testdrawchessboard.c.
Definition at line 26 of file testdrawchessboard.c.