Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * AICI INCEPE TABLA DE SAH
- gl.glCullFace(GL.GL_FRONT);
- gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL2.GL_FILL);
- float rect_size_x = 0.125f;
- float rect_size_y = 0.125f;
- for (int line = 0; line < 8; ++line) {
- for (int col = 0; col < 8; ++col) {
- int offs = 1;
- if (line % 2 == 0)
- offs = 0;
- if (col % 2 == offs) {
- gl.glDisable(GL.GL_CULL_FACE);
- gl.glColor3f(1.0f, 1.0f, 1.0f);
- gl.glRectf(rect_size_x * col, rect_size_y * line, rect_size_x * (col + 1),
- rect_size_y * (line + 1));
- } else {
- gl.glEnable(GL.GL_CULL_FACE);
- gl.glRectf(rect_size_x * col, rect_size_y * line, rect_size_x * (col + 1),
- rect_size_y * (line + 1));
- }
- }
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement