Visualization Library v1.0.3

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

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::DrawRangeElementsBase Class Reference

Base interface for all DrawRangeElements* sub classes. More...

#include <DrawRangeElements.hpp>

Inheritance diagram for vl::DrawRangeElementsBase:
vl::DrawCall vl::Object vl::DrawRangeElements< ArrayUByte1 > vl::DrawRangeElements< ArrayUInt1 > vl::DrawRangeElements< ArrayUShort1 > vl::DrawRangeElements< arr_type > vl::DrawRangeElementsUByte vl::DrawRangeElementsUInt vl::DrawRangeElementsUShort

List of all members.

Public Member Functions

void setRangeStart (int rstart)
 Sets the range start.
int rangeStart () const
 Returns the range start.
void setRangeEnd (int rend)
 Sets the range end.
int rangeEnd () const
 Returns the range end.
virtual bool primitiveRestartEnabled () const
 Returns whether the primitive-restart functionality is enabled or not.
void setPrimitiveRestartEnabled (bool enabled)
 Enables the primitive-restart functionality.
void setBaseVertex (int base_vertex)
 If base_vertx is != 0 glDrawRangeElementsBaseVertex/glDrawRangeElementsInstancedBaseVertex will be used instead of their non *BaseVertx counterparts.
int baseVertex () const
 Returns the currently used base vertex.

Protected Attributes

int mRangeStart
int mRangeEnd
GLuint mBaseVertex
bool mPrimitiveRestartEnabled

Detailed Description

Base interface for all DrawRangeElements* sub classes.

Implements the index-type-independent interface of the class. That is you can cast to DrawRangeElementsBase* and access its members without needing to know whether the actual class is a vl::DrawRangeElementsUInt, vl::DrawRangeElementsUShort or vl::DrawRangeElementsUByte.

Definition at line 53 of file DrawRangeElements.hpp.


Member Function Documentation

void vl::DrawRangeElementsBase::setRangeStart ( int  rstart ) [inline]

Sets the range start.

See also http://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElements.xml

Definition at line 59 of file DrawRangeElements.hpp.

References mRangeStart.

int vl::DrawRangeElementsBase::rangeStart (  ) const [inline]

Returns the range start.

See also http://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElements.xml

Definition at line 62 of file DrawRangeElements.hpp.

References mRangeStart.

Referenced by vl::Geometry::shrinkDrawCalls().

void vl::DrawRangeElementsBase::setRangeEnd ( int  rend ) [inline]

Sets the range end.

See also http://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElements.xml

Definition at line 65 of file DrawRangeElements.hpp.

References mRangeEnd.

int vl::DrawRangeElementsBase::rangeEnd (  ) const [inline]

Returns the range end.

See also http://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElements.xml

Definition at line 68 of file DrawRangeElements.hpp.

References mRangeEnd.

Referenced by vl::Geometry::shrinkDrawCalls().

virtual bool vl::DrawRangeElementsBase::primitiveRestartEnabled (  ) const [inline, virtual]

Returns whether the primitive-restart functionality is enabled or not.

See http://www.opengl.org/registry/specs/NV/primitive_restart.txt

Reimplemented from vl::DrawCall.

Definition at line 71 of file DrawRangeElements.hpp.

References mPrimitiveRestartEnabled.

Referenced by vl::DrawRangeElements< ArrayUShort1 >::render(), and vl::DrawRangeElements< ArrayUShort1 >::triangleIterator().

void vl::DrawRangeElementsBase::setPrimitiveRestartEnabled ( bool  enabled ) [inline]

Enables the primitive-restart functionality.

See http://www.opengl.org/registry/specs/NV/primitive_restart.txt

Definition at line 74 of file DrawRangeElements.hpp.

References mPrimitiveRestartEnabled.

void vl::DrawRangeElementsBase::setBaseVertex ( int  base_vertex ) [inline]

If base_vertx is != 0 glDrawRangeElementsBaseVertex/glDrawRangeElementsInstancedBaseVertex will be used instead of their non *BaseVertx counterparts.

Note that using base_vertx != requires OpenGL 3.2 or higher or ARB_draw_elements_base_vertex. For more information see also http://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElementsBaseVertex.xml

Definition at line 80 of file DrawRangeElements.hpp.

References mBaseVertex.

int vl::DrawRangeElementsBase::baseVertex (  ) const [inline]

Returns the currently used base vertex.

For more information see also http://www.opengl.org/sdk/docs/man3/xhtml/glDrawRangeElementsBaseVertex.xml

Definition at line 84 of file DrawRangeElements.hpp.

References mBaseVertex.

Referenced by vl::Geometry::shrinkDrawCalls(), and vl::DrawRangeElements< ArrayUShort1 >::triangleIterator().


Member Data Documentation


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:10.
Permission is granted to use this page to write and publish articles regarding Visualization Library.