![]() |
CUGL 4.0
Cornell University Game Library
|
#include <CUGraphicsBase.h>
Public Member Functions | |
| VertexBindInfo () | |
| VertexBindInfo (const VertexBindInfo &info) | |
| VertexBindInfo & | operator= (const VertexBindInfo &info) |
Public Attributes | |
| size_t | stride |
| bool | instance |
This class/struct represents a binding information for a vertex buffer
This class represents a binding point to connect a VertexBuffer to a GraphicsShader. It allows us to swap out different vertex buffers while the shader is active. A vertex buffer and a shader must have compatible bind info in order for them to connect.
| cugl::graphics::VertexBindInfo::VertexBindInfo | ( | ) |
Creates a zero-sized binding value
| cugl::graphics::VertexBindInfo::VertexBindInfo | ( | const VertexBindInfo & | info | ) |
Creates a copy of the given bind information
| info | The binding information to copy |
| VertexBindInfo & cugl::graphics::VertexBindInfo::operator= | ( | const VertexBindInfo & | info | ) |
Assigns this object to be a copy of the given binding information.
| info | The binding information to copy |
| bool cugl::graphics::VertexBindInfo::instance |
Whether this vertex buffer is instanced
| size_t cugl::graphics::VertexBindInfo::stride |
The stride of the vertex buffer