Various buffers required for this geometry (e.g., vertex buffer).
Vertex array used for binding the rectangle's buffer(s).
Asserts the objects initialization status to be true. Note that the implementation is cached and forwarded to either an empty function when initialized and to an acutal assert(false) otherwise.
Asserts the objects initialization status to be false. Note that the implementation is cached and forwarded to either an empty function when uninitialized and to an acutal assert(false) otherwise.
Read-only access to the buffer(s) associated to this instances vertex array object.
Read-only access to the buffers' and vertex array's context.
Property getter for readonly access to the initialization status of an initializable instance.
Read-only access to the vertex array.
Binds the vertex array object.
Returns information about the attribute buffer used by this primitive for a specific attribute semantic. If the attribute buffer is not present, undefined is returned.
Name of the attribute semantic defined by glTF, e.g., "POSITION" or "TEXCOORD_0", see https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#meshes
Initializes all buffer objects and the vertex array. Please note that implicit arguments are used in order to enable custom initialization signatures for inheritors.
Unbinds the vertex array object.
Uninitialize the vertex array object and the rectangle.
Method decorator for asserting the initialization status of an initializable to be true.
Method decorator for asserting the initialization status of an initializable to be false.
Method decorator for discarding of Initializable inheritors. This decorator asserts the initialization
status of the instance that is to be discarded, invokes its uninitialization, and falsifies the
initialization status. In order to encourage the use of assertInitialized
and assertUninitialized
they are
dynamically bound to a static, always-failing assert and an empty/undefined function respectively.
Method decorator for initialization of Initializable inheritors. This decorator asserts the initialization status
of the instance that is to be initialized, invokes its initialization with arbitrary number of parameters,
and sets the initialization status to the initialization success (either false or true).
In order to encourage the use of assertInitialized
and assertUninitialized
they are dynamically
bound to either a static, always-failing assert or an empty/undefined function.
Method decorator for uninitialization of Initializable inheritors. This decorator asserts the initialization
status of the instance that is to be uninitialized, invokes its uninitialization, and falsifies the
initialization status. In order to encourage the use of assertInitialized
and assertUninitialized
they are
dynamically bound to a static, always-failing assert and an empty/undefined function respectively.
This class includes all information to render a primitive as specified by the glTF standard. The logic for binding the necessary buffers and drawing the primitive are also included. The material for the primitive as specified by glTF is stored, however it is not bound automatically, i.e., material handling needs to be performed outside this class. See https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#geometry.