Package fcagnin.jglsdk.glutil

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


            glDepthMask( true );
            glEnable( GL_DEPTH_TEST );
            glUniform4f( progUnlit.objectColorUnif, 1.0f, 1.0f, 1.0f, 1.0f );
            sphere.render( "flat" );

            modelMatrix.pop();
        }
    }

    @Override
    protected void reshape(int w, int h) {
View Full Code Here


                        normMatrix.fillAndFlipBuffer( mat3Buffer ) );
                glUniform4f( whiteDiffuseColor.lightIntensityUnif, 1.0f, 1.0f, 1.0f, 1.0f );
                planeMesh.render();
                glUseProgram( 0 );

                modelMatrix.pop();
            }

            // Render the Cylinder
            {
                modelMatrix.push();
View Full Code Here

                        normMatrix.fillAndFlipBuffer( mat3Buffer ) );
                glUniform4f( vertexDiffuseColor.lightIntensityUnif, 1.0f, 1.0f, 1.0f, 1.0f );
                cylinderMesh.render( "lit-color" );
                glUseProgram( 0 );

                modelMatrix.pop();
            }

            modelMatrix.pop();
        }
    }
View Full Code Here

                glUseProgram( 0 );

                modelMatrix.pop();
            }

            modelMatrix.pop();
        }
    }

    @Override
    protected void reshape(int w, int h) {
View Full Code Here

                glUniformMatrix3( whiteDiffuse.normalModelToCameraMatrixUnif, false,
                        normMatrix.fillAndFlipBuffer( mat3Buffer ) );
                planeMesh.render();
                glUseProgram( 0 );

                modelMatrix.pop();
            }

            // Render the Cylinder
            {
                modelMatrix.push();
View Full Code Here

                            normMatrix.fillAndFlipBuffer( mat3Buffer ) );
                    cylinderMesh.render( "lit" );
                }
                glUseProgram( 0 );

                modelMatrix.pop();
            }

            modelMatrix.pop();
        }
    }
View Full Code Here

                glUseProgram( 0 );

                modelMatrix.pop();
            }

            modelMatrix.pop();
        }
    }

    @Override
    protected void reshape(int w, int h) {
View Full Code Here

                        normMatrix.fillAndFlipBuffer( mat3Buffer ) );
                glUniform4f( whiteDiffuseColor.lightIntensityUnif, 1.0f, 1.0f, 1.0f, 1.0f );
                planeMesh.render();
                glUseProgram( 0 );

                modelMatrix.pop();
            }

            // Render the Cylinder
            {
                modelMatrix.push();
View Full Code Here

                    cylinderMesh.render( "lit" );
                }

                glUseProgram( 0 );

                modelMatrix.pop();
            }

            modelMatrix.pop();
        }
    }
View Full Code Here

                glUseProgram( 0 );

                modelMatrix.pop();
            }

            modelMatrix.pop();
        }
    }

    @Override
    protected void reshape(int w, int h) {
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.