struct GPUContext GPUContext
virtual void deactivate(void)=0
StateManager * state_manager
GPUMatrixState * matrix_state
virtual void activate(void)=0
static Context * get(void)
FrameBuffer * front_right
bool is_active_on_thread(void)
void GPU_context_main_lock(void)
void GPU_backend_init(eGPUBackendType backend_type)
static thread_local Context * active_ctx
void GPU_context_active_set(GPUContext *ctx_)
GPUContext * GPU_context_active_get(void)
void GPU_context_discard(GPUContext *ctx_)
static std::mutex main_context_mutex
GPUContext * GPU_context_create(void *ghost_window)
static GPUBackend * g_backend
void GPU_backend_exit(void)
void GPU_context_main_unlock(void)