class MainWindow
Represents an openGL window that displays the GBA video output. Also emulates input.
| MainWindow | Represents an openGL window that displays the GBA video output. |
| Functions | |
| MainWindow | |
| Initialize | Initializes a window and opengl with its vbs and shaders |
| Update | Updates Window logic. |
| Draw | Draws the video buffer with openGL. |
| GetShadersCode | Gets the shaders code to draw a full screen quad. |
| GetPPU | Retrieves the ppu associated to this Window. |
int Initialize( int screenMultiplier = 1 )
Initializes a window and opengl with its vbs and shaders
| screenMultiplier | A multiplier for the screen size (if the multiplier is 1, it is 240x160). |
An error code. If 0, all went okay.
-1 = glfw Init error
-2 = glfw Window creation error
-3 = glew init error
Represents an openGL window that displays the GBA video output.
class MainWindow
MainWindow( PPU * p, Memory * m )
Initializes a window and opengl with its vbs and shaders
int Initialize( int screenMultiplier = 1 )
Updates Window logic.
void Update()
Draws the video buffer with openGL.
void Draw()
Gets the shaders code to draw a full screen quad.
void GetShadersCode( char * vs, char * fs )
Retrieves the ppu associated to this Window.
inline PPU* GetPPU()