summaryrefslogtreecommitdiff
path: root/sdl2/rect.ha
blob: 012088eb8a75f83066177594abb45844da2a26c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// TODO: Flesh me out

// The structure that defines a point (integer)
export type SDL_Point = struct {
	x: int,
	y: int,
};

// The structure that defines a point (floating point)
export type SDL_FPoint = struct {
	x: f32,
	y: f32,
};

// A rectangle, with the origin at the upper left (integer).
export type SDL_Rect = struct {
	x: int,
	y: int,
	w: int,
	h: int,
};

// A rectangle, with the origin at the upper left (floating point).
export type SDL_FRect = struct {
	x: f32,
	y: f32,
	w: f32,
	h: f32,
};