SBgl 0.1.0
A graphics framework in C99
Loading...
Searching...
No Matches
sbgl_Context Struct Reference

Engine context. More...

#include <sbgl_types.h>

Data Fields

void * inner
 Opaque pointer to the internal engine state.
 
sbgl_Result result
 Status of the last major operation.
 

Detailed Description

Engine context.

The context serves as the handle for all SBgl operations. It utilizes an opaque pointer pattern to encapsulate internal engine state, ensuring that OS-specific handles and internal memory management are hidden from the public API.

Definition at line 268 of file sbgl_types.h.

Field Documentation

◆ inner

void* sbgl_Context::inner

Opaque pointer to the internal engine state.

Points to the private sbgl_InternalContext structure, which manages internal subsystems including the persistent SblArena for context-local allocations, the platform-specific sbgl_Window handle, graphics state such as clear colors and frame acquisition flags, and the real-time physical state of keys and mouse buttons.

Definition at line 278 of file sbgl_types.h.

◆ result

sbgl_Result sbgl_Context::result

Status of the last major operation.

Stores the result or error code from the most recent critical API call (for instance, initialization or frame acquisition).

Definition at line 286 of file sbgl_types.h.


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