32 #ifndef DrawCommand_INCLUDE_ONCE 33 #define DrawCommand_INCLUDE_ONCE 113 virtual void render(
bool use_bo =
true)
const = 0;
190 vl::Log::warning(
"No PatchParameter supplied while using PT_PATCHES draw call!\n");
const PatchParameter * patchParameter() const
The PatchParameter attached to a DrawCall to be used when using primitive-type PT_PATCHES.
bool hasNext()
Returns false if the iterator has reached the end of the triangle list.
virtual bool primitiveRestartEnabled() const
Returns whether the primitive-restart functionality is enabled or not.
void setPrimitiveType(EPrimitiveType type)
Sets the draw call's primitive type.
virtual void deleteBufferObject()=0
Deletes the index buffer's BufferObject.
ref< PatchParameter > mPatchParameter
static void warning(const String &message)
Use this function to provide information about situations that might lead to errors or loss of data...
virtual void render(bool use_bo=true) const =0
Executes the draw call.
u32 countTriangles() const
Counts the number of virtual triangles of a DrawCall., i.e.
bool isEnabled() const
True if the draw call is enabled.
virtual ref< DrawCall > clone() const =0
Returns a clone of the draw call.
virtual void updateDirtyBufferObject(EBufferObjectUpdateMode)=0
Updates the index buffer's BufferObject if marked as dirty.
Visualization Library main namespace.
void applyPatchParameters() const
PatchParameter * patchParameter()
The PatchParameter attached to a DrawCall to be used when using primitive-type PT_PATCHES.
The base class for all the reference counted objects.
virtual TriangleIterator triangleIterator() const =0
Returns a TriangleIterator used to iterate through the triangles of a DrawCall.
unsigned int u32
32 bits unsigned integer
Iterator used to extract the indices of every single triangle of a DrawCall regardless of the primiti...
virtual int instances() const
Returns the number of instances for this set of primitives.
u32 countIndices() const
Counts the number of virtual indices of a DrawCall., i.e.
#define VL_INSTRUMENT_ABSTRACT_CLASS(ClassName, BaseClass)
The base class of DrawArrays, DrawElements, MultiDrawElements and DrawRangeElements.
DrawCall & operator=(const DrawCall &other)
Assignment operator.
virtual IndexIterator indexIterator() const =0
Returns a IndexIterator used to iterate through the virtual indices of a DrawCall.
void setEnabled(bool enable)
Enables/disables the draw call.
The ref<> class is used to reference-count an Object.
virtual unsigned int primitiveRestartIndex()
Returns the primitive restart index used by the draw call or 0 if primitive restart is not supported...
Wraps a IndexIteratorAbstract to iterate over the indices of a DrawCall.
EPrimitiveType primitiveType() const
Returns the draw call's primitive type.
void setPatchParameter(PatchParameter *patch_param)
Attach a PatchParameter to a DrawCall to be used when using primitive-type PT_PATCHES.
Wrapper of glPatchParameter(), specifies the parameters for patch primitives, used by vl::DrawCall::s...