mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
This commit is contained in:
commit
7da94e5aca
3 changed files with 14 additions and 0 deletions
|
@ -213,6 +213,17 @@ FFlatVertexBuffer::~FFlatVertexBuffer()
|
||||||
map = nullptr;
|
map = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FFlatVertexBuffer::OutputResized(int width, int height)
|
||||||
|
{
|
||||||
|
vbo_shadowdata[4].Set(0, 0, 0, 0, 0);
|
||||||
|
vbo_shadowdata[5].Set(0, (float)height, 0, 0, 0);
|
||||||
|
vbo_shadowdata[6].Set((float)width, 0, 0, 0, 0);
|
||||||
|
vbo_shadowdata[7].Set((float)width, (float)height, 0, 0, 0);
|
||||||
|
|
||||||
|
Map();
|
||||||
|
memcpy(map, &vbo_shadowdata[4], 4 * sizeof(FFlatVertex));
|
||||||
|
Unmap();
|
||||||
|
}
|
||||||
|
|
||||||
void FFlatVertexBuffer::BindVBO()
|
void FFlatVertexBuffer::BindVBO()
|
||||||
{
|
{
|
||||||
|
|
|
@ -131,6 +131,8 @@ public:
|
||||||
FFlatVertexBuffer(int width, int height);
|
FFlatVertexBuffer(int width, int height);
|
||||||
~FFlatVertexBuffer();
|
~FFlatVertexBuffer();
|
||||||
|
|
||||||
|
void OutputResized(int width, int height);
|
||||||
|
|
||||||
void BindVBO();
|
void BindVBO();
|
||||||
|
|
||||||
void CreateVBO();
|
void CreateVBO();
|
||||||
|
|
|
@ -192,6 +192,7 @@ void OpenGLFrameBuffer::Update()
|
||||||
{
|
{
|
||||||
Resize(clientWidth, clientHeight);
|
Resize(clientWidth, clientHeight);
|
||||||
V_OutputResized(Width, Height);
|
V_OutputResized(Width, Height);
|
||||||
|
GLRenderer->mVBO->OutputResized(Width, Height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue