My problem is that idk how I would be able to make a call to both of them at the same time. I'm not a professional with OpenGL or anything I've only been using it for a couple of weeks but I'm not like a complete noob at it either.
These are the two functions in my program which I think are what need to be changed
- Code: Select all
public void onDrawFrame(GL10 gl) {
gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
gl.glLoadIdentity();
gl.glPushMatrix();
meshes.drawAll(gl);
gl.glPopMatrix();
}
public void onSurfaceChanged(GL10 gl, int width, int height) {
gl.glViewport(0, 0, width, height);
gl.glMatrixMode(GL10.GL_PROJECTION);
GLU.gluPerspective(gl, 45.0f, (float)width / (float)height, 0.1f, 1000.0f);
gl.glMatrixMode(GL10.GL_MODELVIEW);
gl.glLoadIdentity();
}
any help is greatly appreciated as this is the only thing stopping me from finishing my game

and also please dont just say "you can check out my project at http://imtoolazytohelpyou.com" because that doesn't help and is a pain in the ass for other people looking for a solution to the same problem


