List of usage examples for org.lwjgl.opengl GL11 glLoadMatrixf
public static void glLoadMatrixf(@NativeType("GLfloat const *") float[] m)
From source file:com.dinasgames.engine.graphics.GL.java
public static void loadMatrix(float[] matrix) { //if(true){return;} if (version >= 11) { FloatBuffer buffer = BufferUtils.createFloatBuffer(matrix.length); for (int i = 0; i < matrix.length; i++) { buffer.put(matrix[i]);/*w ww .j a v a2 s. c om*/ } buffer.flip(); GL11.glLoadMatrixf(buffer); return; } }
From source file:com.timvisee.voxeltex.architecture.gameobject.GameObject.java
License:Open Source License
/** * Prepare and start the drawing process. *//* w w w .ja va2s.c om*/ private synchronized void drawStart() { // Do not use the cached view matrix in multiple places at the same time synchronized (viewMatrixCache) { // Combine the world camera and game object matrix to construct the view matrix getTransform().addWorldMatrix(MainCamera.createCameraViewMatrix(viewMatrixCache)); // Load the matrix to the GPU GL11.glLoadMatrixf(viewMatrixCache.get(fb)); } }
From source file:net.smert.frameworkgl.opengl.OpenGL1.java
License:Apache License
public OpenGL1 loadMatrix(FloatBuffer matrix) { GL11.glLoadMatrixf(matrix); return this; }