gk::GLIndexBuffer Class Reference

representation d'un buffer d'indexation. More...

#include <TPBuffer.h>

Inheritance diagram for gk::GLIndexBuffer:
gk::GLBuffer gk::GLResource

List of all members.

Public Member Functions

 GLIndexBuffer (const unsigned int count, const unsigned int length, const void *data, const GLenum usage=GL_STATIC_DRAW)
int clear ()
int update (const unsigned long int offset, const unsigned long int length, const void *data)
void * map (const unsigned long int offset, const unsigned long int length, const GLbitfield access)
 cf. glMapBufferRange pour les flags 'access'.
int unmap ()
int flush (const unsigned long int offset, const unsigned long int length)
int createGLResource ()
 creation de la ressource openGL.
int releaseGLResource ()
 destruction de la ressource openGL.
unsigned int count () const
 renvoie le nombre de vecteurs alloues (valeur passee au contructeur, cf GLBuffer()).
unsigned long int length () const
 renvoie le nombre d'octets alloues.
GLuint name () const
 operator GLuint () const

Protected Member Functions

int clear (const GLenum target)
 efface le contenu du buffer.
int update (const GLenum target, const unsigned long int offset, const unsigned long int length, const void *data)
 modifie le contenu d'une partie du buffer.
void * map (const GLenum target, const unsigned long int offset, const unsigned int length, const GLbitfield access)
 mappe le contenu du buffer en memoire host.
int unmap (const GLenum target)
int flush (const GLenum target, const unsigned long int offset, const unsigned int length)

Protected Attributes

GLenum m_usage
unsigned int m_length
unsigned int m_count
GLuint m_name

Detailed Description

representation d'un buffer d'indexation.


Member Function Documentation

int gk::GLBuffer::update ( const GLenum  target,
const unsigned long int  offset,
const unsigned long int  length,
const void *  data 
) [inline, protected, inherited]

modifie le contenu d'une partie du buffer.

Parameters:
offset position du premier octet a modifier,
length nombre d'octets a modifier.
void* gk::GLBuffer::map ( const GLenum  target,
const unsigned long int  offset,
const unsigned int  length,
const GLbitfield  access 
) [inline, protected, inherited]

mappe le contenu du buffer en memoire host.

cf. glMapBufferRange pour les flags 'access'.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Friends
Generated on Mon Jan 9 15:57:18 2012 for gKitGL by  doxygen 1.6.3