14 #ifndef VERTEX_ELEMENT_ARRAY_H 15 #define VERTEX_ELEMENT_ARRAY_H 34 void add_position_xyz_vertex_element (
int stream_index,
int offset);
35 void add_position_xyzw_vertex_element (
int stream_index,
int offset);
37 void add_normal_vertex_element (
int stream_index,
int offset);
38 void add_binormal_vertex_element (
int stream_index,
int offset);
39 void add_tangent_vertex_element (
int stream_index,
int offset);
41 void add_diffuse_color_vertex_element (
int stream_index,
int offset);
42 void add_specular_color_vertex_element (
int stream_index,
int offset);
44 void add_u_vertex_element (
int stream_index,
int offset,
int texture_stage);
45 void add_uv_vertex_element (
int stream_index,
int offset,
int texture_stage);
46 void add_uvw_vertex_element (
int stream_index,
int offset,
int texture_stage);
47 void add_xyzw_vertex_element (
int stream_index,
int offset,
int texture_stage);
49 bool add_end_vertex_element (
void);
52 int _maximum_vertex_elements;
54 LPD3DVERTEXELEMENT9 _vertex_element_array;
This class gives the ability for a user-friendly way of creating a vertex declaration for DirectX 9.