fixed new font rendering on Linux and removed glew dependency

This commit is contained in:
Mark Vejvoda
2011-11-18 00:28:45 +00:00
parent ab9243ea38
commit 0e9b4851fd
9 changed files with 167 additions and 84 deletions

View File

@@ -33,21 +33,23 @@
#ifndef __VERTEX_BUFFER_H__
#define __VERTEX_BUFFER_H__
#if defined(__APPLE__)
//#include <Glut/glut.h>
#elif defined(_WIN32)
#if defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <GL/glew.h>
#else
//#include <GL/glut.h>
#include <GL/glu.h>
#endif
#include "vector.h"
#define MAX_VERTEX_ATTRIBUTE 64
#ifdef __cplusplus
extern "C" {
#endif
/**
* Generic vertex attribute.
*/
@@ -471,4 +473,9 @@ vertex_attribute_new( GLenum target,
GL_TYPE_STRING( GLenum gtype );
#ifdef __cplusplus
}
#endif
#endif /* __VERTEX_BUFFER_H__ */