mirror of
https://github.com/edubart/otclient.git
synced 2025-10-21 06:53:27 +02:00
continue implementing new graphics engine
* implement OpenGL ES 1.1 and OpenGL ES 2.0 support * new framebuffer that can run on any opengl implementation * fixes in outfit size rendering
This commit is contained in:
10
src/framework/cmake/FindOpenGLES1.cmake
Normal file
10
src/framework/cmake/FindOpenGLES1.cmake
Normal file
@@ -0,0 +1,10 @@
|
||||
# Try to find the OpenGLES2 librairy
|
||||
# OPENGLES1_FOUND - system has OpenGL ES 1.0
|
||||
# OPENGLES1_INCLUDE_DIR - the OpenGL ES 1.0 include directory
|
||||
# OPENGLES1_LIBRARY - the OpenGL ES 1.0 library
|
||||
|
||||
FIND_PATH(OPENGLES1_INCLUDE_DIR NAMES GLES/gl.h)
|
||||
FIND_LIBRARY(OPENGLES1_LIBRARY NAMES GLESv1_CM)
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenGLES2 DEFAULT_MSG OPENGLES1_LIBRARY OPENGLES1_INCLUDE_DIR)
|
||||
MARK_AS_ADVANCED(OPENGLES1_LIBRARY OPENGLES1_INCLUDE_DIR)
|
@@ -1,10 +1,10 @@
|
||||
# Try to find the OpenGLES librairy
|
||||
# OPENGLES_FOUND - system has OpenGLES
|
||||
# OPENGLES_INCLUDE_DIR - the OpenGLES include directory
|
||||
# OPENGLES_LIBRARY - the OpenGLES library
|
||||
# Try to find the OpenGLES2 librairy
|
||||
# OPENGLES2_FOUND - system has OpenGL ES 2.0
|
||||
# OPENGLES2_INCLUDE_DIR - the OpenGL ES 2.0 include directory
|
||||
# OPENGLES2_LIBRARY - the OpenGL ES 2.0 library
|
||||
|
||||
FIND_PATH(OPENGLES_INCLUDE_DIR NAMES GLES2/gl2.h)
|
||||
FIND_LIBRARY(OPENGLES_LIBRARY NAMES GLESv2)
|
||||
FIND_PATH(OPENGLES2_INCLUDE_DIR NAMES GLES2/gl2.h)
|
||||
FIND_LIBRARY(OPENGLES2_LIBRARY NAMES GLESv2)
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenGLES DEFAULT_MSG OPENGLES_LIBRARY OPENGLES_INCLUDE_DIR)
|
||||
MARK_AS_ADVANCED(OPENGLES_LIBRARY OPENGLES_INCLUDE_DIR)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(OpenGLES2 DEFAULT_MSG OPENGLES2_LIBRARY OPENGLES2_INCLUDE_DIR)
|
||||
MARK_AS_ADVANCED(OPENGLES2_LIBRARY OPENGLES2_INCLUDE_DIR)
|
Reference in New Issue
Block a user