2023-10-11 08:10:06 +00:00
|
|
|
|
2023-10-13 06:00:53 +00:00
|
|
|
#ifndef TC_UTILITY_H
|
2023-10-11 08:10:06 +00:00
|
|
|
#define TC_UTILITY_H
|
|
|
|
|
2023-10-13 06:00:53 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
2023-10-11 08:10:06 +00:00
|
|
|
typedef struct tc_vec3
|
|
|
|
{
|
|
|
|
float x;
|
|
|
|
float y;
|
|
|
|
float z;
|
|
|
|
|
|
|
|
} tc_vec3_s;
|
|
|
|
|
2023-10-13 06:00:53 +00:00
|
|
|
typedef struct tc_vec3i
|
|
|
|
{
|
|
|
|
int32_t x;
|
|
|
|
int32_t y;
|
|
|
|
int32_t z;
|
|
|
|
|
|
|
|
} tc_vec3i_s;
|
|
|
|
|
|
|
|
bool tc_vec3i_equ(tc_vec3i_s first, tc_vec3i_s second);
|
|
|
|
|
2023-10-11 08:10:06 +00:00
|
|
|
typedef struct tc_object
|
|
|
|
{
|
|
|
|
uint32_t vbo;
|
|
|
|
uint32_t vao;
|
|
|
|
tc_vec3_s position;
|
|
|
|
tc_vec3_s rotation;
|
|
|
|
|
|
|
|
} tc_object_s;
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|