VUI/Source/Types/Geometry.cppm
2025-05-29 13:21:19 +02:00

45 lines
No EOL
567 B
C++

module;
#include <cstdint>
export module VUI:Geometry;
namespace VUI {
export struct Point {
float x{0};
float y{0};
};
export struct UPoint {
uint32_t x{0};
uint32_t y{0};
};
export struct URect {
uint32_t x{0};
uint32_t y{0};
uint32_t width{0};
uint32_t height{0};
};
export struct Rect {
float x{0};
float y{0};
float width{0};
float height{0};
};
// replace with glm
export struct Vec3 {
float x{0};
float y{0};
float z{0};
};
export struct Vec4 {
float x{0};
float y{0};
float z{0};
float w{0};
};
} // namespace VUI