🎉 begin project
This commit is contained in:
commit
8da6ddc689
29 changed files with 1261 additions and 0 deletions
45
Source/Types/Geometry.cppm
Normal file
45
Source/Types/Geometry.cppm
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue