Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Experimento con emscripten y SDL

1178 views
1
#ifndef DECAL_H
2
#define DECAL_H
3
4
typedef struct decal decal;
5
6
struct decal
7
{
8
SDL_Texture *texture;
9
SDL_Rect rect;
10
};
11
12
decal *decal_init(
13
decal *d,
14
SDL_Texture *texture,
15
double x,
16
double y,
17
double w,
18
double h);
19
20
void decal_set_xywh(
21
decal *d,
22
double x,
23
double y,
24
double w,
25
double h);
26
27
#endif
28
29