Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef VERTEX_H
- #define VERTEX_H
- struct Vertex{
- public:
- //Vertex Position (x, y, z, w)
- struct Position{
- float x = 0.0f;
- float y = 0.0f;
- float z = 0.0f;
- float w = 1.0f;
- } position;
- //Vertex Color (r, g, b, a)
- struct Color{
- float r = 1.0f;
- float g = 1.0f;
- float b = 1.0f;
- float a = 1.0f;
- } color;
- //Normal Coordinates (x, y, z)
- struct NormalCoordinates{
- float x = 0.0f;
- float y = 0.0f;
- float z = 0.0f;
- } normals;
- //Vertex UV Coordinates (x, y)
- struct UVCoordinates{
- float x = 0.0f;
- float y = 0.0f;
- } uvs;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment