How dhnguyencs/sdl_graphicsengine works
This tree is primarily the SDL 2 public API headers, with a custom graphics-engine header and a C++ entry point. The visible workflow is an application entry point that includes the graphics engine; the excerpts do not show how it produces a rendered result. The SDL headers describe capabilities including windowing, rendering, input, audio, and shared utilities, but most are declarations rather than implementations. Edges below reflect only shown imports or documented API relationships; the custom engine’s internals and runtime behavior are not evidenced here.
Main entry points: SDL.h SDL API umbrella · SDL_events.h Event queue · SDL_video.h Video and windows · SDL_gamecontroller.h Game controllers
Components 19
Application
- Application entry
main.cpp - Graphics engine
SDL_GraphicsEngine.h
Graphics and media
- Video and windows
include/SDL_video.h - 2D rendering
include/SDL_render.h - Pixel surfaces
include/SDL_surface.h - Pixel formats
include/SDL_pixels.h - Audio devices
include/SDL_audio.h - SDL_ttf implementation
include/SDL_ttf.c - SDL_ttf API
include/SDL_ttf.h
Input and events
- Event queue
include/SDL_events.h - Keyboard input
include/SDL_keyboard.h - Mouse input
include/SDL_mouse.h - Joystick input
include/SDL_joystick.h - Game controllers
include/SDL_gamecontroller.h
SDL shared API
- SDL API umbrella
include/SDL.h - Data streams
include/SDL_rwops.h - Types and utilities
include/SDL_stdinc.h - Threading
include/SDL_thread.h - Atomic operations
include/SDL_atomic.h
Connections 23
- Application entry → Graphics engine: includes
main.cpp - SDL API umbrella → Video and windows: includes
include/SDL.h - SDL API umbrella → 2D rendering: includes
include/SDL.h - SDL API umbrella → Audio devices: includes
include/SDL.h - SDL API umbrella → Event queue: includes
include/SDL.h - SDL API umbrella → Keyboard input: includes
include/SDL.h - SDL API umbrella → Mouse input: includes
include/SDL.h - SDL API umbrella → Joystick input: includes
include/SDL.h - SDL API umbrella → Game controllers: includes
include/SDL.h - SDL API umbrella → Data streams: includes
include/SDL.h - SDL API umbrella → Types and utilities: includes
include/SDL.h - 2D rendering → Video and windows: uses window API
include/SDL_render.h - Video and windows → Pixel surfaces: uses surfaces
include/SDL_video.h - Pixel surfaces → Pixel formats: uses formats
include/SDL_surface.h - Event queue → Keyboard input: defines input events
include/SDL_events.h - Event queue → Mouse input: defines input events
include/SDL_events.h - Event queue → Joystick input: defines device events
include/SDL_events.h - Event queue → Game controllers: defines controller events
include/SDL_events.h - Game controllers → Joystick input: exposes joystick
include/SDL_gamecontroller.h - Threading → Atomic operations: uses atomics
include/SDL_thread.h - SDL_ttf implementation → SDL_ttf API: implements API
include/SDL_ttf.c - SDL_ttf implementation → SDL API umbrella: imports SDL API
include/SDL_ttf.c - SDL_ttf API → SDL API umbrella: includes SDL API
include/SDL_ttf.h