glesv2 :: GLES :: _capabilities
OpenGL server-side capabilitiesglesv2 :: GLES :: capabilities=
OpenGL server-side capabilitiesglesv2 :: GLES :: defaultinit
glesv2 :: GLES :: shader_compiler
Does this driver support shader compilation?glesv2 :: GLES :: _capabilities
OpenGL server-side capabilitiesglesv2 :: GLES :: capabilities=
OpenGL server-side capabilitiescore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
glesv2 :: GLES :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).glesv2 :: GLES :: shader_compiler
Does this driver support shader compilation?
# OpenGL ES 2.0 services
class GLES
# Query the boolean value at `key`
private fun get_bool(key: Int): Bool `{
GLboolean val;
glGetBooleanv(key, &val);
return val == GL_TRUE;
`}
# Query the floating point value at `key`
private fun get_float(key: Int): Float `{
GLfloat val;
glGetFloatv(key, &val);
return val;
`}
# Query the integer value at `key`
private fun get_int(key: Int): Int `{
GLint val;
glGetIntegerv(key, &val);
return val;
`}
# Does this driver support shader compilation?
#
# Should always return `true` in OpenGL ES 2.0 and 3.0.
fun shader_compiler: Bool do return get_bool(0x8DFA)
# OpenGL server-side capabilities
var capabilities = new GLCapabilities is lazy
end
lib/glesv2/glesv2.nit:805,1--836,3