initial commit
This commit is contained in:
commit
41b72e6fdf
46 changed files with 9134 additions and 0 deletions
25
Crafter.Graphics-Types.cppm
Normal file
25
Crafter.Graphics-Types.cppm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
module;
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
export module Crafter.Graphics:Types;
|
||||
|
||||
namespace Crafter {
|
||||
export struct MousePoint {
|
||||
double x;
|
||||
double y;
|
||||
};
|
||||
|
||||
export struct MouseMoveEvent {
|
||||
MousePoint lastMousePos;
|
||||
MousePoint currentMousePos;
|
||||
MousePoint mouseDelta;
|
||||
};
|
||||
|
||||
export struct Pixel {
|
||||
std::uint8_t r;
|
||||
std::uint8_t g;
|
||||
std::uint8_t b;
|
||||
std::uint8_t a;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue