Ronald Kinard
93e00cc694
sdl2: -softblit, use smaller texture format
...
-softblit uses SDL2 software renderer backend for blitting
2014-07-24 21:32:47 -05:00
Ronald Kinard
8b0f374bfe
sdl2: potential huge perf. boost to software
...
SDL_UpdateTexture is apparently not good for streaming textures.
So instead, I did SDL_LockTexture/Unlock.
2014-07-24 19:18:48 -05:00
Ronald Kinard
005b502756
sdl2: limit fullscreen resolution in OpenGL
2014-07-24 03:15:35 -05:00
Ronald Kinard
716aa1f33a
sdl2: fix mouse motion (remove -mousewarp)
2014-07-24 02:51:46 -05:00
Ronald Kinard
0d82e3b54b
sdl2: reorder graphics initialization
...
GL Initialization needs to happen before window creation,
otherwise the GL library will get reloaded while in use and
Windows will have a heart attack. This is bad, obviously.
2014-07-24 00:20:34 -05:00
Ronald Kinard
4433be194f
sdl2: software: clear window on mode change
2014-07-23 23:21:19 -05:00
Ronald Kinard
73e99fa96c
sdl2: I_Error if we can't create gl context
2014-07-23 23:15:31 -05:00
Ronald Kinard
fc075e4c81
sdl2: use ABGR8888 texture on little endian system
...
This is a massive performance boost on slow processors, because
before, the intermediary buffer had to be swizzled to ABGR8888
before being uploaded -- for large resolutions this was an
enormous performance penalty.
2014-07-23 23:02:21 -05:00
Ronald Kinard
345b59f6f5
sdl2: code cleanup
2014-07-23 21:45:36 -05:00
Ronald Kinard
d078e3e17f
sdl2: fix opengl (almost) entirely
2014-07-23 19:39:41 -05:00
Ronald Kinard
fea559398a
sdl2: we have colored rects in gl now I guess
2014-07-22 02:23:51 -05:00
Ronald Kinard
0a37bdf76d
sdl2: start getting opengl working again
2014-07-22 01:23:08 -05:00
Ronald Kinard
145618785c
sdl2: reuse window on mode change
2014-07-21 22:41:01 -05:00
Ronald Kinard
2618b1dd0b
sdl2: truncate resolution list, add 16:9 hdtv modes
2014-07-21 22:16:34 -05:00
Ronald Kinard
1ac1d04cca
sdl2: joystick fixes. don't pause in demo play/rec
2014-07-21 21:32:18 -05:00
Alam Ed Arias
8fea599bf8
disable x11 check
2014-04-09 19:55:05 -04:00
Alam Ed Arias
2005421a7e
Merge remote-tracking branch 'ilag11111/sdl2' into sdl2
...
Conflicts:
src/sdl2/i_video.c
2014-04-09 19:47:11 -04:00
ilag11111
c206d55568
Adds command line parameter -mousewarp to control the use of warping in place of grabbing. Works around bugs in certain versions of X.
2014-04-09 14:40:54 -07:00
Alam Ed Arias
a3f387200e
XINPUT2 support check
...
reable check for x11 and check if XINPUT2 support before enable mouse grab mode
TODO: need to restore non-mousegrab code?
2014-04-09 14:57:47 -04:00
Alam Ed Arias
57c1fd602c
clean up SDL2 video interface code
2014-04-09 14:54:15 -04:00
ilag11111
025523f3e3
Fix the previous commit to work on Linux32. Add more comments.
2014-04-08 19:19:23 -07:00
ilag11111
0306c1834a
Disables input grabbing in Linux; allows alt-tabbing and other actions.
2014-04-08 19:02:45 -07:00
Ronald Kinard
ec559c84c1
sdl2: Fix mouse motion in fullscreen
2014-04-06 22:36:47 -05:00
Ronald Kinard
1882cf9233
sdl2: fix tabbing on last few commits
2014-04-06 21:50:56 -05:00
Ronald Kinard
080f8e4008
sdl2: restore joystick code
...
remarkably it still works even though the API has changed.
2014-04-06 21:43:40 -05:00
Ronald Kinard
6ea03a23b4
sdl2: Revert -win flag behavior, was glitchy
2014-04-06 21:23:59 -05:00
Alam Ed Arias
0ae6d5ae29
merge sdl interface changes into SDL2 interface
2014-04-06 19:01:04 -04:00
Alam Ed Arias
f5b4187af6
disabled DEBUG section because of use of SDL_VideoDriverName()
2014-03-24 19:39:42 -04:00
Ronald Kinard
be96974742
sdl2: Fix mouse button input
2014-03-20 23:37:57 -05:00
Ronald Kinard
d298aa8e0d
sdl2: Restore mouse motion support
2014-03-20 22:37:26 -05:00
Ronald Kinard
40de8ea630
sdl2: Make -win toggle cvar instead of disabling fullscreen
2014-03-20 17:48:10 -05:00
Ronald Kinard
ad1b9f93c8
sdl2: Fix changing between fullscreen/windowed
2014-03-20 17:26:07 -05:00
Ronald Kinard
beb2672f40
sdl2: fix mode changing
2014-03-20 02:26:02 -05:00
Ronald Kinard
559c7ceb4d
sdl2: aspect correction in fullscreen, clear on blit
2014-03-20 02:14:03 -05:00
Ronald Kinard
3b137d094a
sdl2: support windowed fullscreen as default
2014-03-20 02:08:45 -05:00
Ronald Kinard
715a12ff08
sdl2: support all windowed mode resolutions
2014-03-20 01:09:52 -05:00
Ronald Kinard
5273989dcd
sdl2: restore keyboard input
2014-03-19 20:19:31 -05:00
Ronald Kinard
63e47c1f0e
sdl2: it works
2014-03-19 19:55:07 -05:00
Ronald Kinard
648a91adec
remove hi-res filters
2014-03-19 18:21:53 -05:00
Ronald Kinard
c282fe9dec
i_video.c: remove old cruft and dead code
2014-03-19 18:15:58 -05:00
Ronald Kinard
89cfb674d9
Stub out unfinished implementations
2014-03-19 17:52:18 -05:00
Ronald Kinard
2a827a98bb
Initial SDL2 renderer impmlementation work.
2014-03-19 02:31:50 -05:00