put tinygl internals into namespace, left only api

This commit is contained in:
Pawel Kolodziejski 2009-05-25 13:19:29 +00:00
parent 7ad12a0856
commit 49b578ec6a
28 changed files with 367 additions and 285 deletions

View file

@ -1,6 +1,8 @@
#include "graphics/tinygl/zgl.h"
namespace TinyGL {
GLContext *gl_ctx;
void initSharedState(GLContext *c) {
@ -23,7 +25,7 @@ void endSharedState(GLContext *c) {
gl_free(s->texture_hash_table);
}
void tglInit(void *zbuffer1) {
void glInit(void *zbuffer1) {
ZBuffer *zbuffer = (ZBuffer *)zbuffer1;
GLContext *c;
GLViewport *v;
@ -179,8 +181,10 @@ void tglInit(void *zbuffer1) {
c->depth_test = 0;
}
void tglClose() {
void glClose() {
GLContext *c = gl_get_context();
endSharedState(c);
gl_free(c);
}
} // end of namespace TinyGL