Uniform or Attribute of a GamnitProgramgamnit :: ShaderVariable :: _location
Location ofself in the compiled program
gamnit :: ShaderVariable :: _program
TheGamnitProgram to which self belongs
gamnit :: ShaderVariable :: _size
Number of elements in this array (1 for scalars and more for vectors)gamnit :: ShaderVariable :: defaultinit
gamnit :: ShaderVariable :: is_active
Isself an active uniform or attribute in the program?
gamnit :: ShaderVariable :: location=
Location ofself in the compiled program
gamnit :: ShaderVariable :: name=
Name ofself in the program source
gamnit :: ShaderVariable :: program=
TheGamnitProgram to which self belongs
gamnit :: ShaderVariable :: size
Number of elements in this array (1 for scalars and more for vectors)gamnit :: ShaderVariable :: size=
Number of elements in this array (1 for scalars and more for vectors)gamnit $ ShaderVariable :: SELF
Type of this instance, automatically specialized in every classgamnit :: ShaderVariable :: _location
Location ofself in the compiled program
gamnit :: ShaderVariable :: _program
TheGamnitProgram to which self belongs
gamnit :: ShaderVariable :: _size
Number of elements in this array (1 for scalars and more for vectors)core :: Object :: class_factory
Implementation used byget_class to create the specific class.
core :: Object :: defaultinit
gamnit :: ShaderVariable :: defaultinit
gamnit :: ShaderVariable :: is_active
Isself an active uniform or attribute in the program?
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.
gamnit :: ShaderVariable :: location=
Location ofself in the compiled program
gamnit :: ShaderVariable :: name=
Name ofself in the program source
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).gamnit :: ShaderVariable :: program=
TheGamnitProgram to which self belongs
gamnit :: ShaderVariable :: size
Number of elements in this array (1 for scalars and more for vectors)gamnit :: ShaderVariable :: size=
Number of elements in this array (1 for scalars and more for vectors)Attribute that does not exist or that has been optimized out
Uniform that does not exist or that has been optimized out
# `Uniform` or `Attribute` of a `GamnitProgram`
class ShaderVariable
# The `GamnitProgram` to which `self` belongs
var program: GLProgram
# Name of `self` in the `program` source
var name: String
# Location of `self` in the compiled `program`
var location: Int
# Number of elements in this array (1 for scalars and more for vectors)
var size: Int
# Is `self` an active uniform or attribute in the `program`?
#
# If `false`, the variable may have been optimized out by the compiler.
fun is_active: Bool do return true
redef fun to_s do return "<{class_name} name:{name} location:{location} size:{size}"
end
lib/gamnit/programs.nit:23,1--44,3