|
hx3d
1
2D/3D Simple Game Framework
|
OpenGL GPU uploadable buffer. More...
#include <array_buffer.hpp>
Public Member Functions | |
| virtual void | upload ()=0 |
| Upload the data to the GPU. | |
| virtual void | begin (const Ptr< Shader > &shader)=0 |
| Begin the use with a shader. More... | |
| virtual void | end (const Ptr< Shader > &shader)=0 |
| End the use with a shader. More... | |
Public Member Functions inherited from hx3d::graphics::buffers::Buffer< T > | |
| void | set (const std::vector< T > &values) |
| Set the buffer values. More... | |
| void | add (const std::vector< T > &values) |
| Add buffer values. More... | |
| T * | data () |
| Get the buffer values. More... | |
| GLuint | getId () |
| Get the buffer ID. More... | |
| unsigned int | size () |
| Get the buffer size. More... | |
| std::vector< T > & | getVector () |
| Get the vector. More... | |
| T | getValue (unsigned int i) |
| Get a value. More... | |
| void | setValue (const unsigned int i, const T value) |
| Set a value. More... | |
| void | clear () |
| Clear all values. | |
Additional Inherited Members | |
Protected Attributes inherited from hx3d::graphics::buffers::Buffer< T > | |
| std::vector< T > | _vector |
| Data. | |
| GLuint | _buf |
| Internal ID. | |
OpenGL GPU uploadable buffer.
Definition at line 39 of file array_buffer.hpp.
|
pure virtual |
Begin the use with a shader.
| shader | Shader (Ptr) |
Implemented in hx3d::graphics::buffers::MultiArrayBuffer, hx3d::graphics::buffers::AttributeArrayBuffer, hx3d::graphics::buffers::AttributeStreamBuffer, and hx3d::graphics::buffers::IndexArrayBuffer.
|
pure virtual |
End the use with a shader.
| shader | Shader (Ptr) |
Implemented in hx3d::graphics::buffers::MultiArrayBuffer, hx3d::graphics::buffers::AttributeArrayBuffer, hx3d::graphics::buffers::AttributeStreamBuffer, and hx3d::graphics::buffers::IndexArrayBuffer.
1.8.11