Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
Window Struct Reference

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
 

Detailed Description

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.

Parameters
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.

Member Data Documentation

◆ sdl_window

SDL_Window* Window::sdl_window

Pointer to the SDL window.

◆ surface

SDL_Surface* Window::surface

Main rendering surface.

◆ ui_surface

SDL_Surface* Window::ui_surface

Surface for UI rendering.

◆ ui_texture

TextureMap Window::ui_texture

Texture map for UI elements.

◆ opengl_ctx

SDL_GLContext Window::opengl_ctx

OpenGL context associated with the window.

◆ startTime

float Window::startTime

Time when the window was created or initialized.

◆ time

float Window::time

Current time since the window was created or initialized.

◆ lastTime

float Window::lastTime

Time of the last frame update.

◆ fadeColor

vec4 Window::fadeColor

Color used for fading the screen.

◆ flags

u8 Window::flags

Flags for window properties.


The documentation for this struct was generated from the following file: