How metaltrack/sdf_playground works
SDF_PlayGround is a small interactive signed-distance-field playground. The visible workflow initializes a window and OpenGL, creates a scene shape, sends shape attributes to a shader, and draws a fullscreen pair of triangles; the shader source files themselves are not present in the supplied tree. ImGui integration is imported, but its UI calls are outside the excerpts, so that branch is shown as unverified. The graph focuses on the application runtime rather than vendored library internals.
Main entry points: Source.cpp App Loop · Scene.h Shape Scene · Shader.h Shader Program · glfw3.h GLFW Windowing
Components 10
Application
- App Loop
Source.cpp - Shape Scene
Scene.h
Rendering
- Shader Program
Shaders/Shader.h - GLFW Windowing
dependencies/include/GLFW/glfw3.h - GLAD Loader
dependencies/include/glad/glad.h
User Interface
- ImGui Controls
dependencies/include/IMGUI/imgui.h - GLFW Backend
dependencies/imgui_impl_glfw.cpp - OpenGL Backend
dependencies/imgui_impl_opengl3.cpp
Other components
- Operator
- OpenGL
Connections 11
- Operator → App Loop: operates
- App Loop → GLFW Windowing: creates window
Source.cpp - App Loop → GLAD Loader: loads GL
Source.cpp - App Loop → Shape Scene: adds shape
Source.cpp - App Loop → Shape Scene: reads shape
Source.cpp - App Loop → Shader Program: sets uniforms
Source.cpp - Shader Program → Shape Scene: reads attributes
Shaders/Shader.h - App Loop → OpenGL: draws triangles
Source.cpp - App Loop → ImGui Controls: builds controls
Source.cpp - App Loop → GLFW Backend: uses backend
- App Loop → OpenGL Backend: uses backend