Package panamagl
Class GLProfile
java.lang.Object
panamagl.GLProfile
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringglGetString(GL gl, int name) Mainly deal with - null return to avoid crashing tests with mocks - with native NULL pointers (e.g.voidreadExtensions(GL gl) Read extensions via glGetString(GL_EXTENSIONS).toString()
-
Field Details
-
vendor
-
renderer
-
version
-
extensions
-
platform
-
-
Constructor Details
-
GLProfile
public GLProfile() -
GLProfile
-
-
Method Details
-
read
-
readExtensions
Read extensions via glGetString(GL_EXTENSIONS). In Core Profile, this call generates GL_INVALID_ENUM (the Core Profile way is glGetStringi in a loop). We consume the GL error so it does not pollute subsequent GL calls. Extensions will simply be empty in that case. -
glGetString
-
getVendor
-
getRenderer
-
getVersion
-
getExtensions
-
toString
-