rearrange/cleanup GL texture stuff, and fill out GL cubemap texture functions (still need FBOs)

This commit is contained in:
jp9000
2013-10-05 09:25:12 -07:00
parent 5c92f22f0d
commit 3243bfbaa3
9 changed files with 322 additions and 68 deletions

View File

@@ -48,4 +48,20 @@ static inline bool gl_bind_texture(GLenum target, GLuint texture)
return gl_success("glBindTexture");
}
static inline bool gl_gen_buffers(GLsizei num_buffers, GLuint *buffers)
{
glGenBuffers(num_buffers, buffers);
return gl_success("glGenBuffers");
}
static inline bool gl_bind_buffer(GLenum target, GLuint buffer)
{
glBindBuffer(target, buffer);
return gl_success("glBindBuffer");
}
extern bool upload_face(GLenum type, uint32_t num_levels,
GLenum format, GLint internal_format, bool compressed,
uint32_t width, uint32_t height, uint32_t size, void ***p_data);
#endif