Float
associated to a program variableglesv2 :: VertexArray :: attrib_pointer
glesv2 :: VertexArray :: defaultinit
glesv2 :: VertexArray :: glfloat_array
glesv2 :: VertexArray :: glfloat_array=
glesv2 :: VertexArray :: index
glesv2 :: VertexArray :: index=
glesv2 $ VertexArray :: SELF
Type of this instance, automatically specialized in every classglesv2 :: VertexArray :: attrib_pointer
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
glesv2 :: VertexArray :: defaultinit
core :: Object :: defaultinit
glesv2 :: VertexArray :: glfloat_array
glesv2 :: VertexArray :: glfloat_array=
glesv2 :: VertexArray :: index
glesv2 :: VertexArray :: index=
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 :: output_class_name
Display class name on stdout (debug only).
# An array of `Float` associated to a program variable
class VertexArray
var index: Int
# Number of data per vertex
var count: Int
protected var glfloat_array: NativeGLfloatArray
init(index, count: Int, array: Array[Float])
do
self.index = index
self.count = count
self.glfloat_array = new NativeGLfloatArray(array.length)
for k in [0..array.length[ do
glfloat_array[k] = array[k]
end
end
fun attrib_pointer do attrib_pointer_intern(index, count, glfloat_array)
private fun attrib_pointer_intern(index, count: Int, array: NativeGLfloatArray) `{
glVertexAttribPointer(index, count, GL_FLOAT, GL_FALSE, 0, array);
`}
# Enable this vertex attribute array
fun enable do glEnableVertexAttribArray(index)
# Disable this vertex attribute array
fun disable do glDisableVertexAttribArray(index)
end
lib/glesv2/glesv2.nit:343,1--372,3