List of usage examples for org.lwjgl.opengl GL15 GL_READ_ONLY
int GL_READ_ONLY
To view the source code for org.lwjgl.opengl GL15 GL_READ_ONLY.
Click Source Link
From source file:name.martingeisse.stackd.client.system.OpenGlVertexBuffer.java
License:Open Source License
/** * Maps this buffer to main memory./* ww w . j ava 2 s . c o m*/ * * @param readable whether the mapped buffer should be readable * @param writeable whether the mapped buffer should be writable */ public final void map(boolean readable, boolean writeable) { if (!readable && !writeable) { throw new IllegalArgumentException("requested buffer mapping that is neither readable nor writable"); } int access = (!readable ? GL15.GL_WRITE_ONLY : !writeable ? GL15.GL_READ_ONLY : GL15.GL_READ_WRITE); GL15.glMapBuffer(GL_ARRAY_BUFFER, access, size, null); }