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.
27 lines
438 B
27 lines
438 B
|
|
#pragma once |
|
|
|
#include <GL/glew.h> |
|
#include <glm/glm.hpp> |
|
|
|
#include "mesh.h" |
|
|
|
|
|
struct render_object |
|
{ |
|
glm::mat4 node_xform; |
|
|
|
GLuint tex_id; |
|
GLuint vertex_buffer_id; |
|
GLuint normal_buffer_id; |
|
GLuint uv_buffer_id; |
|
GLuint index_buffer_id; |
|
}; |
|
|
|
bool roInit(meMeshInfo* mi_in, render_object& ro_out); |
|
|
|
// TODO: make use of glIsBuffer/glDeleteBuffers |
|
void roFree(render_object& ro); |
|
|
|
// TODO: implement me! |
|
void roDraw(render_object& ro);
|
|
|