Fix coord types
This commit is contained in:
parent
8286d50145
commit
aad31b2951
2
main.c
2
main.c
@ -40,7 +40,7 @@ void unigi_ext_texture_draw(unigi_ext_type_texture *sprite, unigi_ext_type_textu
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unigi_ext_type_texture * unigi_ext_texture_create(unigi_ext_type_2d_coord width, unigi_ext_type_2d_coord height) {
|
unigi_ext_type_texture * unigi_ext_texture_create(unigi_type_resolution_2d_coord width, unigi_type_resolution_2d_coord height) {
|
||||||
unigi_ext_type_texture * texture = malloc(sizeof(unigi_ext_type_texture));
|
unigi_ext_type_texture * texture = malloc(sizeof(unigi_ext_type_texture));
|
||||||
if (texture == NULL) { return NULL; }
|
if (texture == NULL) { return NULL; }
|
||||||
texture->width = width;
|
texture->width = width;
|
||||||
|
2
main.h
2
main.h
@ -11,7 +11,7 @@ void unigi_ext_texture_draw(
|
|||||||
unigi_ext_type_rect bufbounds
|
unigi_ext_type_rect bufbounds
|
||||||
);
|
);
|
||||||
void unigi_ext_rect_dimensions(unigi_ext_type_rect bounds, unigi_ext_type_2d_coord * width, unigi_ext_type_2d_coord * height);
|
void unigi_ext_rect_dimensions(unigi_ext_type_rect bounds, unigi_ext_type_2d_coord * width, unigi_ext_type_2d_coord * height);
|
||||||
unigi_ext_type_texture * unigi_ext_texture_create(unigi_ext_type_2d_coord width, unigi_ext_type_2d_coord height);
|
unigi_ext_type_texture * unigi_ext_texture_create(unigi_type_resolution_2d_coord width, unigi_type_resolution_2d_coord height);
|
||||||
void unigi_ext_texture_destroy(unigi_ext_type_texture * texture);
|
void unigi_ext_texture_destroy(unigi_ext_type_texture * texture);
|
||||||
unigi_ext_type_texture * unigi_ext_texture_open(char * path);
|
unigi_ext_type_texture * unigi_ext_texture_open(char * path);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user