Visualization Library 2.1.0
A lightweight C++ OpenGL middleware for 2D/3D graphics
|
[Download] [Tutorials] [All Classes] [Grouped Classes] |
See MultiDrawElements. More...
#include <MultiDrawElements.hpp>
Public Member Functions | |
MultiDrawElementsUInt (EPrimitiveType primitive=PT_TRIANGLES) | |
Public Member Functions inherited from vl::MultiDrawElements< ArrayUInt1 > | |
virtual unsigned int | primitiveRestartIndex () |
Returns the primitive restart index used by the draw call or 0 if primitive restart is not supported. More... | |
MultiDrawElements (EPrimitiveType primitive=PT_TRIANGLES) | |
MultiDrawElements & | operator= (const MultiDrawElements &other) |
virtual ref< DrawCall > | clone () const |
Returns a clone of the draw call. More... | |
void | setIndexBuffer (ArrayUInt1 *index_buffer) |
ArrayUInt1 * | indexBuffer () |
const ArrayUInt1 * | indexBuffer () const |
virtual void | updateDirtyBufferObject (EBufferObjectUpdateMode mode) |
Updates the index buffer's BufferObject if marked as dirty. More... | |
virtual void | deleteBufferObject () |
Deletes the index buffer's BufferObject. More... | |
virtual void | render (bool use_bo) const |
Executes the draw call. More... | |
TriangleIterator | triangleIterator () const |
Returns a TriangleIterator used to iterate through the triangles of a DrawCall. More... | |
IndexIterator | indexIterator () const |
Returns a IndexIterator used to iterate through the virtual indices of a DrawCall. More... | |
const std::vector< const index_type *> & | pointerVector () const |
The pointer vector used as 'indices' parameter of glMultiDrawElements when NOT using BufferObjects. More... | |
std::vector< const index_type *> & | pointerVector () |
The pointer vector used as 'indices' parameter of glMultiDrawElements when NOT using BufferObjects. More... | |
const std::vector< const index_type *> & | bufferObjectPointerVector () const |
The pointer vector used as 'indices' parameter of glMultiDrawElements when using BufferObjects. More... | |
std::vector< const index_type *> & | bufferObjectPointerVector () |
The pointer vector used as 'indices' parameter of glMultiDrawElements when using BufferObjects. More... | |
void | computePointerVector () |
Computes pointerVector() based on the values contained on countVector(). More... | |
void | computeBufferObjectPointerVector () |
Computes bufferObjectPointerVector() based on the values contained in pointerVector(). More... | |
Public Member Functions inherited from vl::MultiDrawElementsBase | |
virtual bool | primitiveRestartEnabled () const |
Returns whether the primitive-restart functionality is enabled or not. More... | |
void | setPrimitiveRestartEnabled (bool enabled) |
Enables the primitive-restart functionality. More... | |
void | finalizeSetup () |
Calls computePointerVector(), computeBufferObjectPointerVector() and resizes the base vertex array to fit the count vector. More... | |
void | setCountVector (const std::vector< GLsizei > &vcount) |
Sets the vector defining the length of each primitive and automatically computes the pointer vectors used to exectue glMultiDrawElements(). More... | |
void | setCountVector (const GLsizei *vcount, size_t size) |
Sets the vector defining the length of each primitive and automatically computes the pointer vectors used to exectue glMultiDrawElements(). More... | |
const std::vector< GLsizei > & | countVector () const |
The count vector used as 'count' parameter of glMultiDrawElements. More... | |
std::vector< GLsizei > & | countVector () |
The count vector used as 'count' parameter of glMultiDrawElements. More... | |
void | setBaseVertices (const std::vector< GLint > &base_verts) |
Returns the list of base vertices, one for each primitive. More... | |
const std::vector< GLint > & | baseVertices () const |
Returns the list of base vertices, one for each primitive. More... | |
std::vector< GLint > & | baseVertices () |
Returns the list of base vertices, one for each primitive. More... | |
Public Member Functions inherited from vl::DrawCall | |
DrawCall () | |
Constructor. More... | |
DrawCall & | operator= (const DrawCall &other) |
Assignment operator. More... | |
void | setPrimitiveType (EPrimitiveType type) |
Sets the draw call's primitive type. More... | |
EPrimitiveType | primitiveType () const |
Returns the draw call's primitive type. More... | |
void | setEnabled (bool enable) |
Enables/disables the draw call. More... | |
bool | isEnabled () const |
True if the draw call is enabled. More... | |
u32 | countIndices () const |
Counts the number of virtual indices of a DrawCall., i.e. More... | |
u32 | countTriangles () const |
Counts the number of virtual triangles of a DrawCall., i.e. More... | |
virtual int | instances () const |
Returns the number of instances for this set of primitives. More... | |
void | setPatchParameter (PatchParameter *patch_param) |
Attach a PatchParameter to a DrawCall to be used when using primitive-type PT_PATCHES. More... | |
PatchParameter * | patchParameter () |
The PatchParameter attached to a DrawCall to be used when using primitive-type PT_PATCHES. More... | |
const PatchParameter * | patchParameter () const |
The PatchParameter attached to a DrawCall to be used when using primitive-type PT_PATCHES. More... | |
Public Member Functions inherited from vl::Object | |
Object () | |
Constructor. More... | |
Object (const Object &other) | |
Copy constructor: copies the name, ref count mutex and user data. More... | |
Object & | operator= (const Object &other) |
Copy operator: copies the object's name, ref count mutex and user data. More... | |
const std::string & | objectName () const |
The name of the object, by default set to the object's class name. More... | |
void | setObjectName (const char *name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setObjectName (const std::string &name) |
The name of the object, by default set to the object's class name in debug builds. More... | |
void | setRefCountMutex (IMutex *mutex) |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
IMutex * | refCountMutex () |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
const IMutex * | refCountMutex () const |
The mutex used to protect the reference counting of an Object across multiple threads. More... | |
int | referenceCount () const |
Returns the number of references of an object. More... | |
void | incReference () const |
Increments the reference count of an object. More... | |
void | decReference () |
Decrements the reference count of an object and deletes it if both automaticDelete() is true the count reaches 0. More... | |
void | setAutomaticDelete (bool autodel_on) |
If set to true the Object is deleted when its reference count reaches 0. More... | |
bool | automaticDelete () const |
If set to true the Object is deleted when its reference count reaches 0. More... | |
template<class T > | |
T * | as () |
Casts an Object to the specified class. More... | |
template<class T > | |
const T * | as () const |
Casts an Object to the specified class. More... | |
Additional Inherited Members | |
Public Types inherited from vl::MultiDrawElements< ArrayUInt1 > | |
typedef ArrayUInt1 ::scalar_type | index_type |
Static Public Attributes inherited from vl::MultiDrawElements< ArrayUInt1 > | |
static const index_type | primitive_restart_index |
The special index which identifies a primitive restart. By default it is set to ~0 that is 0xFF, 0xFFFF, 0xFFFFFFFF respectively for GLubyte, GLushort, GLuint index types. */. More... | |
Protected Member Functions inherited from vl::DrawCall | |
void | applyPatchParameters () const |
Protected Member Functions inherited from vl::Object | |
virtual | ~Object () |
Protected Attributes inherited from vl::MultiDrawElements< ArrayUInt1 > | |
ref< ArrayUInt1 > | mIndexBuffer |
std::vector< const index_type *> | mPointerVector |
std::vector< const index_type *> | mBufferObjectPointerVector |
Protected Attributes inherited from vl::MultiDrawElementsBase | |
bool | mPrimitiveRestartEnabled |
std::vector< GLsizei > | mCountVector |
std::vector< GLint > | mBaseVertices |
Protected Attributes inherited from vl::DrawCall | |
ref< PatchParameter > | mPatchParameter |
EPrimitiveType | mType |
bool | mEnabled |
Protected Attributes inherited from vl::Object | |
std::string | mObjectName |
IMutex * | mRefCountMutex |
int | mReferenceCount |
bool | mAutomaticDelete |
See MultiDrawElements.
A MultiDrawElements using indices of type GLuint
.
Definition at line 324 of file MultiDrawElements.hpp.
|
inline |
Definition at line 329 of file MultiDrawElements.hpp.
Visualization Library 2.1.0 Reference Documentation
Updated on Wed Mar 10 2021 16:02:52.
© Copyright Michele Bosi. All rights reserved.