mirror of
https://github.com/quantum5/punyverse.git
synced 2025-04-24 05:01:57 -04:00
Release punyverse 1.2 with better cross platform support
This commit is contained in:
parent
e72a3bc623
commit
7cb34c9142
|
@ -5,4 +5,5 @@ include punyverse/world.json
|
||||||
graft punyverse/assets
|
graft punyverse/assets
|
||||||
include punyverse/shaders/*.glsl
|
include punyverse/shaders/*.glsl
|
||||||
include punyverse/*.c
|
include punyverse/*.c
|
||||||
|
include punyverse/*.h
|
||||||
exclude punyverse/*.pyx
|
exclude punyverse/*.pyx
|
||||||
|
|
|
@ -1,15 +1,4 @@
|
||||||
IF UNAME_SYSNAME == "Windows":
|
cdef extern from "glwrapper.h":
|
||||||
cdef extern from "windows.h":
|
|
||||||
pass
|
|
||||||
|
|
||||||
IF UNAME_SYSNAME == "Darwin":
|
|
||||||
cdef extern from "OpenGL/gl.h":
|
|
||||||
pass
|
|
||||||
ELSE:
|
|
||||||
cdef extern from "GL/gl.h":
|
|
||||||
pass
|
|
||||||
|
|
||||||
cdef extern from *:
|
|
||||||
ctypedef unsigned int GLenum
|
ctypedef unsigned int GLenum
|
||||||
ctypedef unsigned char GLboolean
|
ctypedef unsigned char GLboolean
|
||||||
ctypedef unsigned int GLbitfield
|
ctypedef unsigned int GLbitfield
|
||||||
|
|
9
punyverse/glwrapper.h
Normal file
9
punyverse/glwrapper.h
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
# include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
# include <OpenGL/gl.h>
|
||||||
|
#else
|
||||||
|
# include <GL/gl.h>
|
||||||
|
#endif
|
Loading…
Reference in a new issue