org.lwjgl.opengl.ARBDrawInstanced Java Examples

The following examples show how to use org.lwjgl.opengl.ARBDrawInstanced. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: LwjglRenderer.java    From MikuMikuStudio with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public void drawTriangleArray(Mesh.Mode mode, int count, int vertCount) {
    if (count > 1) {
        ARBDrawInstanced.glDrawArraysInstancedARB(convertElementMode(mode), 0,
                vertCount, count);
    } else {
        glDrawArrays(convertElementMode(mode), 0, vertCount);
    }
}
 
Example #2
Source File: LwjglGLExt.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public void glDrawArraysInstancedARB(int mode, int first, int count, int primcount) {
    ARBDrawInstanced.glDrawArraysInstancedARB(mode, first, count, primcount);
}
 
Example #3
Source File: LwjglGLExt.java    From jmonkeyengine with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public void glDrawElementsInstancedARB(int mode, int indices_count, int type, long indices_buffer_offset, int primcount) {
    ARBDrawInstanced.glDrawElementsInstancedARB(mode, indices_count, type, indices_buffer_offset, primcount);
}
 
Example #4
Source File: ArraysHelper.java    From OpenModsLib with MIT License 4 votes vote down vote up
@Override
public void glDrawArraysInstanced(int mode, int first, int count, int primcount) {
	ARBDrawInstanced.glDrawArraysInstancedARB(mode, first, count, primcount);
}