Files
palladium/include/pd/lithium/vertex.hpp
T

25 lines
427 B
C++
Raw Normal View History

2025-04-24 16:39:24 +02:00
#pragma once
2026-03-16 06:37:51 +01:00
#include <pd/core/vec.hpp>
2025-04-24 16:39:24 +02:00
namespace PD {
2025-06-22 21:05:09 +02:00
namespace Li {
2025-04-24 16:39:24 +02:00
class Vertex {
public:
Vertex() {}
2026-03-16 06:37:51 +01:00
Vertex(const fvec2& pos, const fvec2& uv, u32 color)
: pos(pos), uv(uv), color(color) {}
2025-04-24 16:39:24 +02:00
~Vertex() {}
void Reset() {
pos = fvec2(0.f);
uv = fvec2(0.f);
color = 0x00000000;
}
2026-03-16 06:37:51 +01:00
fvec2 pos;
fvec2 uv;
u32 color = 0x00000000;
2025-04-24 16:39:24 +02:00
};
2025-06-22 21:05:09 +02:00
} // namespace Li
2025-01-09 20:22:49 +01:00
} // namespace PD