added static param glBufferAccess to PGL to control buffer access policy during buffer streaming

This commit is contained in:
codeanticode
2022-03-03 16:50:06 -05:00
parent e1cee44145
commit b4c27e8e75
2 changed files with 36 additions and 32 deletions

View File

@@ -140,12 +140,15 @@ public abstract class PGL {
// ........................................................
// These variables are left public so advanced users can experiment with different
// usage modes controlling the buffer data store:
// https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glBufferData.xhtml
// usage modes and access policies controlling the buffer data store:
// https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glBufferData.xhtml
static public int glUsageRetained;
static public int glUsageImmediate;
// https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glMapBuffer.xhtml
static public int glBufferAccess;
// ........................................................
// Variables to handle single-buffered situations (i.e.: Android)