Structure representing the SDL window and its associated OpenGL context. More...
#include <window.h>
Public Attributes | |
SDL_Window * | sdl_window |
SDL_Surface * | surface |
SDL_Surface * | ui_surface |
TextureMap | ui_texture |
SDL_GLContext | opengl_ctx |
float | startTime |
float | time |
float | lastTime |
vec4 | fadeColor |
u8 | flags |
Structure representing the SDL window and its associated OpenGL context.
This structure encapsulates the SDL window and its related properties, including the OpenGL context, surfaces for rendering, and timing information.
window | [in] The SDL_Window object representing the window. |
context | [in] The SDL_GLContext object representing the OpenGL context. |
surface | [in, out] The SDL_Surface object used for rendering. |
width | [in] The width of the window. |
height | [in] The height of the window. |
lastFrameTime | [in, out] The timestamp of the last rendered frame. |
deltaTime | [in, out] The time elapsed between the last two frames. |
SDL_Window* Window::sdl_window |
Pointer to the SDL window.
SDL_Surface* Window::surface |
Main rendering surface.
SDL_Surface* Window::ui_surface |
Surface for UI rendering.
TextureMap Window::ui_texture |
Texture map for UI elements.
SDL_GLContext Window::opengl_ctx |
OpenGL context associated with the window.
float Window::startTime |
Time when the window was created or initialized.
float Window::time |
Current time since the window was created or initialized.
float Window::lastTime |
Time of the last frame update.
vec4 Window::fadeColor |
Color used for fading the screen.
u8 Window::flags |
Flags for window properties.