code integration
This commit is contained in:
32
quokka_gfx/utils/Coords.h
Normal file
32
quokka_gfx/utils/Coords.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
namespace quokka_gfx
|
||||
{
|
||||
//--------------------------------------------------------------
|
||||
struct Size
|
||||
{
|
||||
int w = 0;
|
||||
int h = 0;
|
||||
};
|
||||
//--------------------------------------------------------------
|
||||
struct FSize
|
||||
{
|
||||
float w = 0.0f;
|
||||
float h = 0.0f;
|
||||
};
|
||||
//--------------------------------------------------------------
|
||||
struct Pos
|
||||
{
|
||||
int x = 0;
|
||||
int y = 0;
|
||||
};
|
||||
//--------------------------------------------------------------
|
||||
struct FPos
|
||||
{
|
||||
float x = 0.0f;
|
||||
float y = 0.0f;
|
||||
};
|
||||
//--------------------------------------------------------------
|
||||
} // namespace quokka_gfx
|
||||
Reference in New Issue
Block a user