Examples of applyMatrix()


Examples of fcagnin.jglsdk.glutil.MatrixStack.applyMatrix()

        final Mat4 worldToCamMat = Glm.lookAt( new Vec3( hOffset, 1.0f, -64.0f ),
                new Vec3( hOffset, -5.0f + vOffset, -44.0f ), new Vec3( 0.0f, 1.0f, 0.0f ) );

        MatrixStack modelMatrix = new MatrixStack();
        modelMatrix.applyMatrix( worldToCamMat );

        final ProgramData prog = drawGammaProgram ? progGamma : progNoGamma;

        glUseProgram( prog.theProgram );
        glUniformMatrix4( prog.modelToCameraMatrixUnif, false, modelMatrix.top().fillAndFlipBuffer( mat4Buffer ) );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.applyMatrix()

        glClearColor( bgColor.x, bgColor.y, bgColor.z, bgColor.w );
        glClearDepth( 1.0f );
        glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );

        MatrixStack modelMatrix = new MatrixStack();
        modelMatrix.applyMatrix( viewPole.calcMatrix() );

        LightBlock lightData = lightEnv.getLightBlock( viewPole.calcMatrix() );

        glBindBuffer( GL_UNIFORM_BUFFER, lightUniformBuffer );
        glBufferData( GL_UNIFORM_BUFFER, lightData.fillAndFlipBuffer( lightBlockBuffer ), GL_STREAM_DRAW );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.applyMatrix()

            // Render the Cylinder
            {
                modelMatrix.push();

                modelMatrix.applyMatrix( objtPole.calcMatrix() );

                if ( scaleCyl ) {
                    modelMatrix.scale( 1.0f, 1.0f, 0.2f );
                }
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.applyMatrix()

            // Render the Cylinder
            {
                modelMatrix.push();

                modelMatrix.applyMatrix( objtPole.calcMatrix() );

                if ( drawColoredCyl ) {
                    glUseProgram( vertexDiffuse.theProgram );
                    glUniformMatrix4( vertexDiffuse.modelToCameraMatrixUnif, false,
                            modelMatrix.top().fillAndFlipBuffer( mat4Buffer ) );
View Full Code Here

Examples of fcagnin.jglsdk.glutil.MatrixStack.applyMatrix()

            // Render the Cylinder
            {
                modelMatrix.push();

                modelMatrix.applyMatrix( objtPole.calcMatrix() );

                if ( drawColoredCyl ) {
                    glUseProgram( vertexDiffuseColor.theProgram );
                    glUniformMatrix4( vertexDiffuseColor.modelToCameraMatrixUnif, false,
                            modelMatrix.top().fillAndFlipBuffer( mat4Buffer ) );
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.applyMatrix()

    // Showing the 'GNU' image...
    {
      // Instantiate the image!
      Image image = Image.get(getInputPath() + java.io.File.separator + "images" + java.io.File.separator + "gnu.jpg");
      // Set the position of the image in the page!
      composer.applyMatrix(200,0,0,200,(pageSize.getWidth()-200)/2,(pageSize.getHeight()-200)/2);
      // Show the image!
      image.toInlineObject(composer); // Transforms the image entity into an inline image within the page.
    }
    composer.flush();
  }
View Full Code Here

Examples of processing.core.PGraphics.applyMatrix()

    // Transforms (outer) map pane, and draws inner map + marker onto canvas
    // This cuts off marker at the border.
    PGraphics canvasPG = papplet.g;
    canvasPG.pushMatrix();
    canvasPG.translate(offsetX, offsetY);
    canvasPG.applyMatrix(matrix);
   
    textureDistorter.draw(canvasPG, offscreenPG);
    //canvasPG.image(offscreenCutoffPG.getTexture(), 0, 0);
    canvasPG.popMatrix();
  }
View Full Code Here

Examples of processing.core.PGraphics.applyMatrix()

    // translate and scale, from the middle
    pg.pushMatrix();
    pg.translate((float) innerOffsetX, (float) innerOffsetY);
    if (pg.is3D()) {
      pg.applyMatrix(innerMatrix);
    } else {
      pg.applyMatrix(innerMatrix.m00, innerMatrix.m01, innerMatrix.m03, innerMatrix.m10, innerMatrix.m11,
          innerMatrix.m13);
    }
View Full Code Here

Examples of processing.core.PGraphics.applyMatrix()

    pg.pushMatrix();
    pg.translate((float) innerOffsetX, (float) innerOffsetY);
    if (pg.is3D()) {
      pg.applyMatrix(innerMatrix);
    } else {
      pg.applyMatrix(innerMatrix.m00, innerMatrix.m01, innerMatrix.m03, innerMatrix.m10, innerMatrix.m11,
          innerMatrix.m13);
    }

    Vector visibleKeys = getVisibleKeys(pg);
View Full Code Here

Examples of processing.core.PGraphics.applyMatrix()

    // This cuts off marker at the border.
    PGraphics canvasPG = papplet.g;
    canvasPG.pushMatrix();
    canvasPG.translate(offsetX, offsetY);
    if (canvasPG.is3D()) {
      canvasPG.applyMatrix(matrix);
    } else {
      canvasPG.applyMatrix(matrix.m00, matrix.m01, matrix.m03, matrix.m10, matrix.m11, matrix.m13);
    }
    if (mapDisplayShader != null) {
      mapDisplayShader.shadeWithMarkers(canvasPG);
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.