Visualization Library 2.0.0

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | List of all members
vl::MultiDrawElementsUByte Class Reference

See MultiDrawElements. More...

#include <MultiDrawElements.hpp>

+ Inheritance diagram for vl::MultiDrawElementsUByte:

Public Member Functions

 MultiDrawElementsUByte (EPrimitiveType primitive=PT_TRIANGLES)
 
- Public Member Functions inherited from vl::MultiDrawElements< ArrayUByte1 >
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)
 
MultiDrawElementsoperator= (const MultiDrawElements &other)
 
virtual ref< DrawCallclone () const
 Returns a clone of the draw call. More...
 
void setIndexBuffer (ArrayUByte1 *index_buffer)
 
ArrayUByte1indexBuffer ()
 
const ArrayUByte1indexBuffer () 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...
 
DrawCalloperator= (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...
 
PatchParameterpatchParameter ()
 The PatchParameter attached to a DrawCall to be used when using primitive-type PT_PATCHES. More...
 
const PatchParameterpatchParameter () 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...
 
Objectoperator= (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...
 
IMutexrefCountMutex ()
 The mutex used to protect the reference counting of an Object across multiple threads. More...
 
const IMutexrefCountMutex () 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< ArrayUByte1 >
typedef ArrayUByte1 ::scalar_type index_type
 
- Static Public Attributes inherited from vl::MultiDrawElements< ArrayUByte1 >
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< ArrayUByte1 >
ref< ArrayUByte1mIndexBuffer
 
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< PatchParametermPatchParameter
 
EPrimitiveType mType
 
bool mEnabled
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

Detailed Description

See MultiDrawElements.

A MultiDrawElements using indices of type GLubyte.

Definition at line 350 of file MultiDrawElements.hpp.

Constructor & Destructor Documentation

◆ MultiDrawElementsUByte()

vl::MultiDrawElementsUByte::MultiDrawElementsUByte ( EPrimitiveType  primitive = PT_TRIANGLES)
inline

Definition at line 355 of file MultiDrawElements.hpp.


The documentation for this class was generated from the following file: