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 rect, renderer, 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, rect, renderer, SDLTest_CommonState::renderers, SDL_MOUSEMOTION, SDL_PollEvent, SDL_RenderClear, SDL_RenderGetViewport, SDL_RenderPresent, SDL_SetRenderDrawColor, SDLTest_CommonEvent(), state, 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, rect, 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(), state, 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(), _validateIntersectRectAndLineResults(), _validateRectEmptyResults(), ComputeOutCode(), DrawChessBoard(), DrawOnViewport(), DrawRects(), FullscreenTo(), loop(), main(), ParseDisplayUsableBoundsHint(), 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_BlendFillRect(), SDL_BlendFillRects(), SDL_ConvertPixels(), SDL_FillRect(), SDL_FillRects(), SDL_GetClipRect(), SDL_GetDisplayBounds(), SDL_GetDisplayUsableBounds(), SDL_GetWindowDisplayIndex(), SDL_IME_UpdateTextRect(), SDL_IntersectRectAndLine(), SDL_LockTexture(), SDL_LockTextureNative(), SDL_LockTextureToSurface(), SDL_LockTextureYUV(), SDL_RenderDrawRect(), SDL_RenderDrawRectF(), SDL_RenderFillRect(), SDL_RenderFillRectF(), SDL_RenderGetClipRect(), SDL_RenderGetViewport(), SDL_RenderReadPixels(), SDL_RenderSetClipRect(), SDL_RenderSetViewport(), SDL_SetClipRect(), SDL_SetTextInputRect(), SDL_SW_CopyYUVToRGB(), SDL_SW_LockYUVTexture(), SDL_SW_UpdateYUVTexture(), SDL_SW_UpdateYUVTexturePlanar(), SDL_UnlockTextureNative(), SDL_UnlockTextureYUV(), SDL_UpdateTexture(), SDL_UpdateTextureNative(), SDL_UpdateTextureYUV(), SDL_UpdateTextureYUVPlanar(), SDL_UpdateWindowTexture(), SDL_UpdateYUVTexture(), SW_LockTexture(), SW_RenderReadPixels(), and SW_UpdateTexture().
|
static |
Definition at line 25 of file testrelative.c.