Class Context
java.lang.Object
org.lwjglx.debug.org.lwjgl.opengl.Context
- All Implemented Interfaces:
Comparable<Context>
public class Context extends Object implements Comparable<Context>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContext.BufferObjectstatic classContext.FBOstatic classContext.ProgramPipelinestatic classContext.ShareGroupstatic classContext.TextureLayerstatic classContext.TextureLevelstatic classContext.TextureObjectstatic classContext.TimedCodeSectionstatic classContext.TimingQuerystatic classContext.VAO -
Field Summary
Fields Modifier and Type Field Description Map<Integer,Context.BufferObject>bufferObjectBindingsorg.lwjgl.opengl.GLCapabilitiescapsstatic Map<Long,Context>CONTEXTSintcounterstatic ThreadLocal<Context>CURRENT_CONTEXTContext.FBOcurrentFboThreadcurrentInThreadContext.ProgramPipelinecurrentProgramPipelineContext.VAOcurrentVaoorg.lwjgl.system.CallbackdebugCallbackContext.FBOdefaultFboContext.ProgramPipelinedefaultProgramPipelineContext.VAOdefaultVaobooleandrawCallSeenMap<Integer,Context.FBO>fbosintGL_MAX_VERTEX_ATTRIBSbooleaninImmediateModebooleaninitedMap<Integer,Context.ProgramPipeline>programPipelinesstatic Map<Long,Context.ShareGroup>SHARE_GROUPSContext.ShareGroupshareGroupMap<Integer,Context.TextureObject>textureObjectBindingsMap<Integer,Context.VAO>vaoslongwindow -
Constructor Summary
Constructors Constructor Description Context() -
Method Summary
Modifier and Type Method Description static voidcheckBeforeDrawCall()static voidcheckFramebufferCompleteness()static voidcheckVertexAttributes()intcompareTo(Context o)static voidcreate(long window, long share)static ContextcurrentContext()static voiddeletePipeline(int index)static voiddeletePipelines(int[] pipelines)static voiddeletePipelines(IntBuffer pipelines)static voiddeleteVertexArray(int index)static voiddeleteVertexArrays(int[] indices)static voiddeleteVertexArrays(IntBuffer indices)voiddestroy()voidinit(int GL_MAX_VERTEX_ATTRIBS)StringopenglVersion()
-
Field Details
-
CURRENT_CONTEXT
-
CONTEXTS
-
SHARE_GROUPS
-
caps
public org.lwjgl.opengl.GLCapabilities caps -
inited
public boolean inited -
GL_MAX_VERTEX_ATTRIBS
public int GL_MAX_VERTEX_ATTRIBS -
window
public long window -
counter
public int counter -
debugCallback
public org.lwjgl.system.Callback debugCallback -
defaultVao
-
currentVao
-
defaultFbo
-
currentFbo
-
defaultProgramPipeline
-
currentProgramPipeline
-
vaos
-
fbos
-
bufferObjectBindings
-
textureObjectBindings
-
programPipelines
-
shareGroup
-
inImmediateMode
public boolean inImmediateMode -
currentInThread
-
drawCallSeen
public boolean drawCallSeen
-
-
Constructor Details
-
Context
public Context()
-
-
Method Details
-
currentContext
-
create
public static void create(long window, long share) -
openglVersion
-
init
public void init(int GL_MAX_VERTEX_ATTRIBS) -
destroy
public void destroy() -
compareTo
- Specified by:
compareToin interfaceComparable<Context>
-
deleteVertexArray
public static void deleteVertexArray(int index) -
deleteVertexArrays
-
deletePipeline
public static void deletePipeline(int index) -
deletePipelines
-
deletePipelines
public static void deletePipelines(int[] pipelines) -
deleteVertexArrays
public static void deleteVertexArrays(int[] indices) -
checkBeforeDrawCall
public static void checkBeforeDrawCall() -
checkVertexAttributes
public static void checkVertexAttributes() -
checkFramebufferCompleteness
public static void checkFramebufferCompleteness()
-