Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source/graphics/LOSTexture.cpp | 27 +++++++++++++++++++++++++--
- 1 file changed, 25 insertions(+), 2 deletions(-)
- diff --git a/source/graphics/LOSTexture.cpp b/source/graphics/LOSTexture.cpp
- index e2b8d07..00b92df 100644
- --- a/source/graphics/LOSTexture.cpp
- +++ b/source/graphics/LOSTexture.cpp
- @@ -154,13 +154,36 @@ void CLOSTexture::InterpolateLOS()
- glPushAttrib(GL_VIEWPORT_BIT);
- glViewport(0, 0, m_TextureSize, m_TextureSize);
- - glBegin(GL_QUADS);
- + float vert[] = {
- + 1.0f, 1.0f,
- + -1.0f, 1.0f,
- + -1.0f, -1.0f,
- +
- + -1.0f, -1.0f,
- + 1.0f, -1.0f,
- + 1.0f, 1.0f
- + };
- + float tex[] = {
- + 1.0f, 1.0f,
- + 0.0f, 1.0f,
- + 0.0f, 0.0f,
- +
- + 0.0f, 0.0f,
- + 1.0f, 0.0f,
- + 1.0f, 1.0f,
- + };
- + shader->TexCoordPointer(GL_TEXTURE0, 2, GL_FLOAT, 0, tex);
- + shader->VertexPointer(2, GL_FLOAT, 0, vert);
- + shader->AssertPointersBound();
- + glDrawArrays(GL_TRIANGLES, 0, 6);
- +
- + /*glBegin(GL_QUADS);
- glColor4f(1.f, 1.f, 1.f, 1.f);
- glTexCoord2f(1.0, 1.0); glVertex2f(1,1);
- glTexCoord2f(0.0, 1.0); glVertex2f(-1,1);
- glTexCoord2f(0.0, 0.0); glVertex2f(-1,-1);
- glTexCoord2f(1.0, 0.0); glVertex2f(1,-1);
- - glEnd();
- + glEnd();*/
- glPopAttrib();
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement