SDL
2.0
|
Go to the source code of this file.
Functions | |
static void | DrawRects (SDL_Renderer *renderer, SDL_Rect *rect) |
static void | loop () |
int | main (int argc, char *argv[]) |
Variables | |
static SDLTest_CommonState * | state |
int | i |
int | done |
SDL_Rect | rect |
SDL_Event | event |
|
static |
Definition at line 31 of file testrelative.c.
References SDL_RenderFillRect, and SDL_SetRenderDrawColor.
Referenced by loop().
|
static |
Definition at line 38 of file testrelative.c.
References done, DrawRects(), SDL_Rect::h, i, NULL, SDLTest_CommonState::num_windows, renderer, SDLTest_CommonState::renderers, SDL_MOUSEMOTION, SDL_PollEvent, SDL_RenderClear, SDL_RenderGetViewport, SDL_RenderPresent, SDL_SetRenderDrawColor, SDLTest_CommonEvent(), SDL_Event::type, viewport, SDL_Rect::w, SDLTest_CommonState::windows, SDL_Rect::x, and SDL_Rect::y.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 78 of file testrelative.c.
References DEFAULT_WINDOW_HEIGHT, DEFAULT_WINDOW_WIDTH, done, SDL_Rect::h, i, loop(), NULL, SDLTest_CommonState::num_windows, renderer, SDLTest_CommonState::renderers, SDL_BLENDMODE_NONE, SDL_INIT_VIDEO, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogSetPriority, SDL_RenderClear, SDL_SetRelativeMouseMode, SDL_SetRenderDrawBlendMode, SDL_SetRenderDrawColor, SDL_TRUE, SDLTest_CommonArg(), SDLTest_CommonCreateState(), SDLTest_CommonInit(), SDLTest_CommonQuit(), SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
int done |
Definition at line 26 of file testrelative.c.
Definition at line 28 of file testrelative.c.
int i |
Definition at line 26 of file testrelative.c.
SDL_Rect rect |
Definition at line 27 of file testrelative.c.
Referenced by _compare(), _testBlitBlendMode(), DrawChessBoard(), DrawOnViewport(), DrawRects(), main(), rect_testIntersectRectAndLine(), rect_testIntersectRectAndLineEmpty(), rect_testIntersectRectAndLineInside(), rect_testIntersectRectAndLineOutside(), rect_testIntersectRectAndLineParam(), rect_testRectEmpty(), render_testBlit(), render_testBlitAlpha(), render_testBlitBlend(), render_testBlitColor(), render_testPrimitives(), render_testPrimitivesBlend(), SDL_BlendFillRects(), SDL_ConvertPixels(), SDL_GetWindowDisplayIndex(), SDL_LockTextureNative(), SDL_RectEquals(), SDL_SW_CopyYUVToRGB(), SDL_UnlockTextureNative(), SDL_UnlockTextureYUV(), and SDL_UpdateWindowTexture().
|
static |
Definition at line 25 of file testrelative.c.