tinyswords/lib.h

45 lines
772 B
C

#pragma once
#include <stdint.h>
#include <stddef.h>
#include "include/raylib.h"
typedef uint8_t u8;
// typedef char16_t c16;
typedef uint16_t u16;
typedef int16_t i16;
typedef int32_t b32;
typedef int32_t i32;
typedef uint32_t u32;
typedef uint64_t u64;
typedef float f32;
typedef double f64;
typedef uintptr_t uptr;
typedef char byte;
typedef ptrdiff_t size;
typedef size_t usize;
typedef Vector2 Point;
typedef struct Size {
float width;
float height;
} Size;
typedef struct Rect {
Point position;
Size size;
} Rect;
typedef union {
Rect components;
Rectangle rect;
} RectU;
typedef struct PointOrNone {
enum {NONE, POINT} type;
union {
byte none;
Point point;
} value;
} PointOrNone;