twinaphex
fc120db9d7
Add super2xsai.c
2014-04-16 21:15:57 +02:00
twinaphex
e693e93b57
(SoftFilter) Add Super2xSaI filter (RGB565 only for now)
2014-04-16 21:15:02 +02:00
twinaphex
2b3624a864
(SoftFilters) Fixed HQ2x
2014-04-16 18:12:31 +02:00
twinaphex
09bb2b4fae
(SoftFilter) 2xBR - Hook up last_second and first_second to
...
worker thread function
2014-04-16 18:00:19 +02:00
twinaphex
c6e64d5c69
(SoftFilter) Add first_second and last_second to filter_thread_data
...
for 2xBR
2014-04-16 17:59:35 +02:00
twinaphex
6cd2cb4abe
(SoftFilter) Refactor HQ2x somewhat
2014-04-16 17:43:52 +02:00
twinaphex
390d198812
Uniquely name gfx/scaler/filter.c for MSVC
2014-04-16 15:48:33 +02:00
twinaphex
09d29d267a
(RARCH_CONSOLE) Fix rarch_softfilter_get_name for consoles
2014-04-16 13:42:50 +02:00
twinaphex
5c0f30c569
(SoftFilter) Compile with release set to release by default
2014-04-16 13:30:17 +02:00
twinaphex
b4a6635e67
(SoftFilter) Port of HQ2x- segfaults sporadically - needs fixing
2014-04-16 13:29:32 +02:00
twinaphex
9772c48016
(SoftFilter) Cleaner and more portable way of grabbing the name from the filter
2014-04-16 06:48:24 +02:00
twinaphex
a090806abc
(SoftFilters) Add 2xSaI filter - RGB565 only for now
2014-04-16 06:34:20 +02:00
twinaphex
8d6a7dbe1f
(Console) Bakes in filters now for ifndef HAVE_DYLIB targets
2014-04-16 03:33:10 +02:00
twinaphex
45c917afa4
Compile in filters for console ports (HAVE_DYLIB not defined in
...
Griffin)
2014-04-16 02:09:09 +02:00
twinaphex
4cd1094151
Add Makefile for filters (needs to be made crossplatform later)
2014-04-16 01:49:21 +02:00
twinaphex
b5dc514f1a
Add untested Hylian 2xBR C code - right now shows some broken colors
...
and that's it
2014-04-16 00:55:09 +02:00
twinaphex
6bb5a08f3e
(Softfilters) Prevent code duplication in scale2x.c
2014-04-15 21:18:43 +02:00
twinaphex
bbcac9463b
Cleanup scale2x.c
2014-04-15 21:04:26 +02:00
Themaister
ff424e239d
Fixup filters.
2014-04-15 19:36:42 +02:00
twinaphex
a17c814ea7
Rename dark.c to darken.c
2014-04-15 19:24:06 +02:00
twinaphex
db9e69c0c6
Uniquely name dark.c functions
2014-04-15 18:45:11 +02:00
twinaphex
ea00f26414
(SoftFilters) Port of scale2x.c - buggy/broken
2014-04-15 18:25:28 +02:00
twinaphex
5993a63d77
Add experimental 16bpp code to dark.c softfilter - WIP
2014-04-15 18:04:42 +02:00
Themaister
980eefdd8c
Autodetect number of CPU cores for softfilter.
2014-04-15 17:55:40 +02:00
Themaister
0e406c998d
Fix CXX_BUILD.
2014-04-15 12:40:27 +02:00
twinaphex
6bdd5cf6ec
Add RGUI actions for Softfilter directory path and Softfilter selection -
...
maister - test if this works - it doesn't here on my end and keeps saying
that the example softfilter (dark.c) has the wrong color format)
2014-04-15 06:19:24 +02:00
twinaphex
a0bce9d467
(Filters) Rewrite dark.c so that it can be compiled by MSVC
2014-04-15 05:06:27 +02:00
twinaphex
347b2bfb6a
Move gfx/softfilter.h to gfx/filters/softfilter.h and put gfx/filters/dark.c
...
into repo
2014-04-15 05:01:31 +02:00
Themaister
c88941d23a
Should avoid UTF-8 segfault in bitmapfont.
2014-04-15 04:43:14 +02:00
Themaister
90d4a28a88
Fix type derp.
2014-04-15 04:29:51 +02:00
Themaister
b1c238c0d6
Add threaded filtering.
2014-04-15 04:05:56 +02:00
Themaister
3e83e45a7d
Better error handling of filter stuff.
2014-04-15 00:33:13 +02:00
Themaister
4b97de0c9e
Replace filter cruft with new stuff.
2014-04-15 00:03:55 +02:00
Themaister
cbc6775496
Some more filter stuff ...
2014-04-14 23:46:47 +02:00
Themaister
f72445798b
Flesh out filter stuff a bit more.
2014-04-14 23:24:10 +02:00
Themaister
5cb3438389
Begin implementation of softfilter API.
2014-04-14 22:56:15 +02:00
Themaister
f2c78c36e3
[Android] Add support for GLES3 HW render.
2014-04-14 13:17:05 +02:00
Themaister
2e3ca36010
Allow toggling monitor index in RGUI.
2014-04-06 15:41:53 +02:00
Themaister
0ae933ea8b
Select best KMS mode depending on refresh rate.
...
Try to match as closely as possible.
2014-04-06 15:29:59 +02:00
Themaister
72c3177715
Honor fullscreen_x/fullscreen_y in KMS/EGL.
...
Try to find optimal mode.
2014-04-06 15:20:31 +02:00
Themaister
36575fe407
Add multi-monitor support to KMS/DRM.
2014-04-06 15:10:39 +02:00
Themaister
99bc686266
Log available KMS/DRM modes.
2014-04-05 22:29:20 +02:00
Themaister
f804adae21
Fixup big resource leaks in KMS/DRM.
2014-04-05 22:11:19 +02:00
Floréal Toumikian
c1014ee305
Moved dir_list_free
2014-04-05 19:59:31 +02:00
Floréal Toumikian
a107678f0d
Fixed broken build
2014-04-05 19:51:28 +02:00
Floréal Toumikian
d663f7fc5d
romoved glob, used file_list instead
2014-04-05 19:32:51 +02:00
Floréal Toumikian
8fce5f03e9
Added gpu lookup in DRM EGL context
2014-04-05 16:02:28 +02:00
twinaphex
68593e39ea
(D3D9) Replace menu_iterate_xui code
2014-04-01 04:49:32 +02:00
Twinaphex
456a9f4245
(D3D) Don't add Direct3D to window title
2014-03-16 14:50:09 +01:00
Twinaphex
ba4116e313
(D3D) TODO - quick hack to get D3D driver to at least work for games -
...
WM_DESTROY needs to be properly reimplemented
2014-03-16 14:36:55 +01:00
Adam Di Carlo
4aff572ed7
vg methods require the vg be passed as first object; allows this file to compile on Debian Wheezy amd64
2014-03-15 14:22:26 -04:00
Themaister
79d0cb11af
Fix compile issue in VC context.
2014-03-15 16:04:23 +01:00
Themaister
d941f70dff
Should fix build on Pi.
2014-03-15 14:16:29 +01:00
twinaphex
c52c8cd5b5
(Android) Bump up versioncode
...
(VideoCore EGL) Fix build
2014-03-13 11:01:46 +01:00
twinaphex
7cdc23505c
(Apple) Build fix
2014-03-10 06:00:06 +01:00
twinaphex
247dc03124
(d3d_ctx.cpp) Use local data pointer instead of driver.video_data
...
where appropriate
2014-03-09 18:54:02 +01:00
twinaphex
d1df068583
(XDK) Build fix
2014-03-09 18:51:35 +01: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
Themaister
d0302c9800
Begin adding opaque interface to gfx_context.
2014-03-09 16:50:18 +01:00
Themaister
6a45de307d
Build fix MinGW.
2014-03-09 15:49:20 +01:00
twinaphex
4da1d1f8a3
(D3D CTX) implement gfx_ctx_d3d_destroy for Xbox
2014-03-08 05:21:57 +01:00
twinaphex
8254e127ec
Rename d3d9_p.cpp to gfx/context/d3d_ctx.c
2014-03-08 05:18:05 +01:00
twinaphex
a95290b94a
(D3D Move more code over for Xbox
2014-03-08 04:56:27 +01:00
twinaphex
05e62a133f
(XDK) Remove xdk_ctx.c
2014-03-08 04:19:10 +01:00
twinaphex
38c04f9b0c
(XDK) Use same context driver as PC now
2014-03-08 04:13:20 +01:00
twinaphex
7599caac81
(D3D) Move code around
2014-03-08 04:08:18 +01:00
twinaphex
dabfafc7cc
(D3D) Move stuff around
2014-03-08 04:03:12 +01:00
twinaphex
f84e59568c
(D3D) Remove some header includes
2014-03-08 03:36:10 +01:00
twinaphex
c512fccc18
(XDK) Build fix
2014-03-08 00:54:33 +01:00
twinaphex
c5fd281e1c
(XDK) Use similar-named context driver as PC D3D
2014-03-07 22:49:44 +01:00
twinaphex
ff65d6a58c
(D3D) Insert more XDK code
2014-03-07 22:26:47 +01:00
twinaphex
856f7a2e2c
(D3D) Build fix
2014-03-07 21:58:21 +01:00
twinaphex
8714939ab7
(D3D) Start implementing Xbox code in regular D3D driver
2014-03-07 21:55:18 +01:00
twinaphex
1af941a6ee
(D3D) Some changes
2014-03-07 21:22:59 +01:00
twinaphex
2708bef175
(D3D) Add XDK ifdefs in d3d9_pc.cpp
2014-03-07 21:14:56 +01:00
twinaphex
f512ba76d1
(XDK) Rename xdk_d3d_video_t to d3d_video_t
2014-03-07 20:17:25 +01:00
twinaphex
fd76a28a32
(D3D) Refactor D3DVideo class to d3d_video_t - should be very
...
similar to XDK D3D driver now
2014-03-07 19:34:17 +01:00
twinaphex
85bfecf1e9
(D3D) Cleanup render_chain.hpp
2014-03-07 19:17:59 +01:00
twinaphex
e639c6042e
(D3D Refactor render_chain.cpp - shouldn't be a class
2014-03-07 19:13:20 +01:00
twinaphex
7f5e2c1631
(360 XDK) Don't reference driver.video_data from within
...
xdk3360_fonts.cpp
2014-03-07 06:46:11 +01:00
twinaphex
82c7e8f422
(XDK D3D) Build fix
2014-03-07 05:56:23 +01:00
twinaphex
39c1ec4672
Pass data param to more shader functions
2014-03-07 05:51:56 +01:00
twinaphex
ab79407dc6
(XDK 360 fonts) Start replacing driver.video_data with local data argument
2014-03-07 05:37:20 +01:00
twinaphex
091ae18870
(GL) Fixup params to shader->init
2014-03-07 05:32:17 +01:00
twinaphex
ea88399281
(XDK D3D) Refactor initing code completely - make it more inline
...
with PC D3D driver
2014-03-07 05:31:24 +01:00
twinaphex
c03c980c1e
(XDK D3D) Create set_mvp
2014-03-06 18:29:54 +01:00
twinaphex
407cced43c
(XDK D3D) Move g_extern.frame_count incrementin to swap_buffers
2014-03-05 22:24:39 +01:00
twinaphex
fb48a9e356
(XDK D3D) refactors
2014-03-05 22:10:36 +01:00
twinaphex
f0ff3b4ae7
(XDK D3D) Rename win_width/win_height to screen_width/screen_height
2014-03-05 06:25:39 +01:00
twinaphex
4cd603197b
(XDK D3D) Refactor LPDIRECT3D member to g_pD3D
2014-03-05 06:11:39 +01:00
twinaphex
1e37515e2f
(XDK D3D) Rename d3d_render_device member to dev
2014-03-05 06:05:48 +01:00
twinaphex
8a670dd2c8
(PC D3D9) Go through d3dr pointer
2014-03-05 05:25:27 +01:00
twinaphex
61893a82e8
(D3D9) Move more Cg functions to render_chain_cg.cg
2014-03-05 01:54:09 +01:00
Tobias Jakobi
49bc4f226f
video_lima: increase alignment of allocated memory to 128-bit
...
This works better for the NEON asm in limare.
2014-03-04 20:26:53 +01:00
Tobias Jakobi
8759b67f66
video_lima: align width/height of font tex to 16 (Mali block size)
2014-03-04 20:26:52 +01:00
twinaphex
71854439bb
(D3D9) Move d3d_init_shader/d3d_deinit_shader to gfx/d3d9/render_chain_cg.h
2014-03-04 18:49:01 +01:00
twinaphex
dfe33b5ade
(Cg) Move bind_tracker and init_fvf to render_chain_cg.h
2014-03-04 18:42:22 +01:00
twinaphex
35d6ec7a1d
(D3D9) Move more Cg code to render_chain_cg.h
2014-03-04 18:31:38 +01:00
twinaphex
e9fb97254b
(D3D9) Start isolating all Cg code and move it to render_chain_cg.h
2014-03-04 18:24:47 +01:00
twinaphex
16af303c9e
(D3D9) Refactor render_chain.cpp - isolate Cg code
2014-03-04 18:19:47 +01:00
twinaphex
68a6da85b7
(Cg) Remove useless forward declaration
2014-03-04 17:13:50 +01:00
Themaister
74735e2b4d
Add some more error logging in X/EGL.
2014-03-03 23:00:37 +01:00
twinaphex
3f5e3c191e
(XDK) Build fixes
2014-03-02 02:18:37 +01:00
Themaister
28d1e77a36
Fix GPU screenshots with GL + threaded driver.
2014-02-26 20:42:22 +01:00
twinaphex
fcf30143b4
(PS3) Change HAVE_RGL to HAVE_GCMGL
2014-02-25 22:01:46 +01:00
twinaphex
fd7f4d45cd
Move image files to gfx/image/
2014-02-25 21:24:15 +01:00
Themaister
107c07c05d
Reinit driver on composition change.
2014-02-25 19:14:22 +01:00
Tobias Jakobi
20067ed087
video_omap: plug memory leak
2014-02-24 21:12:12 +01:00
Tobias Jakobi
117a1ff64b
video_lima: plug potential memory leak
2014-02-24 21:03:35 +01:00
twinaphex
f5321d69c8
(PSGL) Remove psglu.h header include
2014-02-24 17:30:08 +01:00
twinaphex
b12274f704
(PS3) Get rid of warning: Variable is used before its value is set
2014-02-23 01:56:33 +01:00
Lioncash
fb9959d338
Fix wrong usage of free in d3d9/d3d.cpp. Should be delete.
2014-02-22 17:19:47 -05:00
Toad King
ea5ecd507d
[GX] fix image converters to avoid memory corruption, fixes crash on some overlays
2014-02-20 23:50:45 -05:00
Toad King
041ec45132
Merge branch 'gx-overlays'
...
Conflicts:
Makefile.wii
gx/gx_video.c
2014-02-20 19:46:43 -05:00
Toad King
02fd6dffbd
[GX] overlays appear, still some bugs left
2014-02-20 17:58:06 -05:00
Toad King
e09b7fb60c
build fix
2014-02-19 17:52:47 -05:00
twinaphex
71b6485bb5
(PSP) Fix warnings
2014-02-19 17:47:59 +01:00
twinaphex
603484a1da
(Thread wrapper) Fix unused variable i warning
2014-02-19 16:30:28 +01:00
Toad King
518b53e21c
convert images on texture_image_load for gekko
2014-02-18 18:20:23 -05:00
twinaphex
a788009e7c
How nice - geom->base_width and geom->base_height are const, so
...
we have to put them in local copies first
2014-02-13 15:12:31 +01:00
twinaphex
535f130891
Prevent division by zero in gfx_set_viewport
2014-02-13 15:10:01 +01:00
Hans-Kristian Arntzen
2ab94ad8d1
[Android]: Use ALPHA_SIZE 8.
...
Avoids weird 24-bit surfaces ...
2014-02-13 12:04:08 +01:00
twinaphex
94d70b6aba
(PSP) Hack - Get around FPU exception - division by zero
2014-02-13 11:38:41 +01:00
Hans-Kristian Arntzen
6a6f56a82e
Do not reply on CMD_NONE.
...
Avoids potential deadlock.
2014-02-13 11:20:18 +01:00
Hans-Kristian Arntzen
b1a3b94594
Fix command-line for glgen.
2014-02-12 19:05:29 +01:00
Themaister
bf1a95459c
Remove weird backslash.
2014-02-12 18:55:40 +01:00
Themaister
c85b5b9b27
Add glsym README.
2014-02-12 18:54:57 +01:00
twinaphex
7a67e05a66
(glsym_gl.h) Update GLuint64EXT in glsym_gl.h too (BTW - where
...
is the README explaining how to generate files with glgen.py?)
2014-02-12 18:29:03 +01:00
twinaphex
620bf49081
(OSX) Add GLuint64EXT for OSX version lower than 10.7 (Lion)
2014-02-12 18:21:35 +01:00
Twinaphex
ad68ce4c91
Merge pull request #545 from libretro/glgen-update
...
Update glgen_gl.c/h.
2014-02-12 17:59:01 +01:00
Themaister
ef54422379
Avoid temporary garbage data in alpha mod.
2014-02-12 15:53:04 +01:00
Themaister
833259de93
Greatly improve performance with normalized overlays and threaded video.
...
SET_ALPHA_MOD would previously block on frame completion which only made
sense for non-normalized overlays.
This should also hopefully fix the ANR hang on Android.
2014-02-12 15:40:54 +01:00
Themaister
150ee8d8c2
Update glgen_gl.c/h.
2014-02-11 20:53:46 +01:00
twinaphex
b370d3f048
Stub function of null_gfx_restart when HAVE_MENU is defined
2014-02-11 17:10:13 +01:00
twinaphex
d4f9c211ee
(PSP) Build fixes
2014-02-11 16:10:40 +01:00
twinaphex
de0d0626f6
Include boolean.h instead of stdbool.h
2014-02-11 07:49:15 +01:00
twinaphex
c42a00a39f
(OSX PPC) Change anonymous unions, define GLint64/GLuint64/GLsync
...
for Leopard and Snow Leopard, other changes..
2014-02-11 16:07:00 +11:00
Tobias Jakobi
f3f50daeb4
video_lima: use posix_memalign to request aligned memory
...
aligned_alloc is deprecated
2014-02-10 14:58:55 +01:00
Tobias Jakobi
3005501184
video_lima: fix some warnings
2014-02-10 14:58:55 +01:00
Tobias Jakobi
605d4f3954
video_lima: slight reduction of font texture size
2014-02-10 14:58:54 +01:00
Tobias Jakobi
72009fe3d7
video_lima: use general align function
...
introduce in preparation to texture upload optimization
2014-02-10 14:58:54 +01:00
OV2
43b209a5c0
D3D9: use new during init so that constructors are run
2014-02-08 19:56:02 +01:00
Themaister
94a0cef1d4
Fix libretro GL core screenshots.
2014-02-06 23:37:06 +01:00
Themaister
8120198ed8
Make C++ compiler happy.
2014-02-06 22:52:48 +01:00
Themaister
032ba14d3b
Properly implement GPU screenshot for GLES.
...
Have to use GL_RGBA/GL_UNSIGNED_BYTE as well as reading from back buffer
only.
2014-02-06 21:35:57 +01:00
Higor Eurípedes
b719c98db6
(griffin.c) Fix build when freetype2 support is enabled
...
This commit fixes build issues for frontends that wish to use freetype2
or that do not want to use the built-in bitmap font:
* Having HAVE_FREETYPE without DONT_HAVE_BITMAPFONT makes griffin.c
include both freetype.c and bitmapfont.c resulting in a redefinition
of 'struct font_renderer' (freetype.c:25 and bitmapfont.c:24).
* Having both HAVE_FREETYPE and DONT_HAVE_BITMAPFONT resulted in linkage
problems because griffin.c does not include fonts.c in this case and
thus font_renderer_create_default() implementation is missing. If
fonts.c is included, the linker complains about undefined reference to
bitmap_font_renderer in fonts.c:27.
2014-02-05 12:30:55 -03:00
Tobias Jakobi
18e37b2d47
video_lima: set wrap mode to clamp for all textures we use
2014-01-28 03:02:04 +01:00
Tobias Jakobi
6ab202f25f
video_lima: whitespace fixes
2014-01-27 23:05:45 +01:00
Tobias Jakobi
9d1090b194
video_lima: remove unused and redundant variables
2014-01-27 23:03:08 +01:00
Tobias Jakobi
8f41e80c61
video_lima: align temp buffer
2014-01-26 04:43:01 +01:00
Tobias Jakobi
4b05426bbe
video_lima: add font rendering by using the temp buffer
2014-01-26 04:43:01 +01:00
Tobias Jakobi
a338d99781
video_lima: misc fixes
2014-01-26 04:43:00 +01:00
Tobias Jakobi
55fc57b846
video_lima: fix some swizzling in the fragment shader
...
Thanks to AreaScout for testing this!
2014-01-26 04:43:00 +01:00
Tobias Jakobi
9226c3c783
video_lima: adjust aspect ratio depending on frame dimensions
...
With this the emulator framebuffer is no longer stretched to the entire
screen. However it's still not entirely correct. For example the aspect
ratio value provided by the frontend is not used yet.
Also I noticed this behaviour: When using the game "Secret of Mana 2"
(unofficial english translation) on the snes9x-next core, the game
normally uses a framebuffer of dimension 256x224. But when rendering
text windows, it increases resolution to 512x224. With the current
behaviour this alters aspect ratio and let's the image "explode"
when text boxes are displayed, only to "implode" again when they close.
This should not happen! (Needs further investigation...)
2014-01-26 04:43:00 +01:00
Tobias Jakobi
7cdb08b804
Add lima video driver
...
Documentation is provided in README-lima.
2014-01-26 04:43:00 +01:00
Themaister
0b462054ea
De-hardcode input drivers in KMS-like drivers.
2014-01-24 10:23:48 +01:00
pinumbernumber
09651cbe21
Hopefully improved detection of third-party dual xinput/dinput pads
2014-01-23 21:57:19 +00:00
Themaister
6c5d481f2d
Fix MinGW compile.
2014-01-22 16:39:39 +01:00
Themaister
8c9e1a5f5c
Fix some unused function warnings.
...
Clang 3.4 is more aggressive on this.
2014-01-22 16:39:39 +01:00
twinaphex
b480009604
(D3D9) Remove obsolete function d3d_font_msg now
2014-01-18 21:53:40 +01:00
twinaphex
7cbfb14791
(D3D9 PC) Go through font context driver now
2014-01-18 21:51:30 +01:00
twinaphex
13620ab16d
(D3D) Split up D3D font code from D3D PC driver into separate font context file
2014-01-18 21:38:21 +01:00
twinaphex
5d34d72ed2
(XDK 360) Clean up xdk360_fonts
2014-01-18 21:32:46 +01:00
twinaphex
7c1f24c861
(D3D) set_resize function bound to D3D context driver
2014-01-18 21:13:08 +01:00
twinaphex
544df55017
(D3D) check_window - check if d3d_quit has been set to true, and if so,
...
set quit pointer value to true
2014-01-18 21:07:34 +01:00
twinaphex
280b9d5406
(D3D9) Move more code to d3d9_pc context driver
2014-01-18 20:49:57 +01:00
twinaphex
ab9d4440db
(D3D) Create graphics context driver for D3D and move
...
state code over to it
2014-01-18 18:43:40 +01:00
twinaphex
ff3a157a9d
(D3D) Ifdefs for HAVE_CG (and miscellaneous)
2014-01-15 19:00:46 +01:00
Themaister
c4978651fa
Properly replace template.
...
Avoid having to assume a magic variable is present in scope.
2014-01-15 17:24:24 +01:00
twinaphex
73b23f7002
(MSVC) Fix warnings
2014-01-15 17:05:08 +01:00
twinaphex
185dc3731f
(D3D) Add HAVE_CG/_XBOX ifdefs
2014-01-15 14:14:37 +01:00
twinaphex
c966629e1b
(D3D9) Fixup HAVE_PYTHON ifdef
2014-01-11 15:47:11 +01:00
Themaister
0447c04957
Remove obsolete rpng comment.
...
It does decode all the basic formats, interleaving and stuff.
2014-01-11 12:24:54 +01:00
Themaister
f3eb9dfafe
Make RPNG compilable outside RetroArch without source hacking.
2014-01-11 12:22:51 +01:00
twinaphex
a2d713b3cb
Add rzlib to include dirs to avoid ugly ifdef for WANT_MINIZ
2014-01-10 19:46:31 +01:00
twinaphex
b34a21be83
(D3D9) quit variable must be static
2014-01-09 22:25:50 +01:00
twinaphex
5752bb1b9c
(D3D) Move implementation-specific functions to d3d9_pc.cpp
2014-01-09 21:27:53 +01:00
twinaphex
7cd149c3c6
(D3D) Build fix
2014-01-09 20:06:39 +01:00
twinaphex
51eb1d9e52
(D3D) Compatibility with Xbox 1 - WIP
2014-01-09 20:04:18 +01:00
twinaphex
feb11c525c
(D3D) Add some more ifdefs for portability purposes
2014-01-09 19:52:01 +01:00
twinaphex
c32fc07b3f
(D3D) Turned D3DVideo class into struct
2014-01-09 19:43:45 +01:00
twinaphex
eae35b9a50
(D3D) Move more functions out of D3DVideo class
2014-01-09 19:05:31 +01:00
twinaphex
e48b7e7d8a
(D3D) Refactor D3D driver
2014-01-09 18:44:25 +01:00
twinaphex
4815f25421
Start making xdk_ctx viable for both PC and console
2014-01-09 16:18:47 +01:00
twinaphex
3c16814970
(XDK) Make generate_pp more generic and more like make_d3dpp from
...
d3d9_pc.cpp
2014-01-09 14:11:08 +01:00
twinaphex
f5c94ed617
(D3D XDK) Reimplement PresentationInterval for Xbox
2014-01-09 14:00:25 +01:00
twinaphex
f374827ca2
(XDK Ctx) Set SwapEffect to 'discard' for both 360 and Xbox 1
2014-01-09 13:51:42 +01:00
twinaphex
1341b2e498
(XDK D3D) Clean up unneeded extern for Xbox 1
2014-01-09 13:41:28 +01:00
twinaphex
64474142dd
(XDK) Move xdk_d3d_generate_pp to xdk_ctx.c
2014-01-09 13:40:17 +01:00
twinaphex
5c5948b42b
(XDK D3D) Clean up XDK D3D context file
2014-01-09 13:37:23 +01:00
twinaphex
d07c3242cf
(D3D9) Some cleanups
2014-01-09 13:18:25 +01:00
Twinaphex
165698b9f2
Merge pull request #481 from libretro/dpad-map
...
Analog D-pad mapping
2014-01-08 12:01:39 -08:00
twinaphex
f23e41bd17
Safety checks for accessing video_poke function pointers
2014-01-08 19:42:42 +01:00
Themaister
33d50e2010
Check GL_RENDERER for ATI as well.
2014-01-08 18:09:49 +01:00
Themaister
f6643fe12d
Push analog dpad mode for autoconfig as well.
2014-01-08 17:47:07 +01:00
Themaister
f57a1aa032
Add support for mapping analogs to D-pad again.
...
Use a cleaner approach which can feasibly work on all platforms.
Uses input_push/pop_analod_dpad to modify the joyaxis field before
polling input. This way, the RetroPad D-pad binds can inherit the
joyaxis fields from ANALOG_LEFT_X_PLUS and friends.
Also add support for the field in RGUI and saves settings.
2014-01-08 17:31:14 +01:00
twinaphex
61218b4a66
(OSX) Get rid of unused variable warning/variable is used before it's initialized
2014-01-06 16:20:20 +01:00
Themaister
f2a8a73322
Add workaround for ATI Catalyst's lack of GL_RGB565 support.
2014-01-05 22:29:57 +01:00
Themaister
bee70f8318
Fix ifdefs regarding READ_PIXELS.
2014-01-05 22:22:15 +01:00
twinaphex
e9ce0aaaa4
(PS3) Custom aspect ratio works now
2014-01-05 18:48:09 +01:00
Themaister
53502bd066
Add some FIXMEs.
2014-01-03 20:23:35 +01:00
Themaister
9c218bcf07
Fix unpack row len with 16-bit cores on desktop.
...
Missed call to UNPACK_ROW_LENGTH :(
2014-01-03 14:42:38 +01:00
Themaister
69b104f9e4
Comment about BGRA8888.
2014-01-01 21:58:02 +01:00
Themaister
08ba1ad14e
Use GL_RGB565 internal format when available.
...
This is a feature from ES2_compat extension.
It fixes the speed issue associated with using 16-bit textures on
desktop GL. Improves performance a bit as well as there's less bandwidth
usage during shading.
On my HD3000 laptop, performance improved with ~10%.
2014-01-01 21:58:02 +01:00
Themaister
a287ea6c6e
Remove debug check.
2014-01-01 17:01:33 +01:00
Themaister
f64b670d9a
Don't use std::shared_ptr for state tracker.
2014-01-01 16:59:19 +01:00
Themaister
b618306995
Big D3D9 cleanup.
...
Use bool for return instead of int (many bugs because of that ...).
Remove all use of exceptions, use delayed constructors (due to no
exceptions ...). Drop use of unique_ptr in D3D9 (not really needed).
2014-01-01 16:53:15 +01:00
twinaphex
2158076bd7
(D3D9) Add <algorithm> header include
2014-01-01 16:04:31 +01:00
twinaphex
e38a1096f0
Rename D3D9 in logs to D3D where appropriate (ie. D3D Cg can stay D3D9)
2014-01-01 03:19:57 +01:00
twinaphex
a6df90ff71
(D3D) Move more defines/header includes to d3d_defines.h
2014-01-01 03:15:48 +01:00
twinaphex
d4a9cc3d8c
(D3D) Shouldn't need ifdef __cplusplus - extern "C" anymore
2014-01-01 02:58:19 +01:00
twinaphex
22d282c649
(D3D) Should fix Mingw compilation
2014-01-01 02:38:09 +01:00
twinaphex
0a15a17d44
Update years on all license headers
2014-01-01 01:50:59 +01:00
twinaphex
17af6a0465
(D3D) Rename video_d3d9 to video_d3d
2014-01-01 01:09:31 +01:00
twinaphex
115f706f24
(D3D) Split up version-agnostic defines into separate header file - will be
...
fleshed out later for D3D8, D3D9, etc.
2014-01-01 00:58:21 +01:00
twinaphex
4b0e56a52e
(D3D) Use memcmp instead of std::memset
2014-01-01 00:50:26 +01:00
twinaphex
88a0b45ad5
(D3D) Use version-agnostic defines
2014-01-01 00:49:00 +01:00
twinaphex
772383effc
(D3D) Use defines to hide away D3D version-specific types
2014-01-01 00:27:55 +01:00
twinaphex
88194bcdae
(D3D) Build fix
2014-01-01 00:01:20 +01:00
twinaphex
538bf3b49a
(D3D) Cleanups
2014-01-01 00:00:01 +01:00
twinaphex
06becc939e
(D3D) Get rid of most throws and exception catching
2013-12-31 23:49:45 +01:00
twinaphex
dc734aea55
(D3D9) Get rid of C++ memory header include
2013-12-31 23:26:12 +01:00
twinaphex
2d651bbc1d
(D3D9) Get rid of unneeded headers
2013-12-31 23:23:02 +01:00
twinaphex
d4850b3cd4
(D3D) Split up D3DVideo-specific code to separate file
2013-12-31 23:20:37 +01:00
twinaphex
4fa7580dea
(MSVC) Builds again
2013-12-31 22:10:58 +01:00
twinaphex
aa5a74ed7f
(MSVC) Build fixes to D3D9 driver
2013-12-31 21:52:15 +01:00
twinaphex
44ff5afcc2
(D3D) Start brining D3D9 and XDK D3D drivers together
2013-12-31 21:24:17 +01:00
Themaister
0d3428ad15
Add texture_image_free().
...
Cleans up deinit code for textures.
2013-12-31 19:16:29 +01:00
Themaister
132c3c46f7
Use struct texture_image instead of video_overlay_image.
2013-12-31 19:05:16 +01:00
Themaister
77a62573a2
Fix crash in GLSL when overlays with many textures are used.
...
Have to call shader->use() for each set_coords or we overflow
the attribs array cached buffer.
2013-12-26 23:34:40 +01:00
Themaister
f61a91c2fd
Don't call glDetachShader().
...
Some drivers don't like it.
2013-12-26 02:18:43 +01:00
Themaister
f2371cf691
Delete shader objects early instead of late.
...
Less error prone. Also saves some memory.
2013-12-26 02:16:30 +01:00
Themaister
8a81ee856c
Some Win32 fixes.
2013-12-24 14:10:18 +01:00
twinaphex
bb82c76a4c
(D3D9) Fix up D3D driver - use RARC_PERFORMANCE macros
2013-12-22 17:41:08 +01:00
Themaister
1c9895611b
Rework performance interface.
...
Avoids super-ugly macros and retroarch-ifdefs.
2013-12-18 19:21:56 +01:00
twinaphex
9852c5dc4c
Rewrite perf interface - exposes callbacks now for RETRO_PERFORMANCE_INIT/RETRO_PERFORMANCE_START/RETRO_PERFORMANCE_STOP calls without messy, hardcoded preprocessor-dependent variables in macros - will update cores accordingly too
2013-12-18 19:03:08 +01:00
twinaphex
69a67b3df2
Change RARCH_PERFORMANCE_ macro calls to RETRO_PERFORMANCE
2013-12-17 19:14:57 +01:00
twinaphex
38d785984f
Add RETRO_ENVIRONMENT_GET_PERF_INTERFACE to libretro.h
2013-12-17 19:10:40 +01:00
Themaister
6031590cd3
Add OPENGLES3 context support in libretro GL.
2013-12-13 14:20:49 +01:00
Themaister
977cec1378
Refactor keyboard event callbacks.
...
Go through input/keyboard_line.c to better hide internal logic
regarding keyboard line input.
2013-12-10 19:39:09 +01:00
Themaister
40861aa17d
Handle modifiers in Win32 keyboard.
2013-12-09 14:35:43 +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
Themaister
07e3c7f7fa
Use input context in xvideo and xegl.
2013-12-08 14:42:03 +01:00
Themaister
205f8ce90d
Start implementing UTF-8 keyboard handling for X11.
2013-12-08 14:20:05 +01:00
Themaister
b809a59720
Fix mod-handling in X11.
2013-12-08 01:09:00 +01:00
Tobias Jakobi
87843d607d
video_omap: add font rendering for ARGB8888 framebuffer
...
In constrast to the RGB565 code, this here is only compile tested.
2013-12-07 23:56:04 +01:00
Tobias Jakobi
b77171f350
video_omap: add font rendering for RGB565 framebuffer
2013-12-07 23:56:04 +01:00
Tobias Jakobi
a5352f706c
video_omap: convert a TODO into comment
2013-12-07 23:56:04 +01:00
Tobias Jakobi
96f73a5cb8
video_omap: implement disabling of vsync
2013-12-07 23:56:04 +01:00