You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
742 B
34 lines
742 B
#ifndef geometry_H
|
|
#define geometry_H
|
|
|
|
#include "num_types.h"
|
|
#include "linmath.h"
|
|
|
|
struct Transform;
|
|
|
|
enum Geometry_Draw_Mode
|
|
{
|
|
GDM_TRIANGLES = 0,
|
|
GDM_LINES,
|
|
GDM_POINTS,
|
|
GDM_NUM_DRAWMODES
|
|
};
|
|
|
|
void geom_init(void);
|
|
int geom_create_from_file(const char* name);
|
|
int geom_find(const char* filename);
|
|
void geom_remove(int index);
|
|
void geom_cleanup(void);
|
|
void geom_render(int index, enum Geometry_Draw_Mode);
|
|
void geom_render_in_frustum(int index,
|
|
vec4* frustum,
|
|
struct Transform* transform,
|
|
enum Geometry_Draw_Mode draw_mode);
|
|
int geom_create(const char* name,
|
|
vec3* vertices,
|
|
vec2* uvs,
|
|
vec3* normals,
|
|
uint* indices,
|
|
vec3* vertex_colors);
|
|
|
|
#endif
|
|
|