sosc_test/src/okuu/mesh.h

30 lines
445 B
C
Raw Normal View History

2020-12-10 14:42:39 -06:00
#ifndef OKUU_MESH_H
#define OKUU_MESH_H
#include <SDL.h>
#include <GL/glew.h>
#include <SDL_opengl.h>
#include <GL/glu.h>
2020-12-10 14:42:39 -06:00
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
2020-12-10 14:42:39 -06:00
#include "koa/etc.h"
2020-12-10 14:42:39 -06:00
typedef struct {
GLuint buffers[3], vao;
uint32_t tri_cnt;
2020-12-10 14:42:39 -06:00
} mesh_t;
mesh_t* mesh_load(const char*);
void mesh_bind(mesh_t*);
void mesh_render(mesh_t*);
void mesh_unbind();
2020-12-10 14:42:39 -06:00
void mesh_unload(mesh_t*);
#endif