representation d'un buffer d'indexation. More...
#include <TPBuffer.h>
Public Member Functions | |
| GLIndexBuffer (const unsigned int count, const unsigned int length, const void *data, const GLenum usage=GL_STATIC_DRAW) | |
| GLenum | target () const |
| renvoie l'identifiant des proprietes modifiees par le buffer. | |
| 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 | 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) |
| 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 |
| renvoie l'identifiant de l'objet openGL. | |
Protected Attributes | |
| GLenum | m_usage |
| unsigned int | m_length |
| unsigned int | m_count |
| GLuint | m_name |
representation d'un buffer d'indexation.
| int gk::GLBuffer::clear | ( | const GLenum | target | ) | [inline, inherited] |
efface le contenu du buffer.
| int gk::GLBuffer::update | ( | const GLenum | target, |
| const unsigned long int | offset, | ||
| const unsigned long int | length, | ||
| const void * | data | ||
| ) | [inline, inherited] |
modifie le contenu d'une partie du buffer.
| 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, inherited] |
mappe le contenu du buffer en memoire host.
cf. glMapBufferRange() pour les flags 'access'.
1.7.6.1