Examples of glPopAttrib()


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

   
      gl.glEnable(GL.GL_LIGHTING);

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

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

                y += OFFSET;
            }
        }

        // Restore enabled state
        gl.glPopAttrib();

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

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

                y += OFFSET;
            }
        }

        // Restore enabled state
        gl.glPopAttrib();

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

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

    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

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

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

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

     */
    protected void endDrawing(DrawContext dc)
    {
        GL2 gl = dc.getGL().getGL2(); // GL initialization checks for GL2 compatibility.
        gl.glBindTexture(GL.GL_TEXTURE_2D, 0);
        gl.glPopAttrib();
    }

    /**
     * Draws the path as an ordered renderable.
     *
 
View Full Code Here

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

        // Restore matrices
        gl.glPopMatrix();
        gl.glMatrixMode(GL2.GL_MODELVIEW);
        gl.glPopMatrix();
        // Restore attributes
        gl.glPopAttrib();

    }

    @Override
    void executeRasterDepth(Context ctx, float posX, float posY, float posZ,
View Full Code Here

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

        gl.glEnd();

        // Java 3D always clears the Z-buffer
        gl.glDepthMask(true);
        gl.glClear(GL.GL_DEPTH_BUFFER_BIT);
        gl.glPopAttrib();
    }

    @Override
    boolean initTexturemapping(Context ctx, int texWidth,
            int texHeight, int objectId) {
View Full Code Here

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

        float[] color = new float[4];

        gl.glPushAttrib(GL2.GL_TRANSFORM_BIT);
        gl.glMatrixMode(GL.GL_TEXTURE);
        gl.glLoadIdentity();
        gl.glPopAttrib();
        gl.glTexEnvfv(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_COLOR, color, 0);
        gl.glTexEnvi(GL2.GL_TEXTURE_ENV, GL2.GL_TEXTURE_ENV_MODE, GL.GL_REPLACE);
        gl.glHint(GL2.GL_PERSPECTIVE_CORRECTION_HINT, GL.GL_NICEST);

// FIXME: GL_NV_register_combiners
View Full Code Here

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

        }

        gl.glDepthMask(true);
        gl.glClearColor(r, g, b, jctx.getAlphaClearValue());
        gl.glClear(clearMask);
        gl.glPopAttrib();

    }

    @Override
    void textureFillBackground(Context ctx, float texMinU, float texMaxU, float texMinV, float texMaxV,
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.