Hello after the post where i asked help every one said i need learn basics so i did that
but now i have a problem when i try to render cube on screen (in debug mode) my program stops working (windows 7 basic window) when i coment out one line (which actualy renders my cube (actualy chunk with loots of cubes)) then everything is okay.
here is the code.
chunk class render func
public void render() {
glBindBuffer(GL_ARRAY_BUFFER, vID);
glVertexPointer(3, GL_FLOAT, 0, 0);
glEnableClientState(GL_VERTEX_ARRAY);
glDrawArrays(GL_QUADS, 0, CHUNKSIZE * CHUNKSIZE * CHUNKSIZE * (3 * 4 * 6));
glDisableClientState(GL_VERTEX_ARRAY);
}
and render func witch calls it
public void render() {
render3D();
camera.applyTranslations();
c.render();
glLoadIdentity();
if(renderText) {
render2D();
glColor3f(1,1,1);
renderText();
}
}
if needed more code just say.
Btw no errors in eclipse debug thingy.
i run this with c.render();