summaryrefslogtreecommitdiffhomepage
path: root/src/sprite.h
blob: c6656e690d6077f498b7952060d1e797b9f6add2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "rodeo.h"

typedef
struct
{
	uint32_t iter;
	struct config
	{
		uint32_t width;
		uint32_t height;
		uint32_t count;
		rodeo_texture_2d_t *texture;
	} config;
}
sprite_t;

void
draw_sprite(sprite_t *sprite, float x, float y, float scale, rodeo_color_RGBAFloat_t color);