Commit graph

101 commits

Author SHA1 Message Date
UnknownShadow200
637a56e90e Direct3D11: Fix fog with assistance from RenderDoc graphics debugger
The Direct3D11 hlsl pixel shaders were ported from the OpenGL2 glsl fragment shaders.
In the documentation for OpenGL glsl, the W component of gl_FragCoord is specified as being 1/w. However in Direct3D11 hlsl, the W component of SV_POSITION is just w - hence why fog appeared to not work.
The solution to this is simple - when calculating depth, multiply by w instead of dividing by w.
2021-11-02 19:33:00 +11:00
UnknownShadow200
c7a9621fd0
Improve compiling instructions 2021-10-18 21:13:17 +11:00
UnknownShadow200
6ee74cba02
Better clarify some things in readme 2021-10-14 16:08:45 +11:00
UnknownShadow200
708a4c8495 Fix iOS compile instructions 2021-09-26 23:08:04 +10:00
UnknownShadow200
f655999bb2 Fix compiling on haiku/solaris erroring due to d_type field not existing in dirent struct 2021-09-12 08:37:46 +10:00
UnknownShadow200
c59173a377 credit where credit is due 2021-08-13 22:41:19 +10:00
UnknownShadow200
907ddd90cd Tidy up readme, add TCC WIP compile instructions 2021-07-24 13:51:30 +10:00
UnknownShadow200
16ce6c7506 Audio_Close/Audio_Stop don't need to return anything 2021-07-23 11:00:27 +10:00
UnknownShadow200
cef1e5b484 Fix timing out not working properly 2021-05-23 15:38:34 +10:00
UnknownShadow200
ef62038011 Split up Platform.c into Platform_WinApi.c, Platform_Web.c, and Platform_Posix.c 2021-05-23 10:04:34 +10:00
UnknownShadow200
763a7e23eb Less compiler warnings 2021-05-19 07:27:29 +10:00
UnknownShadow200
e60e852eee Less warnings and slightly improve readme 2021-03-04 19:06:16 +11:00
UnknownShadow200
2957db19e5 Simplify dynamic symbol stuff a little bit 2021-02-25 23:06:10 +11:00
Alex McKeever
83507f8918
Update readme.md
Re added Windows Specific section and tweaked the section on OpenGL 1.1 to more directly refer to Linux and Unix based systems.
2021-02-14 15:57:48 -05:00
Alex McKeever
fdb23b0044
Update readme.md
Added extra bits to point the user to the the right instructions for compiling the game under `Stuck on OpenGL 1.1?`.
2021-02-12 10:45:54 -05:00
Alex McKeever
3c36c4a3cd
Update readme.md
Replaced Windows specific section with section detailing what to do to compile ClassiCube to work on integrated GPUs that only support OpenGL 1.1, and where specifically to place the flag in order to compile it successfully.
2021-02-11 21:39:33 -05:00
UnknownShadow200
08232da712 Merge changes 2021-02-05 07:15:14 +11:00
UnknownShadow200
33c1e4e791 Android: Use device theme for dialogs, also fixes not working on old android 2021-01-30 13:49:51 +11:00
UnknownShadow200
bec56df691 Release 1.2.4 2021-01-24 08:38:21 +11:00
UnknownShadow200
7f0a23674c Start moving objc code into actual .m file, starting with OpenGL context 2021-01-23 09:38:26 +11:00
UnknownShadow200
3fd48f49bb ios: Get it to compile even though it doesn't work at all 2021-01-10 23:38:21 +11:00
UnknownShadow200
3ad1f1f169 Mac: Implement session caching too 2021-01-10 18:52:44 +11:00
UnknownShadow200
408cb1726e Webclient: Get 'download size for texture packs' to work in firefox for some sites at least 2020-12-16 00:06:04 +11:00
UnknownShadow200
2016b4ef7f 1 less error when compiling as C++
also fix mistake in readme (thanks kylbert)
2020-08-12 21:48:19 +10:00
UnknownShadow200
6b8cff6111 Properly detect mac < 10.4 and use NS api instead. Therefore 10.3 is now minimum supported macOS version 2020-07-19 00:30:32 +10:00
UnknownShadow200
c45442554f
Add note about having to disable mouse integration for virtualbox, improve compiling section in readme
Added documentation for compiling using visual studio command line, clarified mingw/mingw-w64 steps, add larger titles separating compiling instructions by OS
2020-07-12 09:36:31 +10:00
UnknownShadow200
3ea64a61d0 Generate a 64 bit mac icon file and fixup Window.m
64 mac build doesn't show icon quite yet, still WIP
2020-06-11 23:38:33 +10:00
UnknownShadow200
bbfcfba18a Tidy up readme somewhat 2020-06-08 21:14:49 +10:00
UnknownShadow200
4a4bf57ce9 Fix links in readme linking to wrong folder 2020-06-05 17:19:57 +10:00
Benjamin Baier
4af5b3a860 Future proof libcurl and libopenal loading on OpenBSD.
ld.so does the right thing even without hardcoded versions.
Also mention curl and openal as dependencies.
2020-05-29 19:51:05 +02:00
UnknownShadow200
3ce5b1145a Split up misc folder into misc and doc folder 2020-05-29 22:43:10 +10:00
Benjamin Baier
0590488dcf Adjust compile instructions for OpenBSD to use cc with -lpthread and -lm 2020-05-28 15:57:00 +02:00
UnknownShadow200
918b86dc18 Fix OpenBSD build and update various build files to remove -lcurl 2020-05-26 22:06:03 +10:00
UnknownShadow200
5e92790a3b Just directly include the OpenAL functions used in the code instead of relying on system headers
This means you don't need toinstall openal-dev packages on unix systems anymore, and don't need to link to OpenAL framework on macOS
2020-05-21 20:07:06 +10:00
UnknownShadow200
89541ef72b Remove -lopenal from compilation flags 2020-05-19 21:01:09 +10:00
UnknownShadow200
90b94409af Add libxi-dev to readme 2020-05-07 00:35:44 +10:00
UnknownShadow200
b6b200d118 Add missing compile instructions for dragonfly bsd to main readme
Also rename macos app bundle identifier from 'com.classicube.game' to 'com.classicube.mac'
2020-05-06 16:36:55 +10:00
UnknownShadow200
b9a0729694 Init XInput2 and register for RawMotion event.
Still working on actually using the event though
2020-04-22 16:10:02 +10:00
UnknownShadow200
e4e04e75a0 Considering that the mac build expects plugins to have .dylib extension, it is probably a good idea to make the plugin buildbot do that 2020-03-11 21:38:18 +11:00
UnknownShadow200
d87378a36c Add -Qn flag to buildbot so 'GCC version' isn't included in output executable.
Because of the ancient mingw version the buildbot uses, string constant merging doesn't work. As such for the windows executable, this string appeared 81 times and added 1-2 kb to executable.
2020-03-10 21:00:30 +11:00
UnknownShadow200
8e57167ba3 Fix makefile for haiku OS and add direct compile instructions for haiku OS into readme 2020-02-17 15:40:37 +11:00
UnknownShadow200
b923754c86 Add simpler CC_BUILD_RPI define, add compiled icon obj file for arm architecture 2020-01-22 22:24:37 +11:00
UnknownShadow200
cb3344c629 Fix linux/EGL build 2019-12-15 07:10:19 +11:00
UnknownShadow200
bf9d540082 Make it possible for the linux build to compile with EGL/OpenGL ES instead.
This is only really intended for the raspberry pi
2019-12-14 16:13:37 +11:00
UnknownShadow200
492d4843eb Update download links in readme to working pages 2019-12-12 20:03:10 +11:00
UnknownShadow200
b164d3c8d6 Move compiling instructions higher up in the readme 2019-12-05 07:39:35 +11:00
UnknownShadow200
07c4a4795c Add documentation for building 64 bit cocoa backend
Also show 'alpha' instead of 'beta' for coca backend in titlebar
2019-09-29 17:51:27 +10:00
UnknownShadow200
96b57b80d0 Add a mac version of classicube icon 2019-09-07 09:40:10 +10:00
UnknownShadow200
8b48a3381c Fix linux build 2019-08-25 19:51:21 +10:00
UnknownShadow200
824e43a1ea
default compiler should be clang not gcc for FreeBSD in readme 2019-07-28 07:48:32 +10:00