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.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Window
 Structure representing the SDL window and its associated OpenGL context. More...
 

Macros

#define SCREEN_WIDTH   800
 
#define SCREEN_HEIGHT   600
 

Enumerations

enum  WindowFlags { WINDOW_NO_FLAGS = 0 , WINDOW_PRERENDER_PASS = 1 << 0 , WINDOW_RESIZED = 1 << 1 }
 Enumeration for window flags. More...
 

Functions

s8 create_window (char *title, s32 x, s32 y, s32 width, s32 height, u32 flags, Window *window)
 Creates a new SDL window with an OpenGL context.
 
void refresh_resolution ()
 Refreshes the window resolution.
 
void update_window (Window *window, struct Node *scene, struct Camera *c, struct WorldShaders *shaders, struct DepthMap *depthMap, struct Mesh *screenPlane)
 Updates the window by rendering the scene and swapping the buffers.
 
void refresh_ui (Window *window)
 Refreshes the UI of the window.
 
void free_window (Window *window)
 Frees the resources associated with the window.
 

Macro Definition Documentation

◆ SCREEN_WIDTH

#define SCREEN_WIDTH   800

◆ SCREEN_HEIGHT

#define SCREEN_HEIGHT   600