|
SDL 3.0
|
Go to the source code of this file.
Macros | |
| #define | SDL_MAIN_USE_CALLBACKS 1 /* use the callbacks instead of main() */ |
Functions | |
| SDL_AppResult | SDL_AppInit (void **appstate, int argc, char *argv[]) |
| SDL_AppResult | SDL_AppEvent (void *appstate, SDL_Event *event) |
| SDL_AppResult | SDL_AppIterate (void *appstate) |
| void | SDL_AppQuit (void *appstate, SDL_AppResult result) |
Variables | |
| static SDL_Window * | window = NULL |
| static SDL_Renderer * | renderer = NULL |
| #define SDL_MAIN_USE_CALLBACKS 1 /* use the callbacks instead of main() */ |
| SDL_AppResult SDL_AppEvent | ( | void * | appstate, |
| SDL_Event * | event ) |
Definition at line 31 of file hello.c.
References SDL_APP_CONTINUE, SDL_APP_SUCCESS, SDL_EVENT_KEY_DOWN, SDL_EVENT_QUIT, and SDL_Event::type.
| SDL_AppResult SDL_AppInit | ( | void ** | appstate, |
| int | argc, | ||
| char * | argv[] ) |
Definition at line 20 of file hello.c.
References renderer, SDL_APP_CONTINUE, SDL_APP_FAILURE, SDL_CreateWindowAndRenderer(), SDL_GetError(), SDL_Log(), SDL_WINDOW_FULLSCREEN, and window.
| SDL_AppResult SDL_AppIterate | ( | void * | appstate | ) |
Definition at line 41 of file hello.c.
References renderer, SDL_APP_CONTINUE, SDL_DEBUG_TEXT_FONT_CHARACTER_SIZE, SDL_GetRenderOutputSize(), SDL_RenderClear(), SDL_RenderDebugText(), SDL_RenderPresent(), SDL_SetRenderDrawColor(), SDL_SetRenderScale(), and SDL_strlen().
| void SDL_AppQuit | ( | void * | appstate, |
| SDL_AppResult | result ) |
|
static |
Definition at line 17 of file hello.c.
Referenced by SDL_AddVulkanRenderSemaphores(), SDL_AppInit(), SDL_AppIterate(), SDL_ConvertEventToRenderCoordinates(), SDL_CreateGPURenderState(), SDL_CreateTexture(), SDL_CreateTextureFromSurface(), SDL_CreateTextureWithProperties(), SDL_CreateWindowAndRenderer(), SDL_DestroyGPURenderState(), SDL_DestroyRenderer(), SDL_FlushRenderer(), SDL_GetCurrentRenderOutputSize(), SDL_GetDefaultTextureScaleMode(), SDL_GetGPURendererDevice(), SDL_GetRenderClipRect(), SDL_GetRenderColorScale(), SDL_GetRenderDrawBlendMode(), SDL_GetRenderDrawColor(), SDL_GetRenderDrawColorFloat(), SDL_GetRendererName(), SDL_GetRendererProperties(), SDL_GetRenderLogicalPresentation(), SDL_GetRenderLogicalPresentationRect(), SDL_GetRenderMetalCommandEncoder(), SDL_GetRenderMetalLayer(), SDL_GetRenderOutputSize(), SDL_GetRenderSafeArea(), SDL_GetRenderScale(), SDL_GetRenderTarget(), SDL_GetRenderTextureAddressMode(), SDL_GetRenderViewport(), SDL_GetRenderVSync(), SDL_GetRenderWindow(), SDL_RenderClear(), SDL_RenderClipEnabled(), SDL_RenderCoordinatesFromWindow(), SDL_RenderCoordinatesToWindow(), SDL_RenderDebugText(), SDL_RenderDebugTextFormat(), SDL_RenderFillRect(), SDL_RenderFillRects(), SDL_RenderGeometry(), SDL_RenderGeometryRaw(), SDL_RenderLine(), SDL_RenderLines(), SDL_RenderPoint(), SDL_RenderPoints(), SDL_RenderPresent(), SDL_RenderReadPixels(), SDL_RenderRect(), SDL_RenderRects(), SDL_RenderTexture(), SDL_RenderTexture9Grid(), SDL_RenderTexture9GridTiled(), SDL_RenderTextureAffine(), SDL_RenderTextureRotated(), SDL_RenderTextureTiled(), SDL_RenderViewportSet(), SDL_SetDefaultTextureScaleMode(), SDL_SetGPURenderState(), SDL_SetRenderClipRect(), SDL_SetRenderColorScale(), SDL_SetRenderDrawBlendMode(), SDL_SetRenderDrawColor(), SDL_SetRenderDrawColorFloat(), SDL_SetRenderLogicalPresentation(), SDL_SetRenderScale(), SDL_SetRenderTarget(), SDL_SetRenderTextureAddressMode(), SDL_SetRenderViewport(), SDL_SetRenderVSync(), SDLTest_CommonDrawWindowInfo(), SDLTest_DrawCharacter(), SDLTest_DrawString(), and SDLTest_TextWindowDisplay().
|
static |
Definition at line 16 of file hello.c.
Referenced by SDL_AcquireGPUSwapchainTexture(), SDL_AppInit(), SDL_ClaimWindowForGPUDevice(), SDL_ClearComposition(), SDL_CreateGPURenderer(), SDL_CreateRenderer(), SDL_CreateWindowAndRenderer(), SDL_DestroyWindow(), SDL_DestroyWindowSurface(), SDL_EGL_GetWindowSurface(), SDL_FlashWindow(), SDL_GetDisplayForWindow(), SDL_GetGPUSwapchainTextureFormat(), SDL_GetRenderer(), SDL_GetTextInputArea(), SDL_GetWindowAspectRatio(), SDL_GetWindowBordersSize(), SDL_GetWindowDisplayScale(), SDL_GetWindowFlags(), SDL_GetWindowFullscreenMode(), SDL_GetWindowICCProfile(), SDL_GetWindowID(), SDL_GetWindowKeyboardGrab(), SDL_GetWindowMaximumSize(), SDL_GetWindowMinimumSize(), SDL_GetWindowMouseGrab(), SDL_GetWindowMouseRect(), SDL_GetWindowOpacity(), SDL_GetWindowParent(), SDL_GetWindowPixelDensity(), SDL_GetWindowPixelFormat(), SDL_GetWindowPosition(), SDL_GetWindowProgressState(), SDL_GetWindowProgressValue(), SDL_GetWindowProperties(), SDL_GetWindowRelativeMouseMode(), SDL_GetWindowSafeArea(), SDL_GetWindowSize(), SDL_GetWindowSizeInPixels(), SDL_GetWindowSurface(), SDL_GetWindowSurfaceVSync(), SDL_GetWindowTitle(), SDL_GL_CreateContext(), SDL_GL_MakeCurrent(), SDL_GL_SwapWindow(), SDL_HideWindow(), SDL_MaximizeWindow(), SDL_Metal_CreateView(), SDL_MinimizeWindow(), SDL_RaiseWindow(), SDL_ReleaseWindowFromGPUDevice(), SDL_RestoreWindow(), SDL_ScreenKeyboardShown(), SDL_SetGPUSwapchainParameters(), SDL_SetTextInputArea(), SDL_SetWindowAlwaysOnTop(), SDL_SetWindowAspectRatio(), SDL_SetWindowBordered(), SDL_SetWindowFillDocument(), SDL_SetWindowFocusable(), SDL_SetWindowFullscreen(), SDL_SetWindowFullscreenMode(), SDL_SetWindowHitTest(), SDL_SetWindowIcon(), SDL_SetWindowKeyboardGrab(), SDL_SetWindowMaximumSize(), SDL_SetWindowMinimumSize(), SDL_SetWindowModal(), SDL_SetWindowMouseGrab(), SDL_SetWindowMouseRect(), SDL_SetWindowOpacity(), SDL_SetWindowParent(), SDL_SetWindowPosition(), SDL_SetWindowProgressState(), SDL_SetWindowProgressValue(), SDL_SetWindowRelativeMouseMode(), SDL_SetWindowResizable(), SDL_SetWindowShape(), SDL_SetWindowSize(), SDL_SetWindowSurfaceVSync(), SDL_SetWindowTitle(), SDL_SetX11EventHook(), SDL_ShowOpenFileDialog(), SDL_ShowOpenFolderDialog(), SDL_ShowSaveFileDialog(), SDL_ShowSimpleMessageBox(), SDL_ShowWindow(), SDL_ShowWindowSystemMenu(), SDL_StartTextInput(), SDL_StartTextInputWithProperties(), SDL_StopTextInput(), SDL_SyncWindow(), SDL_TextInputActive(), SDL_UpdateWindowSurface(), SDL_UpdateWindowSurfaceRects(), SDL_Vulkan_CreateSurface(), SDL_WaitAndAcquireGPUSwapchainTexture(), SDL_WaitForGPUSwapchain(), SDL_WarpMouseInWindow(), SDL_WindowHasSurface(), SDL_WindowSupportsGPUPresentMode(), SDL_WindowSupportsGPUSwapchainComposition(), and SDLTest_CommonDrawWindowInfo().