project for a (works on my devices) demo
This commit is contained in:
36
SOURCES/graphics/2d_structs.h
Normal file
36
SOURCES/graphics/2d_structs.h
Normal file
@@ -0,0 +1,36 @@
|
||||
#pragma once
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
uint16_t w;
|
||||
uint16_t h;
|
||||
} ui_dimensions;
|
||||
|
||||
typedef struct {
|
||||
uint16_t x;
|
||||
uint16_t y;
|
||||
} ui_position;
|
||||
|
||||
|
||||
ui_dimensions* ui_dimensions_malloc();
|
||||
ui_dimensions* ui_dimensions_new( uint16_t w, uint16_t h);
|
||||
|
||||
ui_position* ui_position_malloc();
|
||||
ui_position* ui_position_new( uint16_t x, uint16_t y);
|
||||
|
||||
typedef struct {
|
||||
float w;
|
||||
float h;
|
||||
} f_dimensions;
|
||||
|
||||
typedef struct {
|
||||
float x;
|
||||
float y;
|
||||
} f_position;
|
||||
|
||||
|
||||
f_dimensions* f_dimensions_malloc();
|
||||
f_dimensions*f_dimensions_new( float w, float h);
|
||||
|
||||
f_position* f_position_malloc();
|
||||
f_position* f_position_new( float x, float y);
|
||||
Reference in New Issue
Block a user