Themaister
332dc3f38b
Fixup overlay interface for D3D9.
2013-10-21 13:32:05 +02:00
twinaphex
d63ac7e7e2
Convert gfx/scaler to C89-style for loop declarations too
2013-10-19 20:14:39 +02:00
twinaphex
8487cd0204
Start using C89-style for loop initial declarations for
...
reusable code module parts that we reuse in other projects. It's
a huge maintenance burden having to change this stuff around everytime
when compiling in non-C99 mode
2013-10-19 19:39:38 +02:00
Themaister
76c92bb0b4
Rework overlay driver interface.
...
Takes multiple images, each with individual positions, textures, etc.
2013-10-15 16:06:59 +02:00
Lioncash
080436fd23
Remove a redundant if statement in function set_direct_pix_conv in scaler.c. This branch already exists in this if statement chain, see the third else-if statement.
2013-10-13 23:16:12 -04:00
Lioncash
b4e5b6bb71
Fix two memory leaks in function align_program in py_state.c
2013-10-13 23:13:38 -04:00
Lioncash
64da817eec
Fix a memory leak in function gl_init_font in ps_libdbgfont.c
2013-10-13 23:12:12 -04:00
Themaister
05744ca9c7
Fix condition in RPNG.
2013-10-13 10:19:02 +02:00
twinaphex
849cfb680e
Saves 'Show Framerate' setting to config file now too
2013-10-11 01:19:54 +02:00
Themaister
fee10d3d76
Fix OSX/Windows build.
2013-10-08 22:49:50 +02:00
Themaister
ee3b000425
Reapply for BB.
2013-10-08 12:28:38 +02:00
Themaister
f46f26c42a
Revert "(Show FPS) Fix issue with DRM EGL context showing corrupted"
...
This reverts commit 10baf8456d
.
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
twinaphex
c2b55b9974
(XDK) Fix message queue
2013-10-07 23:57:55 +02:00
twinaphex
a18c04ef94
(XDK) Build fix
2013-10-07 23:48:43 +02:00
twinaphex
271e193048
(XDK) Simplify update_window_title
2013-10-07 23:39:45 +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
twinaphex
80079e297b
(GLX) Hook up preliminary onscreen FPS (enabled by setting "Debug
...
Info Messages" in RGUI to ON
2013-10-07 17:11:48 +02:00
twinaphex
48c042d56c
(360) More build fixes
2013-09-29 18:04:56 +02:00
twinaphex
e63639388d
(gl.c) Change define to !define(RARCH_CONSOLE)
2013-09-28 21:57:27 +02:00
twinaphex
c5beaec16c
(RMenu) Make RMenu even more minimalist - fit more text onscreen
2013-09-28 04:14:07 +02:00
twinaphex
4f54fd28a0
(PS3) Forcibly disable float FBO textures for now - was creating
...
all sorts of crashes
2013-09-27 23:04:19 +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
ff793f3fa8
Small cleanup in python state tracker.
...
Removes meta binds. They were completely useless. Add checking for
analogs.
2013-09-23 20:21:03 +02:00
twinaphex
8837139271
(360) Build fixes
2013-09-15 18:49:18 +02:00
meancoot
97c94a6ea7
(OSX/iOS) Refactor RAGameView.m to be more straightforward.
2013-09-13 16:22:04 -04:00
Themaister
3e7f101137
Make sure we're reading from backbuffer.
2013-09-12 22:40:11 +02:00
Themaister
178dc692c7
Do proper rounding in set_viewport.
...
Avoids edge cases where viewport sizes are miscalculated with -1 pixel
due to rounding errors.
2013-09-12 22:23:56 +02:00
Hans-Kristian Arntzen
7d90ff4011
Merge pull request #303 from libretro/emscripten
...
Emscripten/Javascript port
2013-09-11 01:01:29 -07:00
ToadKing
a09dda3a9d
[EMSCRIPTEN] add custom input driver, removes SDL dependency + adds mouse support
2013-09-10 20:21:48 -04:00
Themaister
46c214f964
Small cleanup.
2013-09-07 15:23:09 +02:00
Themaister
870ef37258
Fix libretro GL state bug on frame dupe.
...
Need to force backbuffer and viewport on duped frames.
2013-09-07 15:04:40 +02:00
meancoot
20001489ac
(OSX) Update gfx_context:
...
Now resizes window when asked
Displays proper title in window
No longen prints Cocoa warning at start up
Now supports the pause_nonactive feature
2013-09-05 14:38:40 -04:00
meancoot
cb55a1d45a
(Apple) Reorganize source tree
2013-09-05 01:24:27 -04:00
Themaister
98c9da9dda
Set swap interval correctly in gl_init().
2013-09-02 09:20:51 +02:00
Themaister
b2bf3c12de
Add swap_interval support.
...
Again, mostly useful for 120Hz monitors, and/or playing content which is
a fraction of monitor refresh rate.
2013-09-01 13:20:10 +02:00
Themaister
45cfc584f9
Allow disabling building Win32 "GUI".
2013-08-31 11:43:14 +02:00
Themaister
62c34c7871
Add black_frame_insertion support for 120 Hz monitors.
2013-08-30 09:35:13 +02:00
Themaister
ce026a3ba0
[OpenVG] Fix build.
2013-08-29 18:35:43 +02:00
meancoot
6372e755c4
(OSX) Add proper full screen tracking
2013-08-27 11:37:21 -04:00
ToadKing
c30d0287d1
[EMSCRIPTEN] buildfix, implement detecting canvas size changes
2013-08-25 15:39:50 -04:00
ToadKing
87844cc486
Merge branch 'master' of https://github.com/libretro/RetroArch into emscripten
...
Conflicts:
gfx/gl.c
2013-08-25 15:37:16 -04:00
Themaister
67f4f1b3ed
[WGL] Fix window size calculation.
2013-08-23 17:32:57 +02:00
ToadKing
be08d003c9
[GL] fix OSD messages breaking if one was too long
2013-08-22 23:21:52 -04:00
Themaister
1c4c943604
[Pi] Build fixes.
2013-08-22 22:12:16 +02:00
ToadKing
12f4b48e84
query for OES_EGL_image before trying to load symbol
2013-08-18 03:02:42 -04:00
ToadKing
f4ff5f3ea3
[EMSCRIPTEN] less workarounds due to fixes in emscripten, enable more optimizations
2013-08-18 02:50:10 -04:00
meancoot
a4dfd35ab7
(Apple) Improvements:
...
Add core gl context support on OSX
Add support for multiple game pads on OSX
Remove block on analog input for Player 2-4's game pads
2013-08-16 13:25:35 -04:00
Themaister
8ebd81edbf
Log GL version as well.
2013-08-16 10:18:58 +02:00
Themaister
551fd27204
Add support for wrapping modes.
...
Not terribly useful atm due to POT, but at least it's there.
Has some use mostly with LUTs ... NPOT + REPEAT requires extension on
GLES2 at least.
2013-08-16 00:30:54 +02:00
Themaister
7236e51af0
Clear out GL error on driver init for robustness.
...
In case we used cached GL context, we'd error out
if a single GL error has been generated.
2013-08-14 14:58:12 +02:00
Themaister
4d8e9df03d
Add forced debug context support to WGL.
2013-08-14 14:13:28 +02:00
Themaister
3b1e65ba08
Add GL_DEBUG ifdef which forces full GL debugging.
2013-08-14 14:13:28 +02:00
Themaister
ef1f5d251f
Don't use anti-jitter on consoles.
...
Not compatible.
2013-08-11 15:34:32 +02:00
Themaister
1389a1e37c
Fix compile when GLSL isn't compiled in.
2013-08-11 15:25:04 +02:00
Themaister
b5f46120a3
Use HAVE_PSGL instead.
2013-08-11 15:10:56 +02:00
Themaister
7d942adaa3
Should fix build on PS3.
2013-08-11 15:06:42 +02:00
Themaister
c5e7de7391
Add get_proc_address to OSX/iOS.
2013-08-11 14:10:10 +02:00
Themaister
c19bdc7c2c
Kill some stale code.
2013-08-11 01:24:48 +02:00
Themaister
2b28050c15
Build fixups.
2013-08-11 01:16:08 +02:00
Themaister
70de036440
Revert "Add GL sync support to GLES2."
...
This reverts commit c1bbb6bf89
.
2013-08-11 01:09:10 +02:00
Themaister
47c4428d8e
Add GL sync support to GLES2.
2013-08-11 01:09:10 +02:00
Themaister
301a4aaebf
Add GLES3 header includes.
2013-08-11 01:08:40 +02:00
Themaister
f4a23115c2
Begin adding AUDIO_CALLBACK/FRAME_TIME_CALLBACK.
2013-08-11 01:05:33 +02:00
Themaister
27399deed9
Log vendor/renderer in GL.
2013-08-11 00:57:24 +02:00
Themaister
eb95798016
Style fixups.
2013-08-11 00:57:24 +02:00
Themaister
d3cfe85a19
Add extern "C" to rglgen.h as well.
2013-08-11 00:57:24 +02:00
Themaister
a9df0a230d
Fix CXX_BUILD.
2013-08-11 00:57:24 +02:00
Themaister
c007e5860c
Add extern "C" to glsym headers.
2013-08-11 00:56:53 +02:00
Themaister
26d74be8b8
Disable blending per frame with HW render.
2013-08-11 00:56:53 +02:00
Themaister
335c32d95d
Support creating debug contexts.
2013-08-11 00:56:53 +02:00
Themaister
6b4924c844
Be more conservative about texture memory usage.
2013-08-11 00:56:53 +02:00
Themaister
911558462a
Use core blend correctly when using core context.
2013-08-11 00:56:00 +02:00
Themaister
c71777f5ec
Clear out uniform struct and use stock shader.
2013-08-11 00:56:00 +02:00
Themaister
108d2e5c12
Add fixups for GLfixed.
2013-08-11 00:56:00 +02:00
Themaister
db7d600184
Apply glsym APIENTRY fixups.
2013-08-11 00:56:00 +02:00
Themaister
c2c88e2462
Append checks for OES_image ext.
2013-08-11 00:56:00 +02:00
Themaister
5045fc4a4f
Fix GLSL regression.
2013-08-11 00:56:00 +02:00
Themaister
b292caf92b
Experimental support for PassPrev/PASSPREV.
...
Allows to access passes in a "negative index"
way. Helps stitching together multipass shaders from
other multipass shaders.
Also adds new, cleaner symbols, IN.mvp_matrix, IN.tex_coord, etc.
2013-08-11 00:56:00 +02:00
Themaister
f00394e0af
Add license statement to glgen.py.
2013-08-11 00:56:00 +02:00
Themaister
0b6f92e433
Allow explicitly banning specific exts in glsym.
2013-08-11 00:56:00 +02:00
Themaister
60b7d633a1
Don't append #version if it's already done.
2013-08-11 00:55:05 +02:00
Themaister
94b57197aa
Purge cruft.
2013-08-11 00:55:05 +02:00
Themaister
f8eb0c5a62
Query extensions more explicitly.
2013-08-11 00:55:05 +02:00
Themaister
318b26cc0d
Fix Android build.
2013-08-11 00:55:05 +02:00
Themaister
d64c24248d
Use glsym wrapper in libretro-test-gl.
2013-08-11 00:55:05 +02:00
Themaister
2e397b1d6b
Win32 fixups.
2013-08-11 00:55:05 +02:00
Themaister
e44249b73f
Use glsym symbol loader instead of ugly poking.
2013-08-11 00:54:27 +02:00
Themaister
805e623779
Use 3.1 in libretro-test-gl when CORE is used.
2013-08-11 00:53:46 +02:00
Themaister
9ab274a51a
Use glXSwapIntervalEXT when available instead.
2013-08-11 00:53:46 +02:00
Themaister
913ad7753a
Merge fixes.
2013-08-11 00:53:46 +02:00
Themaister
4e5c6b0f9a
Fix RGUI when using bottom-left.
2013-08-11 00:53:46 +02:00
Themaister
e5abd138ea
More fixes to core context.
2013-08-11 00:53:46 +02:00
Themaister
6df083fc0f
Add support for bottom-left origin in libretro GL.
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
e18af77412
Add path to cache GL context on reinit.
...
If successful, can avoid libretro GL reset context callback being
called.
2013-08-11 00:53:19 +02:00
Themaister
b090f5ab36
Implement WGL core context.
2013-08-11 00:51:05 +02:00
Themaister
e28f5d7cc1
Fix incompatibilities with GL core.
2013-08-11 00:50:38 +02:00
Themaister
b9fce188ea
Initial work on core GL context support.
2013-08-11 00:50:04 +02:00
Themaister
51b17039d4
Completely new approach for threaded video.
...
Allows a good compromise between jitter and avoiding audio stutter.
2013-08-02 23:54:07 +02:00
twinaphex
f7622d3294
Add OMAP graphics driver (Tobias Jakobi)
2013-07-28 18:37:31 +02:00
ToadKing
b01856d166
remove reinit hack, turned out to be an emscripten bug
2013-07-20 00:30:54 -04:00
ToadKing
ff3de25636
fix error on video re-init, other cleanup
2013-07-18 23:58:35 -04:00
twinaphex
627c30b10c
Take out GRIFFIN macro hacks
2013-07-18 19:54:00 +02:00
ToadKing
ace8ead2db
Merge branch 'master' into emscripten
...
Conflicts:
config.def.h
gfx/gfx_context.c
2013-07-17 22:58:14 -04:00
ToadKing
49398698b5
initial emscripten port (no audio/files, input broken)
2013-07-17 20:26:01 -04:00
Themaister
c54af19076
Purge SDL/GL context.
...
Conflicts:
gfx/context/sdl_ctx.c
2013-07-18 01:48:23 +02:00
twinaphex
a5e4b5e7f8
(APPLE) Take out SDL/GL context parts for OSX
2013-07-16 23:17:55 +02:00
twinaphex
119ee6d538
(XDK1) Fix build
2013-07-16 00:47:09 +02:00
twinaphex
63aaa7b2b0
(GL) Log vendor/renderer
2013-07-13 01:47:11 +02:00
meancoot
a0d22d7c44
(Apple) Build fixes (hope I didn't break anything else with that merge)
2013-07-07 16:24:28 -04:00
meancoot
b924302464
Merge branch 'master' of https://github.com/libretro/RetroArch
...
Conflicts:
griffin/griffin.c
2013-07-07 16:20:08 -04:00
meancoot
3d9d672a38
(Apple) On OSX, a call to apple_run_core will actaully run the game
2013-07-07 13:05:05 -04:00
meancoot
99ba3ccea3
(Apple) Start setting up the OSX code
2013-07-06 23:54:47 -04:00
OV2
b9cbcd0b81
win32: add simple menu to opengl context
2013-07-07 02:22:11 +02:00
meancoot
a852da4e88
Start spliting ios port into dual OS X and iOS ports
2013-07-06 18:24:25 -04:00
twinaphex
df6dfb4970
(OSX/iOS) Start renaming ios_ namespace -functions we're going to implement for
...
OSX as well
2013-07-05 04:10:05 +02:00
twinaphex
d215a2a0f5
remove ifdefs around puts PACKAGEVERSION line
2013-07-04 15:06:28 +02:00
twinaphex
77d5190a01
(OSX) Make dummy context file - compile in RetroArch with Griffin
2013-07-04 15:01:38 +02:00
OV2
bfd11dd1a4
win32: add _WIN32_WINNT define for multimon in mingw32
2013-06-20 16:08:39 +02:00
twinaphex
ef2406e8f6
(Android) Another Xperia Play hack
...
(Context) Context file changes to do with FPS reporting
2013-06-16 18:18:47 +02:00
twinaphex
c84750a752
(XDK) Move FPS printing code over to window_update_title function
...
as well
2013-06-14 17:28:53 +02:00
twinaphex
53df912321
(PS3) Move PS3-specific FPS printing code to ps3_ctx.c
2013-06-14 17:21:44 +02:00
twinaphex
1697be1908
(iOS) Build fix
2013-06-14 02:18:48 +02:00
twinaphex
43e6637768
(iOS/QNX) Add FPS/refresh rate monitoring
2013-06-14 02:17:20 +02:00
twinaphex
559c4a7964
(RARCH_CONSOLE) Add refresh rate FPS statistics
2013-06-08 01:45:25 +02:00
Themaister
02264f4d56
Fix Win32 derp.
2013-06-05 22:00:38 +02:00
Themaister
321ffcbca6
Calculate 1:1 PAR from right dimensions.
...
Frame cache can be stale or have awkward dimensions which
don't really reflect 1:1 PAR semantics.
2013-06-05 21:29:52 +02:00
Themaister
6dd0839a01
Use common monitor refresh rate estimator.
...
Ditch custom timing code in KMS.
2013-06-05 18:12:29 +02:00
Themaister
79275b28ff
Fallback when initial shader init fails.
2013-06-05 10:44:27 +02:00
Themaister
1389346cbf
Make sure that palette entries don't exceed max.
2013-06-04 14:26:21 +02:00
Themaister
cb8deab105
Add Adam7 interlacing support to RPNG.
...
Now correctly decodes all basic format and odd size files from:
http://www.schaik.com/pngsuite/
2013-06-04 14:15:29 +02:00
Themaister
9abbd6b279
Support all color/bit formats in RPNG.
...
Only missing adam7 now.
2013-06-04 14:15:29 +02:00
Themaister
7c57563827
Fix RPNG save_image memleak.
2013-06-03 23:02:59 +02:00
Themaister
850ee9696e
Drop broken delay logging in KMS.
...
Didn't serve any purpose anyways.
2013-06-03 01:37:52 +02:00
Themaister
43a6346d26
Adds video_hard_sync_frames.
...
Allows to control the maximum amount of frames that can be queued on
GPU.
2013-05-26 13:43:24 +02:00
twinaphex
20fdda8ca9
(RMenu) Move rewind settings to Settings submenu
2013-05-26 00:32:39 +02:00
Hans-Kristian Arntzen
f5e1db1506
Fix HAVE_EGL in glx_ctx.c
2013-05-23 18:32:13 +02:00
Themaister
503ce7895c
Reset BlendFunc with HW render.
2013-05-22 21:41:10 +02:00
twinaphex
46f29b1178
New define RARCH_MOBILE
2013-05-22 16:02:21 +02:00
Themaister
fb934931bc
Make SDL/GL last prio.
2013-05-21 22:41:59 +02:00
Themaister
b4b83cdf41
Use VBOs in GLSL.
...
Future proof a bit as future GL versions
require use of VBOs. Also avoids spamming client-side
data to GL all the time.
VAOs are not used, but that is only relevant if we actually
create a GL3+ context.
2013-05-21 10:44:25 +02:00
Themaister
b4b669f0e5
Run thread_frame() even when frame = NULL.
...
Fixes RGUI on cores which use duping.
Also avoid redundant frame.lock locking.
If thr->frame.updated is false, the lock
cannot possible be held by thread.
2013-05-19 22:28:32 +02:00
Themaister
12288e9b8c
Avoid potential performance regressions.
...
PSGL uses GL_ARGB_SCE, and not GL_RGBA for one ...
2013-05-19 11:25:56 +02:00
Themaister
18fd41f77e
Avoid Pi hack.
...
Derp. Was configured to low GPU RAM split ...
2013-05-18 22:10:29 +01:00
Themaister
f61cc333e9
Be more explicit about FBO formats.
...
GLES doesn't support 32-bit FBOs.
They seem to only be exposed via OES_rgb8_rgba8 and ARM_rgba8
extensions.
2013-05-18 21:53:26 +02:00
Themaister
c1bd2d25c6
Fix desktop GL build.
2013-05-18 21:23:59 +02:00
Themaister
9406b0a771
More explicit logging of FBO errors.
2013-05-18 16:51:10 +01:00