Ok here’s the code I’m using, I used the FullScreenWindowedTest that came with lwjgl for the main setup stuff, the main bulk of the original code hasn’t been changed, except that the window now only loads up at 800/600.
The parts that have been changed now look like this:
private void glInit()
{
GL11.glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
GL11.glViewport(0, 0, 800, 600);
GL11.glEnable(GL11.GL_CULL_FACE);
GL11.glEnable(GL11.GL_DEPTH_TEST);
GL11.glCullFace(GL11.GL_BACK);
GL11.glMatrixMode(GL11.GL_PROJECTION);
GL11.glLoadIdentity();
GL11.glFrustum(-1.0f, 1.0f, -1.0f, 1.0f, 1.5f, 300.0f);
GL11.glMatrixMode(GL11.GL_MODELVIEW);
}
private void render()
{
GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);
GL11.glLoadIdentity();
GL11.glTranslatef(x, y, z);
GL11.glScalef(scaleValue, scaleValue, scaleValue);
GL11.glRotatef(angle, 0.0f, 1.0f, 0.0f);
drawModel(GL11.GL_POLYGON);
}
The draw model method is nothing fancy, it just draws a model. I’ve tried the same code in a jogl using JCD’s jogl work frame and the model is drawn without any problems.
cheers