1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-03-14 16:19:41 +01:00
Dmitri Shuralyov 5603cf2b0c
fix build, simplify imports on macOS 11 and 10.15 (#355)
fix build on macOS 11 and 10.15, including on Apple silicon

There was a build error on macOS due to use of undeclared identifiers
glGetStringi and GL_NUM_EXTENSIONS. Those identifiers are declared in
OpenGL 3.0.

Switch from importing OpenGL/{gl.h,glext.h} to OpenGL/{gl3.h,gl3ext.h},
which fixes the problem. It also allows removing many OpenGL 3+ #defines,
though we do need to #define GL_LUMINANCE as was done in OpenGL/gl.h.
(It's also possible to keep the OpenGL/gl.h import, but it seems worse
to be importing both.)

Also remove #includes of Carbon/Carbon.h, OpenGL/OpenGL.h, AGL/agl.h,
since they don't seem to be needed.

Tested on macOS 11.4 (Big Sur) with Xcode 12.5.1 on Apple silicon,
and on macOS 10.15.7 (Catalina) with Xcode 12.4 on an Intel-based Mac.
(Hopefully this doesn't break older macOS platforms,
but unfortunately I can't test that easily.)

Fixes #354.
2021-06-27 07:35:59 +03:00
2019-07-25 04:28:54 +03:00
2018-02-20 05:44:32 +03:00
2020-07-26 13:35:36 +03:00

OpenLara

Classic Tomb Raider open-source engine

WebGL build with demo level

Standalone version

inspired by OpenTomb project http://opentomb.github.io/

License

Screenshots

Waterfall Double-aim Caustics Cutscene Cistern Opera Unwater Temple

Description
No description provided
Readme BSD-2-Clause 100 MiB
Languages
C 64.6%
C++ 26.9%
Assembly 5.5%
HLSL 0.6%
Makefile 0.6%
Other 1.7%