Example usage for org.lwjgl.opengl GL11 nglMultMatrixf

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

Introduction

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

Prototype

public static native void nglMultMatrixf(long m);

Source Link

Document

Unsafe version of: #glMultMatrixf MultMatrixf

Usage

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

public static void glMultMatrix(Mat3 m, int mode) {
    long address = mat3As4(m);
    GL11.glMatrixMode(mode);//from   w w  w.j  ava 2  s .  co m
    GL11.nglMultMatrixf(address);
    MemStack.pop();
}

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

public static void glMultMatrix(Mat4 m, int mode) {
    long address = MemStack.wrap(m);
    GL11.glMatrixMode(mode);/*  ww w. j  av  a  2  s. com*/
    GL11.nglMultMatrixf(address);
    MemStack.pop();
}