Commit Graph

2615 Commits

Author SHA1 Message Date
twinaphex a8fd98e6dc Rename 'abs' local variable to 'absolute' 2014-10-21 01:09:24 +02:00
twinaphex c699a7683e (video_thread_wrapper.c) Rename thread_frame variable to thr_frame 2014-10-21 00:26:53 +02:00
twinaphex 85ae740ec6 (gfx/gl.c) Rename index parameter variable 2014-10-21 00:16:48 +02:00
twinaphex ef27b31c9f print_buf was unused in shader_gl_cg.c - so get rid of it 2014-10-20 23:22:16 +02:00
twinaphex c3349004ad Change index variable to 'idx' 2014-10-20 22:58:31 +02:00
twinaphex 42bb37816e Take file_path.h include out of file.h 2014-10-20 21:51:04 +02:00
twinaphex 49bffb85db (video_thread_wrapper.c) see prior commit msg 2014-10-20 20:20:12 +02:00
Twinaphex 564467abe9 (CoreText) Add to AUTHORS 2014-10-20 19:41:39 +02:00
Twinaphex eb0d1e4116 (CoreText) iOS cannot use ApplicationServices/ApplicationServices.h
header
2014-10-20 19:37:41 +02:00
twinaphex 059ed8fb07 (Shaders) Rename index variables 2014-10-20 19:27:32 +02:00
twinaphex a82c4db39a (CoreText) Now compiles on OSX 10.6/Xcode 3.2.5 - CoreText/CoreText.h
header didn't exist there
2014-10-20 19:09:09 +02:00
twinaphex f9841f2b0b (CoreText) OSX 10.6 requires this header be included 2014-10-20 04:30:39 +02:00
twinaphex 4cfa7f3947 License glsym properly 2014-10-20 01:50:57 +02:00
Jay McCarthy 1f788543e7 Adding CoreText font driver for iOS and OS X
The font path settings should be changed to support entering a font
name on these platforms and potentially working with the front-end to
get a list of possible names.
2014-10-18 20:20:55 -04:00
Twinaphex 03fb979730 (video_thread_wrapper.c) Fix 'declaration shadows local variable' 2014-10-14 22:16:01 +02:00
Twinaphex d59074d9c8 (video_thread_wrapper.c) Fix 'declaration shadows global variables' 2014-10-14 19:04:42 +02:00
Twinaphex 40f97cde13 (gl_common.c) Fix declaration shadows a variable in global scope warning 2014-10-14 18:30:22 +02:00
Twinaphex 4fb4ad8a1e (fonts.c) Fix 'declaration shadows a global variable' warning 2014-10-14 18:28:22 +02:00
Twinaphex f7d30b775f (Shaders) Fix 'declaration shadows a variable in local scope' warnings 2014-10-14 18:26:28 +02:00
Toad King 0af2abed74 fix resolution changes not appearing until applied in GX 2014-10-12 21:10:17 -05:00
twinaphex 54d130838a More name uniformity in font renderer implementation functions 2014-10-08 18:19:05 +02:00
twinaphex 1cee15a118 Uniquely name each static function for GLX context driver 2014-10-08 18:12:18 +02:00
twinaphex 8cbeeab39f Create unique names for context driver static functions - needed
for Griffin builds
2014-10-08 18:09:01 +02:00
twinaphex f30042ff03 If video driver/video context driver doesn't support windowed mode,
then treat RARCH_CMD_FULLSCREEN_TOGGLE as no-op
2014-10-08 17:30:05 +02:00
twinaphex bcd5f8aa5b Add has_windowed to video driver and graphics context driver 2014-10-08 17:23:02 +02:00
twinaphex f9da3f37c4 Avoid usage of term 'emulator' 2014-10-08 04:56:09 +02:00
aliaspider 0089087777 stop using thr->frame.within_thread for thread_set_osd_msg.
TODO: find a more reliable way to determine if the calling thread is the
video driver thread or not.
2014-10-08 03:02:04 +01:00
Twinaphex 931bc28236 (Null gfx context driver) Prevent excess elements when HAVE_EGL is not defined 2014-10-07 16:49:56 +02:00
twinaphex 76d24cc42b (GL) Get rid of some unnecessary conditionals now that context driver
is at the very least set to a null driver
2014-10-07 14:33:45 +02:00
twinaphex 3603a56c01 Add null gfx context driver 2014-10-07 14:31:10 +02:00
Mike Robinson b5bd6f8d20 Fix segfault on invalid graphics context driver
Last element of gfx_ctx_drivers[] is NULL, don't dereference it.
2014-10-07 04:36:39 +01:00
twinaphex 587cacb644 (GL) Don't pass shader pointer variable around 2014-10-06 17:08:42 +02:00
twinaphex 8dc4f66c06 Check if gl->ctx_driver is non-NULL first in gl_frame 2014-10-06 16:59:21 +02:00
twinaphex 156ffc2c41 (GL) Don't use local pointer variable for ctx_driver 2014-10-06 16:48:06 +02:00
aliaspider a30ca8a082 (Lakka) fix texture loading when video_threaded is set to 'true' 2014-10-06 02:41:53 +01:00
twinaphex 4cf03811ea (GLSL) Make gl_glsl_num more robust 2014-10-04 22:24:14 +02:00
SuperrSonic 482854f217 Connect Deflicker to config 2014-10-04 01:09:30 -04:00
SuperrSonic 7a936f9719 Removed specific viWidth for 16:9 mode, not needed anymore 2014-10-03 20:31:52 -04:00
Twinaphex 1ea548d068 Merge pull request #1084 from aliaspider/master
(PSP) fix aspect ratio/viewport/rotation settings.
2014-10-04 00:45:29 +02:00
aliaspider 9985bbf30f (PSP) fix aspect ratio/viewport/rotation settings. 2014-10-03 23:22:44 +01:00
twinaphex 6214e8e211 (360) Build fixes 2014-10-03 22:26:29 +02:00
Twinaphex d029362dd7 (GL) Make gl_alive more robust 2014-10-03 17:17:18 +02:00
twinaphex 71fd3aa6b4 (Android) Build fix 2014-10-03 16:34:15 +02:00
twinaphex 3f900424ca (GL) Minor tweaks 2014-10-03 14:16:34 +02:00
twinaphex 7a6ee6a300 Get rid of MODE_MENU_HD too -g_extern.lifecycle_state can now
be used for 'injecting' button presses (i.e. libretro button presses
and/or meta button presses)
2014-10-02 21:57:01 +02:00
twinaphex c1a75ec68a Get rid of MODE_MENU_WIDESCREEN 2014-10-02 21:45:09 +02:00
twinaphex 54bfe360c6 Move ifndef HAVE_GCMGL checks outside of gl.c and into
shader_gl_cg.c - also implement stub glGenerateMipmapOES
for GCMGL
2014-10-02 21:09:34 +02:00
twinaphex a844c3997a (GL) Get rid of some more _func macros 2014-10-02 15:43:11 +02:00
twinaphex ca004c370c (HLSL) Cleanup hlsl_filter_type too 2014-10-02 15:25:51 +02:00
twinaphex 4c6fa4f059 (Cg/GLSL) Cleanups to filter_type implementation 2014-10-02 15:25:01 +02:00
twinaphex e7e441d32d Rename shader_cg.c to shader_gl_cg.c 2014-10-02 15:19:21 +02:00
twinaphex b22cf18228 (GL/Shaders) Put fixed-function vertex/matrix coord code inside shader
backend files as fallback routines
2014-10-02 15:17:21 +02:00
twinaphex 53c7bf65ed Turn fixed-function vertex coord/matrix code into macros 2014-10-02 14:50:24 +02:00
twinaphex aed7afb31d Move gl_shader_set_coords from gl.c to gl_common.c 2014-10-02 14:20:50 +02:00
twinaphex 7e2dd769e9 (GL) Simplify gl_shader_set_coords 2014-10-02 14:13:08 +02:00
twinaphex 59be30825c (GL) Do away with most of the checks for 'shader' now that shader
will never be NULL
2014-10-02 14:05:11 +02:00
twinaphex 4fbbb8aa2f (GL) Always have gl->shader point to a valid driver (including nullshader) 2014-10-02 13:47:45 +02:00
twinaphex 64c2305017 Add 'ident' to shader driver - add shader context functions 2014-10-02 13:42:40 +02:00
twinaphex 6c675e6580 Create gfx/gl_common.c 2014-10-02 13:32:42 +02:00
twinaphex b2f6a025c8 Create shader_gl_common.c 2014-10-02 13:27:35 +02:00
twinaphex 6b054da299 Rename shader_common to shader_context 2014-10-02 13:21:45 +02:00
twinaphex 75be6ccec9 (GL) Turn gl_set_projection into a static function too 2014-10-02 12:57:01 +02:00
twinaphex c574025370 (GL) Make gl_deinit_fbo a static function again 2014-10-02 12:55:19 +02:00
twinaphex 486dc3adec Get rid of shader_cg.h header 2014-10-02 12:50:27 +02:00
twinaphex dd506443e9 gl_set_shader - don't set shader backend to 'null shader driver'
if shader type cannot be determined
2014-10-02 12:15:14 +02:00
twinaphex f1c9343285 (GL) Make gl_init_fbo a static function again 2014-10-02 12:14:12 +02:00
twinaphex 89e449cc86 Get rid of header dependencies on GL in shader_common.h 2014-10-02 11:27:11 +02:00
twinaphex 039a5d7ab3 Create shader_null.c and make shader_backend less dependent
on GL
2014-10-02 11:11:34 +02:00
twinaphex 2e4352dea4 (GL) Pass shader pointer to gl_frame_fbo 2014-10-02 10:45:20 +02:00
twinaphex 475283a35f (GL) Grab pointer to shader first 2014-10-02 10:39:13 +02:00
twinaphex 6316876ad3 (GL) Cleanup gl_shader_set_coords 2014-10-02 10:34:52 +02:00
twinaphex a1260e05bd (GL) Some further cleanups 2014-10-02 10:27:36 +02:00
twinaphex cc174d041c (GL) Get rid of context_destroy_func macro 2014-10-02 10:24:41 +02:00
twinaphex 2637c45b9a (GL) gl_common.h - get rid of some macros 2014-10-02 10:21:36 +02:00
twinaphex 1b45023528 Move get_alignment inlined function to gfx/gl.c 2014-10-02 01:11:01 +02:00
twinaphex 33398a550b (py_state.c) Indenting - style nits 2014-10-02 01:09:03 +02:00
twinaphex c861b4f994 Move gl_wrap_type_to_enum to gfx/gl.c 2014-10-02 01:02:13 +02:00
twinaphex 306d1f8809 (GL/Gfx) Cleanup 2014-10-02 00:49:38 +02:00
twinaphex ca12482af0 Move shader files to gfx/shader/ 2014-10-02 00:45:11 +02:00
twinaphex 2afcb61f37 (GL) Turn set_texture_coords into macro 2014-10-02 00:35:01 +02:00
twinaphex da42ab2ad5 (GL) Style nits pt. 2 2014-10-01 23:53:18 +02:00
twinaphex 7ae81daba9 (GL) Style nits 2014-10-01 23:50:58 +02:00
twinaphex 3a2f3755ad Rename some files 2014-10-01 23:27:52 +02:00
twinaphex 43c9948087 (GL) Prevent memcpy on gl->tex_coords 2014-10-01 20:37:52 +02:00
twinaphex 7812e06479 (GL) Refactors pt. 3 2014-10-01 20:06:40 +02:00
twinaphex 52d7ac54ec (GL) Refactors pt. 2 2014-10-01 19:34:55 +02:00
twinaphex e7e43a5c59 (GL) Refactors pt. 1 2014-10-01 18:23:02 +02:00
twinaphex a0dabeb4ac (GL) Optimization to gl_copy_frame 2014-10-01 17:15:02 +02:00
twinaphex d982350702 (GL) Cleanups/refactoring 2014-10-01 16:59:43 +02:00
twinaphex 9fc34b6d2d video_thread_wrapper.c - use PATH_MAX sizes for chars 2014-10-01 16:25:14 +02:00
Twinaphex 9393cc5ca5 Merge pull request #1071 from aliaspider/master
add set_osd_msg to the threaded video driver
2014-10-01 16:24:22 +02:00
aliaspider 5df633b577 add set_osd_msg to the threaded video driver 2014-10-01 15:18:17 +01:00
twinaphex e0f1696b04 (freetype) refactor freetype.c 2014-10-01 15:51:23 +02:00
twinaphex 93c55879a8 gl_font.c - rename gl_data to video_data 2014-10-01 15:31:52 +02:00
twinaphex f6dabba9a9 (PS3/Griffin) Prevent namespace conflicts with Griffin 2014-10-01 15:13:20 +02:00
Twinaphex 807818d4c6 (Apple) Reimplement input - get rid of g_current_input_data global
and instead initialize driver.input_data
2014-09-30 15:44:40 +02:00
twinaphex a01d349227 Add note to gl_wrap_type_to_enum 2014-09-28 17:19:54 +02:00
twinaphex 6200641ccf Take out DONT_HAVE_BITMAPFONTS 2014-09-25 06:54:40 +02:00
twinaphex 00e605d9ba Take out MODE_MENu - and introduce g_extern.is_menu 2014-09-25 06:33:28 +02:00
twinaphex 395e2ed756 Add "Force-disable sRGB FBO" option for buggy Intel OpenGL drivers
on Windows - should hopefully fix messed up colors with it enabled (untested)
2014-09-21 05:23:51 +02:00
Lioncash 1c62c36e3b shader_parse: Fix missing enum identifier warning 2014-09-20 22:07:52 -04:00
twinaphex 29d533773c rpng.c - cleanup 2014-09-16 06:18:51 +02:00
Higor Eurípedes 1331e50bf2 (d3d_ctx.cpp) Add HAVE_EGL check 2014-09-15 21:16:36 -03:00
twinaphex bbcf2e5eda (Menu) Implement stub functions for shader manager functions in menu_common_backend.c 2014-09-15 21:54:03 +02:00
twinaphex 2833ca7276 Use config_file_userdata for gfx_filter 2014-09-15 21:32:15 +02:00
Lioncash f8499aa71a Sanitize against NULL in some free-like functions. 2014-09-15 09:30:27 -04:00
twinaphex 8caf16a538 (WGL) Build fix 2014-09-14 19:30:44 +02:00
twinaphex a752db392f Revert "Do life cycle state checking outside of graphics driver for"
This reverts commit 06bea05634.
2014-09-14 07:53:18 +02:00
twinaphex 295434151b (D3D) Change dir to gfx/d3d 2014-09-14 06:45:47 +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
twinaphex 06bea05634 Do life cycle state checking outside of graphics driver for
menu display driver's 'frame' function
2014-09-14 06:02:05 +02:00
twinaphex 259d75fa6e (GLUI) Fix Savestate load/save and resume 2014-09-14 05:57:53 +02:00
Lioncash 3912b3fee4 retroarch_logger: Append the calling function name to the log message.
Makes tracing back a little easier.
2014-09-13 20:02:53 -04:00
Lioncash 495ed9de99 gfx_common: Make gfx_init_dwm a boolean function
Also fixes a bug where inited would be set to true, even if initialization had failed. I don't think it really matters in this case, however if this changes and is called twice for some reason in the future, it won't falsely assume it's already initialized.
2014-09-13 18:03:15 -04:00
twinaphex 9fd2c64426 (D3D) Change references to pointers 2014-09-13 22:25:30 +02:00
twinaphex 478074c557 (XDK) Take out 'vsync' variable from driver 2014-09-13 22:09:36 +02:00
twinaphex 3369d15f93 (360) SetTransform not supported on 360 2014-09-13 22:07:00 +02:00
twinaphex 397dd132b4 Move font variable to d3d_w32_font.cpp 2014-09-13 21:59:11 +02:00
twinaphex 78492f238a (D3D) Add d3d_set_transform 2014-09-13 21:50:23 +02:00
twinaphex 5f48e85b65 (D3D) Create d3d_clear 2014-09-13 20:09:55 +02:00
twinaphex 22dd54e1f5 (D3D) Create d3d_vertex_buffer_unlock 2014-09-13 19:56:52 +02:00
twinaphex 548c04bd1b (XDK1) use d3d_vertex_buffer_lock for texture_image_render 2014-09-13 19:47:57 +02:00
twinaphex 45fc487b95 Change d3d_wrapper.c to d3d_wrapper.cpp 2014-09-13 19:40:12 +02:00
twinaphex f3cd7f8fe4 (D3D) Create d3d_vertex_buffer_lock 2014-09-13 19:33:06 +02:00
twinaphex 1d142c3b58 (D3D) renderchain_free forward decl. only needed for Xbox 1
for now
2014-09-13 19:17:07 +02:00
twinaphex 0ae0a65189 (XDK) Build fix 2014-09-13 19:12:56 +02:00
twinaphex c558b48ff5 (D3D) Move D3DTexture_LockRect to d3d_texture_blit 2014-09-13 19:11:36 +02:00
twinaphex 7366b43588 (D3D) Set vertex_buf / texture pointer to NULL at end of wrapper
functions
2014-09-13 18:57:12 +02:00
twinaphex 548d9fea6c (render_chain_xdk) Use wrappers for freeing textures and vertex
buffers
2014-09-13 18:55:35 +02:00
twinaphex 91cc31dc98 (Xbox 1) Build fix 2014-09-13 18:53:19 +02:00
twinaphex b14fac1437 (360) Clean up warning 2014-09-13 18:45:13 +02:00
twinaphex 152dd2e073 (D3D) Build fixes 2014-09-13 18:44:04 +02:00
twinaphex c0f9c4ec41 (D3D) Go through d3d_texture_new 2014-09-13 18:42:43 +02:00
twinaphex 978cc49563 (D3D) Build fix 2014-09-13 18:37:31 +02:00
twinaphex 82e7112f41 (D3D) Use d3d_texture_new 2014-09-13 18:36:35 +02:00
twinaphex ea1c220ea5 (D3D) Build fix 2014-09-13 18:26:43 +02:00
twinaphex 27ea47ee6d (D3D) Rewrite renderchain_add_lut 2014-09-13 18:25:31 +02:00
twinaphex 6f05da2208 (D3D) Cleanups - only go through d3d_vertex_buffer_new 2014-09-13 18:22:56 +02:00
twinaphex 633c05d677 (D3D) Start going through d3d_texture_free/d3d_vertex_buffer_free 2014-09-13 18:17:34 +02:00
twinaphex 0b5a9a244c (D3D) Create d3d_vertex_buffer_free/d3d_texture_new/d3d_texture_free 2014-09-13 18:11:15 +02:00
twinaphex 138541f6cc (image_xdk1.c) Use d3d_vertex_buffer_new 2014-09-13 17:58:38 +02:00
twinaphex c4b35fb00d (D3D) Rewrite create_vertex_buffer wrapper function 2014-09-13 17:56:33 +02:00
twinaphex 0de251079a (D3D) Pass 'Pass' and 'LinkInfo' by pointer instead of reference 2014-09-13 17:33:58 +02:00
twinaphex 0a85e95d0d (D3D) xdk_defines - cleanups 2014-09-13 08:10:53 +02:00
twinaphex 25b60fc0ca (D3D) Merge big included files into d3d.cpp 2014-09-13 08:06:01 +02:00
twinaphex 8572e3bc6e (D3D) Some fixes to render_chain.cpp and d3d_wrapper.c 2014-09-13 05:45:49 +02:00
Lioncash 085a74d33f gl: Silence a possible null dereference warning 2014-09-12 22:41:30 -04:00
Higor Eurípedes 95193c20e0 (gl_raster_font.c) Fix warning 2014-09-12 22:57:24 -03:00
Higor Eurípedes 81ff623957 (gl_font_renderer_t) Add get_glyph() function pointer 2014-09-12 22:39:29 -03:00
Lioncash 6e63859e0e state_tracker: Guard against a possible calloc failure and fix state_tracker_free
Checks if the passed in tracker is actually valid before attempting to free its members.
2014-09-12 19:27:20 -04:00