dhewg
5f8712902c
Return at least 64MB VRAM in case the detection fails
2012-01-08 12:24:57 +01:00
dhewg
a35d8c08b6
Fix usage of wrong define in sys/cpu.cpp
2012-01-08 12:24:57 +01:00
spiral
468b266860
Remove hard-wired -framework OpenAL
...
We already link to OPENAL_LIBRARY further down.
Log some debug OpenAL info, mainly so OSX users can check they are not
using Apple's OpenAL. OpenAL Soft is recommended as it fixes many
issues.
I specify it as follows:
cmake -DOPENAL_LIBRARY=/usr/local/lib/libopenal.dylib -DOPENAL_INCLUDE_DIR=/usr/local/include -GXcode ../neo/
(because FindOpenAL.cmake prefers the /System frameworks)
2012-01-08 12:24:45 +01:00
dhewg
035dcbcd46
Move jpeg_memory_src()
...
Found another copy in renderer/Cinematic.cpp. Move the
newer implementation from renderer/Image_files.cpp in its
own file and use the libjpeg v8c license blob (which is where
this code comes from).
Adapt README too with the v8c license.
2012-01-07 20:57:07 +01:00
dhewg
fcc947433b
Disable a few MSVC warnings
...
These just spam the console. Some are useless, some need to be
looked at at some point.
2012-01-07 19:01:54 +01:00
dhewg
47e486b62a
Add SDL_win32_main.c
...
Don't link against SDLmain.[a|lib], always compile it.
We can use pure C MinGW cross compiled libraries with MSVC, and
this is the only static library used.
2012-01-07 19:01:53 +01:00
dhewg
eb2ecfa22a
Add support for the doom3-libs repo
...
Single CMake variable "DOOM3LIBS" to point to the repo of
binaries to make CMake find libraries from there.
2012-01-07 19:00:44 +01:00
dhewg
b3085e03b4
Fix sys/win32/* for x86_64
2012-01-07 19:00:43 +01:00
dhewg
4927299cb9
Include malloc.h for alloca for MinGW
...
Newer versions of MinGW do not seem to require this, but older
ones do.
2012-01-07 15:40:22 +01:00
dhewg
82a87863ff
Rename FILE_[EXEC|OPEN] due to conflict
...
Some MinGW versions already define it.
2012-01-07 15:40:18 +01:00
dhewg
989b812a6e
Cleanup DOOMController.mm
...
Cleanup headers and use MAXPATHLEN.
2012-01-05 00:24:16 +01:00
dhewg
6fa12c3a44
Get rid of the NSObject in DOOMController.mm
...
SDLmain.m does the bulk of the work for us, so get rid of
the DOOMController NSObject, move the quakeMain() contents to
main() and let SDL do its thing.
2012-01-05 00:24:16 +01:00
dhewg
532b642222
Get rid of checkOS() and checkDVD()
...
Former is already handled by cmake via -mmacosx-version-min=
and the latter is just a stub.
2012-01-05 00:24:15 +01:00
dhewg
8e5702ef36
Get rid of applicationShouldTerminate()
...
Redundant, already handled by SDL_QUIT event.
2012-01-05 00:24:15 +01:00
dhewg
23752a2cd2
Get rid of applicationDidFinishLaunching()
...
SDL already implements this for us and the assert()s are
already part of idlib.
2012-01-05 00:24:15 +01:00
spiral
ec0f836f41
Generate an .app bundle for OSX
...
Add missing SDLMain and icon/resource files to generated .xcodeproj
Now builds on Lion in XCode4 with the 10.6 SDK using LLVM-GCC4.2.
Also tested on WinXP in VS 9 2008 Professional, I don't appear to have
broken anything there, stuff like MACOSX_BUNDLE_INFO_PLIST is
effectively ignored.
2012-01-05 00:24:15 +01:00
spiral
6453bce10c
We don't need XOPEN_SOURCE deprecated content
...
Just what's in sys/ucontext.h specifically.
2012-01-05 00:24:15 +01:00
scottWakeling
c08249b9db
Fix semi-colons being inserted into ldflags
...
It is causing clang++ to error when linking game{cpu}.dylib
2012-01-05 00:24:14 +01:00
dhewg
d4ec9cc87f
OSX .dylib's do not get a CPU suffix
2012-01-05 00:24:14 +01:00
dhewg
bf1f05bd87
Rename game${cpu}-d3xp to d3xp${cpu}
2012-01-05 00:24:14 +01:00
dhewg
7f0b7b54ec
Drop the cpu suffix on binaries
2012-01-05 00:24:14 +01:00
dhewg
522c5bbccf
R_GetModeInfo() doesn't need to be public on OSX
...
Remove redundant special case.
2012-01-05 00:24:14 +01:00
dhewg
1fed72fbb4
Get rid of Sys_DoPreferences()
...
The OSX backend was the only one utilizing this to set CVars
for the video mode.
Not required anymore since its now based on SDL.
2012-01-05 00:24:13 +01:00
dhewg
3c90c12605
Don't link against X11 libraries
...
Not required anymore. All backends use SDL based implementations
now.
2012-01-05 00:24:13 +01:00
dhewg
bf69f7ec76
Use SDL GLimp and input implementations on OSX
2012-01-05 00:24:13 +01:00
dhewg
03d4833aa9
Use memory mapped async mixing on OSX
...
The OSX specific preferences dialog sets com_asyncSound to "1"
when OpenAL is used, do the same.
2012-01-05 00:24:13 +01:00
dhewg
8df54ffad2
Move OSX ATI_fragment_shader functions
...
Move the software implementation to
sys/glimp_ati_fragment_shader.cpp in preparation to move to
the SDL based GLimp and events.
2012-01-05 00:24:12 +01:00
dhewg
36870b7e10
Get rid of stubs in the OSX backend
2012-01-05 00:24:12 +01:00
dhewg
b875b54b8b
Get rid of Sys_FadeScreens() and Sys_UnfadeScreens()
...
Unused functions in the OSX backend.
2012-01-05 00:24:12 +01:00
dhewg
fdd6360712
Get rid of Sys_PauseGL() and Sys_ResumeGL()
...
Unused functions in the OSX backend.
2012-01-05 00:24:12 +01:00
dhewg
fa8e50a086
Get rid of unused Sys_Hide() and Sys_Unhide()
...
Unused functions in the OSX backend.
2012-01-05 00:24:12 +01:00
dhewg
cab89769b4
Get rid of dead code in the OSX backend
...
Not used by anything.
2012-01-05 00:24:11 +01:00
dhewg
42841c2435
Get rid of RegCodeHandler()
...
Unhooked ancient code in the OSX backend which isn't working
for D3XP.
2012-01-05 00:24:11 +01:00
dhewg
8fbc629be6
Add support for spanish keyboard layouts
...
There is no keyNum_t for º or ª; catch unmapped console keys.
2012-01-05 00:21:43 +01:00
dhewg
3c96e19610
Fix miscompilation with gcc 4.5
...
idAnimator::GetJointLocalTransform() miscompiles with gcc 4.5 and
-ftree-vrp (implied by -O2).
Reorder code to avoid the compiler bug, no functional change.
2012-01-05 00:21:43 +01:00
dhewg
8ae3ab7641
Get rid of unhooked draw_exp.cpp
...
Unused experimental Windows-only renderer.
2012-01-05 00:21:43 +01:00
dhewg
13bf514a8f
Get rid of Cg leftovers
2012-01-05 00:21:42 +01:00
dhewg
cf9f5a2623
Use SDL_opengl.h
...
That already contains an up to date glext.h.
2012-01-05 00:21:10 +01:00
dhewg
8370a7d213
Turn a Warning() in R_FlareDeform into a DPrintf()
...
The warning is printed on every frame in some areas and slows
down the whole game. Use DPrintf() instead to prevent the
slowdown.
2012-01-03 18:14:21 +01:00
dhewg
bf30c8216a
Get rid of GetExceptionCodeInfo()
...
Unused function is the Windows backend.
2012-01-03 18:14:20 +01:00
dhewg
4740a55295
Don't use a console lock on Windows or OSX builds
...
Sync with Linux.
2012-01-02 20:00:11 +01:00
dhewg
f7915a5ffa
Get rid of dead code in the Windows backend
...
Not used by anything.
2012-01-02 20:00:11 +01:00
dhewg
6f8bb2dfc3
Remove file logging feature from Common.cpp
...
SDL already redirects stdout and stderr into files, this is not
required anymore.
2012-01-02 15:44:46 -05:00
dhewg
1af6da6fdd
Make the printf() family on Windows print to stdout
...
SDL logs this into stdout.txt for us.
2012-01-02 15:44:41 -05:00
dhewg
b83868090c
Use SDL GLimp and input implementations on Windows
...
The DirectX SDK is not required anymore.
2012-01-02 15:44:40 -05:00
dhewg
95233c470b
Use BufferCommandText() in win_syscon.cpp
...
Get rid of the dependency of the local event queue.
2012-01-02 15:44:36 -05:00
dhewg
44b35ccf13
Make Sys_GetScanTable() only available on Windows
...
Sys_GetScanTable() and MapKey() are only used by the Windows backend
or the Windows-only tools.
Rename to Win_GetScanTable() and move MapKey() as Win_MapKey() to
win_input.cpp.
2012-01-02 15:44:35 -05:00
dhewg
29013ff57d
Use SDL for r_swapInterval
...
Enables vsync support for more platforms than just Windows.
2012-01-02 15:44:28 -05:00
dhewg
c0d625685d
Gracefully shut down SDL on exit
2012-01-02 15:44:25 -05:00
dhewg
cd1561ac57
Implement alt+tab for toggling fullscreen mode
2012-01-02 15:44:22 -05:00