Graphics: Change Vertex color to 4 components.
This commit is contained in:
parent
edfc5298e1
commit
8675018522
7 changed files with 12 additions and 12 deletions
|
|
@ -3,7 +3,7 @@
|
|||
#define SPECTRE_GRAPHICS_VERTEX2D_H
|
||||
|
||||
#include <Spectre/Math/Vector2.h>
|
||||
#include <Spectre/Math/Vector3.h>
|
||||
#include <Spectre/Math/Vector4.h>
|
||||
|
||||
// Based on https://www.opengl.org/sdk/docs/tutorials/ClockworkCoders/attributes.php
|
||||
enum VertexAttrib
|
||||
|
|
@ -18,13 +18,13 @@ enum VertexAttrib
|
|||
struct Vertex2D
|
||||
{
|
||||
Vector2f position;
|
||||
Vector3f color;
|
||||
Vector4f color;
|
||||
Vector2f uv;
|
||||
|
||||
Vertex2D();
|
||||
Vertex2D(Vector2f pos);
|
||||
Vertex2D(Vector2f pos, Vector2f uv);
|
||||
Vertex2D(Vector2f pos, Vector3f color, Vector2f uv = 0.0f);
|
||||
Vertex2D(Vector2f pos, Vector4f color, Vector2f uv = 0.0f);
|
||||
};
|
||||
|
||||
#endif /* SPECTRE_GRAPHICS_VERTEX2D_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue