CUGL 4.0
Cornell University Game Library
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cugl::graphics::VertexBindInfo Class Reference

#include <CUGraphicsBase.h>

Public Member Functions

 VertexBindInfo ()
 
 VertexBindInfo (const VertexBindInfo &info)
 
VertexBindInfooperator= (const VertexBindInfo &info)
 

Public Attributes

size_t stride
 
bool instance
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ VertexBindInfo() [1/2]

cugl::graphics::VertexBindInfo::VertexBindInfo ( )

Creates a zero-sized binding value

◆ VertexBindInfo() [2/2]

cugl::graphics::VertexBindInfo::VertexBindInfo ( const VertexBindInfo info)

Creates a copy of the given bind information

Parameters
infoThe binding information to copy

Member Function Documentation

◆ operator=()

VertexBindInfo & cugl::graphics::VertexBindInfo::operator= ( const VertexBindInfo info)

Assigns this object to be a copy of the given binding information.

Parameters
infoThe binding information to copy
Returns
a reference to this object for chaining

Member Data Documentation

◆ instance

bool cugl::graphics::VertexBindInfo::instance

Whether this vertex buffer is instanced

◆ stride

size_t cugl::graphics::VertexBindInfo::stride

The stride of the vertex buffer


The documentation for this class was generated from the following file: