forked from OpenMW/openmw
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openmw building on Android with Opengl es
- Loading branch information
1 parent
3fe38e3
commit 69acace
Showing
14 changed files
with
656 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#include "../../SDL_internal.h" | ||
|
||
#ifdef __ANDROID__ | ||
#include "SDL_main.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,11 @@ | |
|
||
#include "vismask.hpp" | ||
|
||
#ifdef OPENGLES | ||
#include <GLES/gl.h> | ||
#endif | ||
|
||
|
||
namespace | ||
{ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
#------------------------------------------------------------------- | ||
# This file is part of the CMake build system for OGRE | ||
# (Object-oriented Graphics Rendering Engine) | ||
# For the latest info, see http://www.ogre3d.org/ | ||
# | ||
# The contents of this file are placed in the public domain. Feel | ||
# free to make use of it in any way you like. | ||
#------------------------------------------------------------------- | ||
|
||
# - Try to find OpenGLES | ||
# Once done this will define | ||
# | ||
# OPENGLES_FOUND - system has OpenGLES | ||
# OPENGLES_INCLUDE_DIR - the GL include directory | ||
# OPENGLES_LIBRARIES - Link these to use OpenGLES | ||
|
||
IF (WIN32) | ||
IF (CYGWIN) | ||
|
||
FIND_PATH(OPENGLES_INCLUDE_DIR GLES/gl.h ) | ||
|
||
FIND_LIBRARY(OPENGLES_gl_LIBRARY libgles_cm ) | ||
|
||
ELSE (CYGWIN) | ||
|
||
IF(BORLAND) | ||
SET (OPENGLES_gl_LIBRARY import32 CACHE STRING "OpenGL ES 1.x library for win32") | ||
ELSE(BORLAND) | ||
#MS compiler - todo - fix the following line: | ||
SET (OPENGLES_gl_LIBRARY ${OGRE_SOURCE_DIR}/Dependencies/lib/release/libgles_cm.lib CACHE STRING "OpenGL ES 1.x library for win32") | ||
ENDIF(BORLAND) | ||
|
||
ENDIF (CYGWIN) | ||
|
||
ELSE (WIN32) | ||
|
||
IF (APPLE) | ||
|
||
#create_search_paths(/Developer/Platforms) | ||
#findpkg_framework(OpenGLES) | ||
#set(OPENGLES_gl_LIBRARY "-framework OpenGLES") | ||
|
||
ELSE(APPLE) | ||
|
||
FIND_PATH(OPENGLES_INCLUDE_DIR GLES/gl.h | ||
/opt/vc/include | ||
/opt/graphics/OpenGL/include | ||
/usr/openwin/share/include | ||
/usr/X11R6/include | ||
/usr/include | ||
) | ||
|
||
FIND_LIBRARY(OPENGLES_gl_LIBRARY | ||
NAMES GLES_CM GLESv1_CM | ||
PATHS /opt/vc/lib | ||
/opt/graphics/OpenGL/lib | ||
/usr/openwin/lib | ||
/usr/shlib /usr/X11R6/lib | ||
/usr/lib | ||
) | ||
|
||
# On Unix OpenGL most certainly always requires X11. | ||
# Feel free to tighten up these conditions if you don't | ||
# think this is always true. | ||
|
||
#IF (OPENGLES_gl_LIBRARY) | ||
# IF(NOT X11_FOUND) | ||
# INCLUDE(FindX11) | ||
# ENDIF(NOT X11_FOUND) | ||
# IF (X11_FOUND) | ||
# SET (OPENGLES_LIBRARIES ${X11_LIBRARIES}) | ||
# ENDIF (X11_FOUND) | ||
#ENDIF (OPENGLES_gl_LIBRARY) | ||
|
||
ENDIF(APPLE) | ||
ENDIF (WIN32) | ||
|
||
SET( OPENGLES_FOUND "NO" ) | ||
IF(OPENGLES_gl_LIBRARY) | ||
|
||
SET( OPENGLES_LIBRARIES ${OPENGLES_gl_LIBRARY} ${OPENGLES_LIBRARIES}) | ||
|
||
SET( OPENGLES_FOUND "YES" ) | ||
|
||
ENDIF(OPENGLES_gl_LIBRARY) | ||
|
||
MARK_AS_ADVANCED( | ||
OPENGLES_INCLUDE_DIR | ||
OPENGLES_gl_LIBRARY | ||
) | ||
|
||
INCLUDE(FindPackageHandleStandardArgs) | ||
|
||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OPENGLES REQUIRED_VARS OPENGLES_LIBRARIES OPENGLES_INCLUDE_DIR) |
Oops, something went wrong.