Code example for Matrix4f

Methods: loadProjectionNormalized

0
	private void initProgramVertex() { 
		ProgramVertexFixedFunction.Builder pvb = new ProgramVertexFixedFunction.Builder(mRS);
		mProgramVertex = pvb.create();
		ProgramVertexFixedFunction.Constants pva = new ProgramVertexFixedFunction.Constants(mRS);
		((ProgramVertexFixedFunction) mProgramVertex).bindConstants(pva);
		Matrix4f proj = new Matrix4f();
		proj.loadProjectionNormalized(1, 1);
		pva.setProjection(proj);
		mScript.set_gProgramVertex(mProgramVertex);
	} 
 
	/** 
	 * Prepares the Sampler (controls how pixels are pulled from a texture) 
	 */ 
	private void initSampler() { 
		mLinearClamp = Sampler.CLAMP_LINEAR(mRS);
		mScript.set_gLinearClamp(mLinearClamp);
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java