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]
List of all members
vl::ArrayFloat2 Class Reference

An array of vl::fvec2. More...

#include <Array.hpp>

+ Inheritance diagram for vl::ArrayFloat2:

Additional Inherited Members

- Public Types inherited from vl::Array< fvec2, GLfloat, 2, GL_FLOAT >
typedef GLfloat scalar_type
 
typedef fvec2 vector_type
 
- Public Member Functions inherited from vl::Array< fvec2, GLfloat, 2, GL_FLOAT >
virtual size_t glSize () const
 Returns the number of scalar components for the array, ie 3 for ArrayFloat3, 1 for ArrayUInt1 etc. More...
 
virtual GLenum glType () const
 Returns the OpenGL type for the array, ie GL_FLOAT for ArrayFloat3, GL_UNSIGNED_INT for ArrayUInt1 etc. More...
 
virtual size_t bytesPerVector () const
 
void clear ()
 
void resize (size_t dim)
 
size_t size () const
 Returns the number of elements of an array. More...
 
size_t sizeBufferObject () const
 
size_t scalarCount () const
 
size_t scalarCountBufferObject () const
 
const fvec2begin () const
 
fvec2begin ()
 
const fvec2end () const
 
fvec2end ()
 
fvec2at (size_t i)
 
const fvec2at (size_t i) const
 
fvec2operator[] (size_t i)
 
const fvec2operator[] (size_t i) const
 
virtual ref< ArrayAbstractcreateArray () const
 
virtual ref< ArrayAbstractclone () const
 
Sphere computeBoundingSphere () const
 Computes the bounding sphere enclosing the vectors contained in the buffer. More...
 
AABB computeBoundingBox () const
 Computes the axis aligned bounding box enclosing the vectors contained in the buffer. More...
 
void transform (const mat4 &m)
 Transforms the vectors contained in the buffer. More...
 
void normalize ()
 Normalizes the vectors contained in the buffer. More...
 
vec4 getAsVec4 (size_t vector_index) const
 Returns a vector from the buffer as a vec4 value. More...
 
vec3 getAsVec3 (size_t vector_index) const
 Returns a vector from the buffer as a vec3 value. More...
 
vec2 getAsVec2 (size_t vector_index) const
 Returns a vector from the buffer as a vec2 value. More...
 
int compare (int a, int b) const
 Compares two vectors. More...
 
void initFrom (const std::vector< fvec2 > &vector)
 
- Public Member Functions inherited from vl::ArrayAbstract
 ArrayAbstract ()
 Default constructor. More...
 
 ArrayAbstract (const ArrayAbstract &other)
 Copies only the local data and not the BufferObject related fields. More...
 
void operator= (const ArrayAbstract &other)
 Copies only the local data and not the BufferObject related fields. More...
 
const BufferObjectbufferObject () const
 
BufferObjectbufferObject ()
 
void clear ()
 
const unsigned char * ptr () const
 Returns the pointer to the first element of the local buffer. Equivalent to bufferObject()->ptr() More...
 
unsigned char * ptr ()
 Returns the pointer to the first element of the local buffer. Equivalent to bufferObject()->ptr() More...
 
virtual size_t bytesUsed () const
 Returns the amount of memory in bytes used by an array. Equivalent to bufferObject()->bytesUsed(). More...
 
bool isBufferObjectDirty () const
 Wether the BufferObject should be updated or not using the local storage. More...
 
void setBufferObjectDirty (bool dirty=true)
 Wether the BufferObject should be updated or not using the local storage. More...
 
EBufferObjectUsage usage () const
 BU_STATIC_DRAW by default. More...
 
void setUsage (EBufferObjectUsage usage)
 BU_STATIC_DRAW by default. More...
 
void updateBufferObject (EBufferObjectUpdateMode mode=BUM_KeepRamBuffer)
 Updates the BufferObject. More...
 
void setNormalize (bool normalize)
 The 'normalized' parameter as used with glVertexAttribPointer() More...
 
bool normalize () const
 The 'normalized' parameter as used with glVertexAttribPointer() More...
 
void setInterpretation (EVertexAttribInterpretation behavior)
 How the data is interpreted by the OpenGL, see EVertexAttribInterpretation. More...
 
EVertexAttribInterpretation interpretation () const
 How the data is interpreted by the OpenGL, see EVertexAttribInterpretation. 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...
 
- Static Public Attributes inherited from vl::Array< fvec2, GLfloat, 2, GL_FLOAT >
static const size_t gl_size
 
static const GLenum gl_type
 
- Protected Member Functions inherited from vl::Object
virtual ~Object ()
 
- Protected Attributes inherited from vl::ArrayAbstract
ref< BufferObjectmBufferObject
 
EBufferObjectUsage mBufferObjectUsage
 
bool mBufferObjectDirty
 
EVertexAttribInterpretation mInterpretation
 
bool mNormalize
 
- Protected Attributes inherited from vl::Object
std::string mObjectName
 
IMutexmRefCountMutex
 
int mReferenceCount
 
bool mAutomaticDelete
 

Detailed Description

An array of vl::fvec2.

Definition at line 412 of file Array.hpp.


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