preliminary, shitty, code for drawing the main window with OpenGL

This commit is contained in:
Arisotura
2019-05-16 00:30:55 +02:00
parent 256b8cb69c
commit f2725791d8
7 changed files with 392 additions and 6 deletions

View File

@ -732,7 +732,8 @@ bool ChunkedRendering = false;
bool InitGLExtensions()
{
if (!OpenGL_Init()) return false;
// TODO move this elsewhere!!
//if (!OpenGL_Init()) return false;
return true;
}
@ -1385,7 +1386,7 @@ void VCount144()
}
void RenderFrame()
{
{return;
ShaderConfig.uScreenSize[0] = ScreenW;
ShaderConfig.uScreenSize[1] = ScreenH;
ShaderConfig.uDispCnt = RenderDispCnt;
@ -1544,7 +1545,7 @@ void RenderFrame()
u32* GetLine(int line)
{
int stride = 256 << (ScaleFactor*2);
return &Framebuffer[stride * line];
if (!ChunkedRendering)
{
if (line == 0)