Merge pull request #13 from yglukhov/patch-2
Enable iOS and Android targets.
This commit is contained in:
commit
da20e4b4fd
1 changed files with 8 additions and 1 deletions
|
|
@ -20,7 +20,7 @@
|
|||
|
||||
import macros, sequtils
|
||||
|
||||
when defined(linux):
|
||||
when defined(linux) and not defined(android):
|
||||
import X, XLib, XUtil
|
||||
elif defined(windows):
|
||||
import winlean, os
|
||||
|
|
@ -45,6 +45,13 @@ when defined(useGlew):
|
|||
{.pragma: oglx, header: "<GL/glxew.h>".}
|
||||
{.pragma: wgl, header: "<GL/wglew.h>".}
|
||||
{.pragma: glu, dynlib: gludll.}
|
||||
elif defined(ios):
|
||||
{.pragma: ogl.}
|
||||
{.pragma: oglx.}
|
||||
{.passC: "-framework OpenGLES", passL: "-framework OpenGLES".}
|
||||
elif defined(android):
|
||||
{.pragma: ogl.}
|
||||
{.pragma: oglx.}
|
||||
else:
|
||||
# quite complex ... thanks to extension support for various platforms:
|
||||
import dynlib
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue