Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

Experimento con emscripten y SDL

1178 views
1
#include "engine.h"
2
#include "decal.h"
3
4
decal *decal_init(
5
decal *d,
6
SDL_Texture *texture,
7
double x,
8
double y,
9
double w,
10
double h
11
)
12
{
13
d->texture = texture;
14
decal_set_xywh(d, x, y, w, h);
15
return d;
16
}
17
18
void decal_set_xywh(
19
decal *d,
20
double x,
21
double y,
22
double w,
23
double h
24
)
25
{
26
d->rect.x = x;
27
d->rect.y = y;
28
d->rect.w = w;
29
d->rect.h = h;
30
}
31
32