SOIL Loading image but doesn't get rendered

#1

Hey, I’m relativley new to OpenGL and having a problem: I’m loading a texture and don’t get any error, and the Soil last result says that it loaded my file as an OpenGL texture, but it doesn’t get displayed… Here’s my renderer for the texture

    void Sprite::Render() {
	glEnable(GL_TEXTURE_2D);
	glBindTexture(GL_TEXTURE_2D, texture.getID());
	glPushMatrix();
	glLoadIdentity();

	// translate
	glTranslatef(xLoc, yLoc, 0);

	// Actually Render the Sprite
	glColor4f(1, 1, 1, 1); 

	glBegin(GL_QUADS);
	{
		glTexCoord2f(0, 0);		glVertex2i(-texture.getWidth() / 2, -texture.getHeight() / 2);
		glTexCoord2f(1, 0);		glVertex2i(texture.getWidth() / 2, -texture.getHeight() / 2);
		glTexCoord2f(1, 1);		glVertex2i(texture.getWidth() / 2, texture.getHeight() / 2);
		glTexCoord2f(0, 1);		glVertex2i(-texture.getWidth() / 2, texture.getHeight() / 2);
	};
	glEnd();

	glPopMatrix();

	glBindTexture(GL_TEXTURE_2D, 0);
    }

If anything else is needed, I’ll provide it