goat3d

changeset 81:7458b8568463

forgot to add opengl.h/c
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 08 May 2014 23:05:29 +0300
parents c5e997e8fd62
children 70b7c41a4f17
files goatview/src/opengl.c goatview/src/opengl.h
diffstat 2 files changed, 36 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/goatview/src/opengl.c	Thu May 08 23:05:29 2014 +0300
     1.3 @@ -0,0 +1,8 @@
     1.4 +#include <string.h>
     1.5 +#include "opengl.h"
     1.6 +
     1.7 +int init_opengl(void)
     1.8 +{
     1.9 +	glewInit();
    1.10 +	return 0;
    1.11 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/goatview/src/opengl.h	Thu May 08 23:05:29 2014 +0300
     2.3 @@ -0,0 +1,28 @@
     2.4 +#ifndef OPENGL_H_
     2.5 +#define OPENGL_H_
     2.6 +
     2.7 +#include <GL/glew.h>
     2.8 +
     2.9 +#ifdef WIN32
    2.10 +#include <windows.h>
    2.11 +#endif
    2.12 +
    2.13 +#ifdef __APPLE__
    2.14 +#include <OpenGL/gl.h>
    2.15 +#include <OpenGL/glu.h>
    2.16 +#else
    2.17 +#include <GL/gl.h>
    2.18 +#include <GL/glu.h>
    2.19 +#endif
    2.20 +
    2.21 +#ifdef __cplusplus
    2.22 +extern "C" {
    2.23 +#endif
    2.24 +
    2.25 +int init_opengl(void);
    2.26 +
    2.27 +#ifdef __cplusplus
    2.28 +}
    2.29 +#endif
    2.30 +
    2.31 +#endif	/* OPENGL_G_ */