tec::vertex::FormatDefinition
Holds relevent data to process and bind vertex data via glVertexAttrib*Pointer calls The convert() function loads data from a Mesh into the described format.
Inherited by tec::vertex::FormatDefine< Q >, tec::vertex::FormatDefine< T >
Public Types
Name | |
---|---|
typedef std::function< void(void dest, const Mesh source)> | func_t |
Public Functions
Name | |
---|---|
template <typename C ,typename... A> |
FormatDefinition(const C * , func_t f, A &&... a) |
Public Attributes
Name | |
---|---|
const size_t | format_stride |
const std::vector< AttribData > | info |
const func_t | convert |
Public Types Documentation
typedef func_t
typedef std::function<void(void* dest, const Mesh* source)> tec::vertex::FormatDefinition::func_t;
Public Functions Documentation
function FormatDefinition
template <typename C ,
typename... A>
inline FormatDefinition(
const C * ,
func_t f,
A &&... a
)
Public Attributes Documentation
variable format_stride
const size_t format_stride;
variable info
const std::vector< AttribData > info;
variable convert
const func_t convert;
Updated on 2022-07-24 at 19:27:35 +0000