Johannes Schickel
e931018673
OPENGL: Typo.
2016-03-16 20:29:25 +01:00
Johannes Schickel
c5ce812711
OPENGL: Simplify orthogonal projection setup.
2016-03-16 20:29:25 +01:00
Johannes Schickel
67e2790beb
OPENGLSDL: Slight cleanup.
2016-03-16 20:29:25 +01:00
Johannes Schickel
af727afe0c
OPENGL: Simplify context type setting.
2016-03-16 20:29:25 +01:00
Johannes Schickel
da062ad1ea
OPENGLSDL: Try to use GL(ES) context SDL2 defaults to.
2016-03-16 20:29:25 +01:00
Johannes Schickel
2277144623
OPENGL: Support RGB555 for OpenGL ES output.
...
This mode should *not* be used by any new engines/code. If someone is going
to use it and says it works with the OpenGL output, please make them wear a
red uniform and beam them onto a remote planet.
2016-03-16 20:29:25 +01:00
Johannes Schickel
d6d3e17d53
OPENGL: Allow runtime specification of OpenGL mode.
...
Formerly, we required that the OpenGL mode was fixed at compile time. Now we
allow the code to work with whatever it is given at runtime.
It is still possible to force a context type on compile time.
2016-03-16 20:29:25 +01:00
Johannes Schickel
9816e4f350
OPENGL: Remove support for ARGB8888.
...
This used to be used by Sword25. Since it is not supported by GLES and no
engine code uses it we drop support. Hopefully, this helps people to realize
they should not use that format in their engine.
2016-03-16 20:29:24 +01:00
Johannes Schickel
e11f4df111
OPENGL: Rename GLCALL to GL_CALL.
2016-03-16 20:29:24 +01:00
Johannes Schickel
4a781737c1
OPENGL: Resolve OpenGL functions on run-time.
...
Formerly we relied on static linkage. However, in the presense of modern
OpenGL (ES) implementations it is not easily identifable which library to link
against. For example, on Linux amd64 with nVidia drivers and SDL2 setup to
create a GLES 1.1 context one would need to link against libGL.so. However,
traditionally GLES 1.1 required to link against libGLESv1_CM.so. To prevent a
huge mess we simply resolve the OpenGL functions on run-time now and stop
linking against a static library (in most cases).
GLES support needs to be enabled manually on configure time for now.
Tizen changes have NOT been tested.
2016-03-16 20:29:24 +01:00
Johannes Schickel
b3b3d37e3b
OPENGL: Define GLCALL in opengl-sys.h.
...
debug.h is now always included and all calls should be made through GLCALL.
2016-03-16 20:29:24 +01:00
Johannes Schickel
8f3783da09
OPENGL: Add functionality to query OpenGL functions on runtime.
...
This can and will be used for future extension usage support.
Tizen changes have been untested.
2016-03-16 20:29:24 +01:00
Johannes Schickel
e5e234b864
OPENGL: Refactor GL extension handling slightly.
2016-03-16 20:29:24 +01:00
Johannes Schickel
afe8ea139c
MACOSX: Add comment about track ID search loop.
2016-03-15 14:25:42 +01:00
Johannes Schickel
7725e00e9a
LINUX: Guard Linux audio CD code.
2016-03-15 14:24:23 +01:00
Johannes Schickel
f75bc48141
MACOSX: Guard audio cd code by define check.
2016-03-15 14:24:23 +01:00
Johannes Schickel
ad678cf083
MACOSX: Replace manual uint parsing by strtol.
2016-03-15 14:24:23 +01:00
Johannes Schickel
6a127df564
WIN32: Cleanup header includes for AudioCD code.
2016-03-14 01:04:11 +01:00
Johannes Schickel
88f8ecde0b
WIN32: Supply required DDK headers for older MSVC.
...
Header file taken from MinGW's w32api 4.0.3.
2016-03-14 01:03:13 +01:00
Johannes Schickel
2872c7f9eb
WIN32: Fix compilation with MinGW-w64.
2016-03-13 20:44:04 +01:00
Johannes Schickel
045b583141
WIN32: Guard AudioCD code by WIN32 check.
2016-03-13 20:44:04 +01:00
Johannes Schickel
075bde796e
WIN32: Silence warning in AudioCD code.
2016-03-13 20:44:04 +01:00
Johannes Schickel
b9b3d4557c
WIN32: Fix AudioCD compilation.
2016-03-13 20:44:04 +01:00
Johannes Schickel
5e0b136992
BACKENDS: Fill buffer at start of AudioCD playback.
...
As suggested by clone2727.
2016-03-13 15:45:19 +01:00
Johannes Schickel
5340df3faf
POSIX: Cleanup AudioCD manager creation.
2016-03-13 14:20:20 +01:00
Johannes Schickel
8cd4b881e3
BACKENDS: Add ScummVM license header for AudioCD code.
...
As discussed with clone2727.
2016-03-13 14:16:13 +01:00
Johannes Schickel
b32f347531
SDL: Get rid of reference to SDL 1.3.
...
We only support SDL 1.2 and SDL 2.
2016-03-13 14:07:56 +01:00
Johannes Schickel
90899860b4
BACKENDS: Formatting fixes.
2016-03-13 14:06:20 +01:00
Matthew Hoops
c6c0f527a7
BACKENDS: Switch to CDROMREADRAW for Linux audio CD
...
CDROMREADAUDIO seems to crash the kernel when ejecting while playing. Let's try to avoid that.
2016-03-13 13:57:30 +01:00
Matthew Hoops
41a1dcb0bb
BACKENDS: Switch to a common base class for threaded audio CD streams
2016-03-13 13:57:24 +01:00
Matthew Hoops
aa6ff44440
BACKENDS: Only expose one set of functions for AudioCDManager
...
Engines should only have to call one set of functions and not decide between the two. In fact, the 'emulation' API was documented to just call the 'real CD' API.
2016-03-13 13:57:19 +01:00
Matthew Hoops
dc0d4fcf30
BACKENDS: Add support for opening a CD on Mac OS X by path or drive
2016-03-13 13:57:13 +01:00
Matthew Hoops
4a6c7b5c83
BACKENDS: Add support for opening a CD on Windows by drive
2016-03-13 13:57:09 +01:00
Matthew Hoops
442f91c622
BACKENDS: Add support for opening a CD on Linux by path or drive
2016-03-13 13:57:05 +01:00
Matthew Hoops
1626fbd633
BACKENDS: Allow for specifying a drive via the cdrom option
2016-03-13 13:57:01 +01:00
Matthew Hoops
e39faa239a
BACKENDS: Use a second thread to assist in buffering Win32 CD audio
2016-03-13 13:56:56 +01:00
Matthew Hoops
2aa2a6b56c
BACKENDS: Add a Win32 audio CD player
2016-03-13 13:56:51 +01:00
Matthew Hoops
2ee85fcbd9
BACKENDS: Use a threading for buffering Linux CD audio
2016-03-13 13:56:46 +01:00
Matthew Hoops
91d695d4a2
BACKENDS: Detect the CD drive from the game's path on Linux
2016-03-13 13:56:39 +01:00
Matthew Hoops
a1a4fc0d51
BACKENDS: Add a Linux CD-ROM audio player
2016-03-13 13:56:28 +01:00
Matthew Hoops
47a82f2d1b
BACKENDS: Add a custom Mac OS X CD audio manager
...
Since Mac OS X Carbon/Cocoa API isn't stable (in that it's changed multiple times over the years). Maintaining two versions of the same code (one in some foreign language with overly long names) isn't very appealing to me.
2016-03-13 13:53:55 +01:00
Matthew Hoops
55a87c59b6
BACKENDS: Use a virtual function for creating the SDL audio CD manager
2016-03-13 13:53:40 +01:00
Matthew Hoops
30e68efac4
BACKENDS: Add a closeCD() function to the AudioCDManager
2016-03-13 13:53:35 +01:00
Matthew Hoops
fb6fe1332a
BACKENDS: Move to an openCD() without parameters as the public API
2016-03-13 13:52:24 +01:00
Johannes Schickel
4ee3623f5d
SDL: Fix compilation with SDL2 and MSVC2015.
2016-03-09 22:03:47 +01:00
Pawel Kolodziejski
68ee863367
SDL: attempt to fix compilation for AmigaOS4
2016-03-09 18:21:18 +01:00
Eugene Sandulenko
f5f41d7daa
GCW0: Remove hardcoded list of skipped engines.
...
Now we rely on highres feature of the backends
2016-03-09 16:33:52 +01:00
Bastien Bouclet
19757429f2
SDL: Reorganize the game render target selection code
...
Introduce a GameRenderTarget enumeration defining how the game is rendered
on the screen: directly, using a sub-surface, or using a framebuffer.
Split the video initialisation code into smaller methods.
The logic should be exactly the same as before.
2016-03-06 12:20:25 +01:00
Eugene Sandulenko
8b3f27753e
GCW0: Disabled more 640x480-only engines
2016-03-05 13:05:21 +01:00
Johannes Schickel
1f217e3834
WIN32: Fix invalid array accesses when MIDI device listing fails.
2016-03-01 01:14:17 +01:00