64 Commits

Author SHA1 Message Date
twinaphex
bcd5f8aa5b Add has_windowed to video driver and graphics context driver 2014-10-08 17:23:02 +02:00
twinaphex
8caf16a538 (WGL) Build fix 2014-09-14 19:30:44 +02:00
twinaphex
3eead06391 (MSVC) Use Griffin from now on for MSVC PC build - make some
variable/ function names unique for Griffin
2014-09-14 06:29:40 +02:00
Themaister
f26593e0b6 Add core context support to X/EGL and KMS/EGL. 2014-04-20 13:54:29 +02:00
Themaister
5614a77cec Build fix. 2014-04-19 16:25:27 +02:00
Themaister
5bdd368192 Add Windows shared context. 2014-04-19 16:21:37 +02:00
Themaister
6b470442e6 Fixup Win32 build.
D3D stubbed out until it's fixed.
2014-03-09 17:15:10 +01:00
Themaister
d3c0431a3b Update more context backends ... 2014-03-09 17:11:06 +01:00
twinaphex
0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
Themaister
deadbbc906 Add keyboard callback for Windows.
Only tested in Wine, but seems to work fine.
2013-12-09 14:22:46 +01:00
OV2
46345b0ddd win32: add win8 pointer support 2013-11-05 21:23:32 +01:00
twinaphex
849cfb680e Saves 'Show Framerate' setting to config file now too 2013-10-11 01:19:54 +02:00
Themaister
f46f26c42a Revert "(Show FPS) Fix issue with DRM EGL context showing corrupted"
This reverts commit 10baf8456d7e7a2ad44cc5924f7e10e3584ba82d.
2013-10-08 12:27:25 +02:00
twinaphex
10baf8456d (Show FPS) Fix issue with DRM EGL context showing corrupted
string - check if buf_fps is not null before pushing string to message
queue - do this for all context files from now on
2013-10-08 03:14:34 +02:00
Themaister
84c84814cf Fix possible crash with uninitialized buf_fps.
If fps count == 0, buf_fps would not be written to.
Also, make writing into buf_fps optional. Drop always_write variable as
it doesn't serve a purpose anymore.
2013-10-07 21:54:29 +02:00
twinaphex
a98f0336df Implement FPS show message option (Debug Info Text) for most
graphics contexts using message queue
2013-10-07 20:22:08 +02:00
twinaphex
c0c6ecc6cb Rewrite gfx_get_fps - now outputs proper string for FPS output 2013-10-07 20:17:07 +02:00
Themaister
8e5a0b4a38 Remove the stub Win32 GUI.
It is only confusing and doesn't add anything atm.
If we want to go for WIMP-based GUI, it will be using a multi-platform toolkit anyways.
2013-09-27 16:39:22 +02:00
Themaister
45cfc584f9 Allow disabling building Win32 "GUI". 2013-08-31 11:43:14 +02:00
Themaister
67f4f1b3ed [WGL] Fix window size calculation. 2013-08-23 17:32:57 +02:00
Themaister
4d8e9df03d Add forced debug context support to WGL. 2013-08-14 14:13:28 +02:00
Themaister
eb95798016 Style fixups. 2013-08-11 00:57:24 +02:00
Themaister
a9df0a230d Fix CXX_BUILD. 2013-08-11 00:57:24 +02:00
Themaister
335c32d95d Support creating debug contexts. 2013-08-11 00:56:53 +02:00
Themaister
913ad7753a Merge fixes. 2013-08-11 00:53:46 +02:00
Themaister
feebb78f75 Support cached contexts on Win32.
Only tested on Wine, but works.
2013-08-11 00:53:46 +02:00
Themaister
b090f5ab36 Implement WGL core context. 2013-08-11 00:51:05 +02:00
Themaister
b9fce188ea Initial work on core GL context support. 2013-08-11 00:50:04 +02:00
OV2
b9cbcd0b81 win32: add simple menu to opengl context 2013-07-07 02:22:11 +02:00
OV2
bfd11dd1a4 win32: add _WIN32_WINNT define for multimon in mingw32 2013-06-20 16:08:39 +02:00
Themaister
70e961e007 Fixes to Win32 build. 2013-04-13 14:38:08 +02:00
Themaister
e389220df8 Refactor frame_counter.
Graphics drivers get the task of updating this.
If threaded driver is used, main thread cannot update the counter
due to race conditions.
2013-04-13 14:28:12 +02:00
twinaphex
c56f4ddb92 (wgl_ctx) Remove HAVE_EGL code portions 2013-04-06 23:29:05 +02:00
twinaphex
7111558359 wgl_ctx.c - ifdef HAVE_EGL portions of code 2013-04-06 19:28:19 +02:00
Themaister
5e755671da Add show_mouse() context callback. 2013-03-29 13:46:11 +01:00
Themaister
067e00b3dd Remove post_render context callback.
Was supposed to be used for overlay, but is useless now.
2013-03-29 13:26:07 +01:00
Themaister
0b4cf2d053 Update license headers to 2013. 2013-01-01 01:41:15 +01:00
Themaister
5eb7432fff Add overlay rendering to GL.
This allows e.g. Android to render a keypad overlay for touch.
2012-12-19 13:26:11 +01:00
twinaphex
799a9c35fb gfx_common.c - make gfx_get_fps into the main public function -
and remove the two public wrapper functions
2012-12-15 07:03:33 +01:00
Themaister
28bb46483c Drop video_force_16bit.
This option is silly now.
2012-11-20 23:23:18 +01:00
OV2
eaa637aa4b win32: report correct monitor size for regular fullscreen in wgl 2012-10-31 21:36:17 +01:00
Themaister
dc4eaea7b4 Fix build derp. 2012-10-30 22:02:15 +01:00
Themaister
85b6437fdf Add multi-monitor to D3D9.
Untested as I don't have multiple monitors.
Refactored slightly in WGL to make the code more uniform.
The multi-monitor support should probably be refactored to w32_common or
something similar.
2012-10-30 11:49:40 +01:00
Themaister
c2674328ec Fix broken CRLF, and minor fixes for VC12. 2012-10-24 17:19:37 +02:00
Twinaphex512
53868033b7 (MSVC 2012) Initial MSVC 2012 solution
Just need to sort out the linking errors - we'll need to create a
Direct3D driver that is not external for PC and do away with the
'external' one which is really an unacceptable extra dependency for such
a popular graphics API. Also, look if the WGL context file will even
work. Added some TODOs too.
2012-10-24 15:48:44 +02:00
OV2
a97acbddb1 win32: ignore f10 and alt key presses 2012-10-22 21:27:49 +02:00
Toad King
c7dad59402 Add EGLImage support to GL driver.
On videocore, uploading image textures using OpenVG instead of OpenGL ES saves us about 4.5 milliseconds per frame.
2012-10-19 23:08:53 -04:00
Toad King
faf1b47d61 VideoCore EGLImage, still needs EGLImage support in GL driver 2012-10-19 21:24:28 -04:00
Toad King
301848e037 compile fix 2012-10-18 19:09:16 -04:00
Toad King
86fb0984d2 beginning framework for EGLImage support, added (untested) example to OpenVG 2012-10-18 19:00:25 -04:00