From acd87e351bd8ce4566b5c7665e560ea5bfdc5657 Mon Sep 17 00:00:00 2001 From: andreja6 Date: Thu, 19 Apr 2018 18:17:19 -0700 Subject: [PATCH] Made test work on offset --- main.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.cpp b/main.cpp index 9bead55..741388b 100644 --- a/main.cpp +++ b/main.cpp @@ -659,16 +659,15 @@ void Demo::onGraphics(RenderDevice* rd) { else glBindTexture( GL_TEXTURE_2D, go_id); - //glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_DECAL); glBegin( GL_QUADS ); glTexCoord2d(0.0,0.0); - glVertex2f( 10, 25 ); + glVertex2f( 10, 0+offset ); glTexCoord2d( 1.0,0.0 ); - glVertex2f( 70, 25 ); + glVertex2f( 70, 0+offset ); glTexCoord2d( 1.0,1.0 ); - glVertex2f( 70, 85 ); + glVertex2f( 70, 65+offset ); glTexCoord2d( 0.0,1.0 ); - glVertex2f( 10, 85 ); + glVertex2f( 10, 65+offset ); glEnd(); glDisable( GL_TEXTURE_2D );