representation d'un buffer d'attribut. More...
#include <TPBuffer.h>
Public Member Functions | |
| GLAttributeBuffer (const unsigned int count, const unsigned int length, const void *data, const GLenum usage=GL_STATIC_DRAW) | |
| constructeur. | |
| ~GLAttributeBuffer () | |
| destructeur. | |
| int | clear () |
| efface le contenu du buffer. | |
| int | update (const unsigned long int offset, const unsigned long int length, const void *data) |
| remplace une partie de contenu du buffer. | |
| void * | map (const unsigned long int offset, const unsigned long int length, const GLbitfield access) |
| mappe une partie du buffer en memoire centrale. | |
| int | unmap () |
| termine le mapping du contenu du buffer en memoire centrale, les donnees modifiees sont transferees sur le gpu. | |
| int | flush (const unsigned long int offset, const unsigned long int length) |
| termine une partie du mapping du contenu du buffer en memoire centrale, les donnees modifiiees sont transferees sur le gpu. | |
| 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 |
representation d'un buffer d'attribut.
| void* gk::GLAttributeBuffer::map | ( | const unsigned long int | offset, | |
| const unsigned long int | length, | |||
| const GLbitfield | access | |||
| ) | [inline] |
mappe une partie du buffer en memoire centrale.
cf. glMapBufferRange pour les flags 'access'.
Referenced by gk::ScopedMapAttributeBuffer< T >::ScopedMapAttributeBuffer().
| 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.
| 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'.
1.6.3