Package javax.media.opengl

Examples of javax.media.opengl.GL.glPopAttrib()


   
      gl.glEnable(GL.GL_LIGHTING);

     
      gl.glPopMatrix();
      gl.glPopAttrib();
    }
   
    //draw shadows
   
   
View Full Code Here


                y += OFFSET;
            }
        }

        // Restore enabled state
        gl.glPopAttrib();

        // Restore old matrices
        gl.glPopMatrix();
        gl.glMatrixMode(GL.GL_MODELVIEW);
        gl.glPopMatrix();
View Full Code Here

                y += OFFSET;
            }
        }

        // Restore enabled state
        gl.glPopAttrib();

        // Restore old matrices
        gl.glPopMatrix();
        gl.glMatrixMode(GL.GL_MODELVIEW);
        gl.glPopMatrix();
View Full Code Here

    switch (MT4jSettings.getInstance().getRendererMode()) {
    case MT4jSettings.OPENGL_MODE:
      GL gl = ((PGraphicsOpenGL)g).gl;
//      gl.glDepthFunc(GL.GL_LEQUAL); //This is used by standart processing..
      //FIXME TEST
      gl.glPopAttrib();
      break;
    case MT4jSettings.P3D_MODE:
      break;
    default:
      break;
View Full Code Here

      //Draw scene to texture
      scene.drawAndUpdate(pgl, this.lastUpdateTime);
     
//      /*
      if (clipping){
        gl.glPopAttrib();
      }
//       */
//      GLStencilUtil.getInstance().endClipping(gl, this);
    fbo.stopRenderToTexture();
     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.