Code example for Matrix4f

Methods: loadProjectionNormalized

0
        programVertex = pvBuilder.create();
        ProgramVertexFixedFunction.Constants pvConstants =
                new ProgramVertexFixedFunction.Constants(renderScriptGL);
        programVertex.bindConstants(pvConstants);
         
        Matrix4f projection = new Matrix4f();
        projection.loadProjectionNormalized(1, 1);
        pvConstants.setProjection(projection);
        script.set_programVertex(programVertex);
    } 
 
    private void initProgramFragment() { 
        final ProgramFragmentFixedFunction.Builder pfBuilder =
                new ProgramFragmentFixedFunction.Builder(renderScriptGL);
         
        pfBuilder.setTexture(
                ProgramFragmentFixedFunction.Builder.EnvMode.REPLACE,
                ProgramFragmentFixedFunction.Builder.Format.RGBA, 0);
        singleTextureFragmentProcess = pfBuilder.create();
        script.set_singleTextureFragmentProgram(singleTextureFragmentProcess);
Contextual code suggestions in your IDE  Get Codota for Java