Example usage for org.lwjgl.opengl GL11 nglLoadMatrixf

List of usage examples for org.lwjgl.opengl GL11 nglLoadMatrixf

Introduction

In this page you can find the example usage for org.lwjgl.opengl GL11 nglLoadMatrixf.

Prototype

public static native void nglLoadMatrixf(long m);

Source Link

Document

Unsafe version of: #glLoadMatrixf LoadMatrixf

Usage

From source file:com.samrj.devil.graphics.GraphicsUtil.java

public static void glLoadMatrix(Mat3 m, int mode) {
    long address = mat3As4(m);
    GL11.glMatrixMode(mode);//  ww w .j a v  a 2 s  .com
    GL11.nglLoadMatrixf(address);
    MemStack.pop();
}

From source file:com.samrj.devil.graphics.GraphicsUtil.java

public static void glLoadMatrix(Mat4 m, int mode) {
    long address = MemStack.wrap(m);
    GL11.glMatrixMode(mode);/*from ww w. j av  a2 s  .  com*/
    GL11.nglLoadMatrixf(address);
    MemStack.pop();
}