Am I forgetting some vital thing here?
As far as i can see, it *should* render, but all I'm getting is the GL clear colour.
import org.lwjgl.opengl.GL11;
public class RenderManager
{
public RenderManager()
{
}
public void render()
{
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
EntityPlayer player = getPlayer();
if (getIsInGame() && player != null)
{
GL11.glPushMatrix();
{
GL11.glTranslated(player.posX, player.posY, player.posZ);
GL11.glRotatef((float)player.pitch, 1.0F, 0.0F, 0.0F);
GL11.glRotatef((float)player.yaw, 0.0F, 1.0F, 0.0F);
GL11.glRotatef((float)player.roll, 0.0F, 0.0F, 1.0F);
GL11.glColor3f(1.0F, 0.0F, 0.0F);
GL11.glBegin(GL11.GL_QUADS);
{
GL11.glVertex3i(0, 0, 0);
GL11.glVertex3i(1000, 0, 0);
GL11.glVertex3i(1000, 0, 1000);
GL11.glVertex3i(0, 0, 1000);
}
GL11.glEnd();
}
GL11.glPopMatrix();
}
getCurrentGui().drawGui();
}
}