Ult3D
Implementation of "Ultimate 3D Game Engine Design & Architecture" by Allan Sherrod
Loading...
Searching...
No Matches
VertexDescriptor.h
Go to the documentation of this file.
1#ifndef ULT_RENDERER_VERTEX_DESCRIPTOR_H_INCLUDED
2#define ULT_RENDERER_VERTEX_DESCRIPTOR_H_INCLUDED
3
4#include <vector>
5
6#include "ElementType.h"
7#include "VertexElement.h"
8
9namespace Ult
10{
11
18{
19public:
24
28 void Clear();
29
33 bool AddElement(ElementType type);
34
38 VertexElement GetElement(int index);
39
41 int GetTotalElements();
43 int GetStride() const;
44
45private:
46 std::vector<VertexElement> mElements;
47 int mCurrentStride;
48};
49
50} // namespace Ult
51
52#endif // ULT_RENDERER_VERTEX_DESCRIPTOR_H_INCLUDED
53
bool AddElement(ElementType type)
Definition VertexDescriptor.cpp:17
void Clear()
Definition VertexDescriptor.cpp:11
int GetStride() const
Definition VertexDescriptor.cpp:80
VertexElement GetElement(int index)
Definition VertexDescriptor.cpp:66
int GetTotalElements()
Definition VertexDescriptor.cpp:75
VertexDescriptor()
Definition VertexDescriptor.cpp:6
Definition VertexElement.h:15
ElementType
Definition ElementType.h:9
Definition Archive.h:13