wx_BGI_Graphics
Classic BGI-compatible graphics API with modern OpenGL extension API
Loading...
Searching...
No Matches
bgi_state.h
Go to the documentation of this file.
1#pragma once
2
3#include "bgi_types.h"
4
5#include <mutex>
6
7namespace bgi
8{
9
10 extern std::mutex gMutex;
11 extern BgiState gState;
12
15 void resetStateForWindow(int width, int height, bool doubleBuffered);
16 void resizePixelBuffer(int width, int height);
17 std::vector<std::uint8_t> &activePageBuffer();
18 const std::vector<std::uint8_t> &visualPageBuffer();
20 void initForWxCanvas(int width, int height);
21
22} // namespace bgi
Definition bgi_camera.h:28
std::vector< std::uint8_t > & activePageBuffer()
void resetDrawingState()
void resizePixelBuffer(int width, int height)
Resize only — preserves DDS scenes, cameras, UCS.
void resetStateForWindow(int width, int height, bool doubleBuffered)
const std::vector< std::uint8_t > & visualPageBuffer()
BgiState gState
std::mutex gMutex
void resetPaletteState()
void syncPagesIfNeeded()
void initForWxCanvas(int width, int height)