Logo
Vertex.h
1#pragma once
2
3#include "math/Vector2.h"
4#include "math/Vector3.h"
5#include "gfx/Color.h"
6
7namespace XXSharpKmyGfx
8{
9 private value struct VertexPositionColor {
10 XXSharpKmyMath::Vector3 pos;
11 XXSharpKmyGfx::Color color;
12 VertexPositionColor(float x, float y, float z, XXSharpKmyGfx::Color c) {
13 pos.x = x;
14 pos.y = y;
15 pos.z = z;
16 color = c;
17 }
18 };
19
20 private value struct VertexPositionTextureColor {
21 XXSharpKmyMath::Vector3 pos;
22 XXSharpKmyMath::Vector2 tc;
23 XXSharpKmyGfx::Color color;
24 };
25
26 private value struct VertexPositionNormalTextureColor {
27 XXSharpKmyMath::Vector3 pos;
28 XXSharpKmyMath::Vector2 tc;
29 XXSharpKmyGfx::Color color;
30 XXSharpKmyMath::Vector3 normal;
31 };
32
33 private value struct VertexPositionNormalMapTexture2Color {
34 XXSharpKmyMath::Vector3 pos;
35 XXSharpKmyMath::Vector2 tc, tc2;
36 XXSharpKmyGfx::Color color;
37 XXSharpKmyMath::Vector3 normal;
38 XXSharpKmyMath::Vector3 tangent;
39 bool flg;
40 };
41}