- got freetype-gl working under windows

This commit is contained in:
Mark Vejvoda
2011-11-17 23:21:08 +00:00
parent ca40f8d0ab
commit ab9243ea38
10 changed files with 171 additions and 51 deletions

View File

@@ -32,20 +32,22 @@
* ========================================================================= */
#ifndef __VERTEX_BUFFER_H__
#define __VERTEX_BUFFER_H__
#if defined(__APPLE__)
#include <Glut/glut.h>
//#include <Glut/glut.h>
#elif defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <GL/glew.h>
#else
#include <GL/glut.h>
//#include <GL/glut.h>
#endif
#include "vector.h"
#define MAX_VERTEX_ATTRIBUTE 64
#ifdef __cplusplus
extern "C" {
#endif
/**
* Generic vertex attribute.
*/
@@ -133,8 +135,6 @@ typedef struct
VertexAttribute *attributes[MAX_VERTEX_ATTRIBUTE];
} VertexBuffer;
/**
* Creates an empty vertex buffer.
*
@@ -470,8 +470,5 @@ vertex_attribute_new( GLenum target,
char *
GL_TYPE_STRING( GLenum gtype );
#ifdef __cplusplus
}
#endif
#endif /* __VERTEX_BUFFER_H__ */