twinaphex
b7c41c9fcd
Remove gfx_ctx_show_mouse
2016-02-13 18:29:07 +01:00
twinaphex
8721c857e9
Add GFX_CTL_SET
2016-02-13 18:27:05 +01:00
twinaphex
6a697ef2e1
GFX_CTL_SHOW_MOUSE added
2016-02-13 17:48:25 +01:00
twinaphex
425a290ced
Remove gfx_ctx_destroy
2016-02-13 16:33:38 +01:00
twinaphex
ef1b0b0965
Add GFX_CTL_UPDATE_WINDOW_TITLE
2016-02-13 08:50:22 +01:00
twinaphex
f079ca29e4
Add GFX_CTL_HAS_WINDOWED
2016-02-13 08:37:10 +01:00
twinaphex
752e9abd4e
Add GFX_CTL_SWAP_BUFFERS
2016-02-13 08:33:33 +01:00
twinaphex
0a7c481ff0
Create GFX_CTL_FOCUS
2016-02-13 08:29:58 +01:00
twinaphex
fab6c9b8c4
Add GFX_CTL_FREE
2016-02-13 08:26:54 +01:00
twinaphex
863b5306f8
CLeanups
2016-01-25 00:06:08 +01:00
twinaphex
54f46f4ee3
Update headers
2016-01-10 04:41:52 +01:00
twinaphex
c2d7cbe18b
Use string_is_empty
2015-12-26 07:59:15 +01:00
vanfanel
36d079f104
fixed segfault on exit caused by gl driver trying to free font context driver when osd mesages were disabled
2015-12-25 05:47:47 +01:00
vanfanel
886acba67f
fixed segfault when osd message rendering was disabled
2015-12-25 05:27:28 +01:00
twinaphex
f53711f791
Change return type of load_texture to uintptr_t
2015-12-20 22:38:18 +01:00
twinaphex
6362c86c31
Buildfixes
2015-12-20 21:08:03 +01:00
twinaphex
aa488dda25
Create video driver poke load_texture / unload_texture
2015-12-20 20:52:23 +01:00
twinaphex
6feff79547
(GL) Store major/minor version
2015-12-13 14:55:19 +01:00
twinaphex
b7988a33fe
shader_driver_ctx_init_first renamed
2015-12-09 08:45:55 +01:00
Higor Eurípedes
9e90efacbb
(videocore) Convert to new egl common api
2015-12-08 17:33:59 -03:00
Higor Eurípedes
c257374dcd
(video_context_driver) Make better use of the data argument in context calls
2015-12-08 12:19:08 -03:00
twinaphex
c614118ed8
Move context_bind_hw_render inline function to gl.c
2015-12-08 09:44:19 +01:00
twinaphex
75f10bfcdb
Remove unused variable
2015-12-08 09:33:36 +01:00
twinaphex
df60523f6c
Move current_shader pointer to video_shader_driver.c
2015-12-08 09:27:25 +01:00
twinaphex
99ea0095a3
Create RARCH_MENU_CTL_FRAME
2015-12-06 18:28:37 +01:00
twinaphex
18ab12ab83
Take header include record_driver.h out of driver.h
2015-12-05 16:12:29 +01:00
twinaphex
736f343d9f
Create RARCH_MENU_CTL_IS_ALIVE
2015-12-05 13:49:34 +01:00
twinaphex
2f29d9f18c
Take out menu/menu_driver.h include from driver.h
2015-12-05 13:22:50 +01:00
twinaphex
988162ed62
Cut down on code duplication
2015-12-05 11:29:06 +01:00
twinaphex
5f27366cb3
Expand font_driver_init_first
2015-12-05 11:18:05 +01:00
twinaphex
a26e64e24d
Expand font_driver_free
2015-12-05 10:54:53 +01:00
twinaphex
e196fdf141
font_driver_render_msg - make it possible to pass special font data
2015-12-05 10:49:28 +01:00
twinaphex
89721b8837
Start creating font driver wrapper functions
2015-12-05 10:31:15 +01:00
twinaphex
e735f84baa
Refactor shader subsystem
2015-12-05 07:33:32 +01:00
twinaphex
ab3f0f0652
Create remaining video_shader_driver_* functions
2015-12-04 16:45:38 +01:00
twinaphex
6d37cfc2fb
Create video_shader_driver_get_prev_textures
2015-12-04 16:34:58 +01:00
twinaphex
a2da59ac9b
Create video_shader_driver_set_coords and video_shader_driver_set_mvp
2015-12-04 16:33:07 +01:00
twinaphex
827b3cc89b
Create video_shader_driver_num_shaders
2015-12-04 16:19:12 +01:00
twinaphex
0ed77247a8
Create video_shader_driver_mipmap_input
2015-12-04 16:16:40 +01:00
twinaphex
c8f2ef7734
Create video_shader_driver_get_ident
2015-12-04 16:05:42 +01:00
twinaphex
1956dffe9b
Create video_shader_driver_use
2015-12-04 16:01:09 +01:00
twinaphex
bdf099a19c
Create video_shader_driver_deinit
2015-12-04 15:56:36 +01:00
twinaphex
de555d6040
Replace all instances of shader->init
2015-12-04 15:54:10 +01:00
twinaphex
3f6540dd58
Start using video_shader_driver_init for D3D too
2015-12-04 15:53:02 +01:00
twinaphex
11109a198b
Create video_shader_driver_init
2015-12-04 15:50:40 +01:00
twinaphex
e73224c5c2
Get rid of superfluous log
2015-12-03 23:24:54 +01:00
twinaphex
eda3e06898
(GL) Guard against possible segfaults in threaded video mode
2015-12-03 23:16:37 +01:00
twinaphex
beb01b5d57
Create gl_init_textures_reference
2015-12-03 22:42:54 +01:00
Twinaphex
96da691728
Revert "Revert "(gl) Fix gl->should_resize being always true""
...
This reverts commit d35840ebcd
.
2015-12-01 07:15:06 +01:00
Twinaphex
d35840ebcd
Revert "(gl) Fix gl->should_resize being always true"
...
This reverts commit 0f339caf30
.
2015-12-01 04:58:47 +01:00
Higor Eurípedes
0f339caf30
(gl) Fix gl->should_resize being always true
2015-11-30 21:32:32 -03:00
twinaphex
0db7cda264
Start moving rewind code to rewind.c
2015-11-30 22:25:13 +01:00
twinaphex
9824eb7ea9
Rename rarch_main_ctl to runloop_ctl
2015-11-30 21:42:59 +01:00
twinaphex
4e333302ae
Rename RARCH_MAIN_CTL* to RUNLOOP_CTL*
2015-11-30 21:35:50 +01:00
twinaphex
1c867cedf0
Move nonblock_state to input_driver.c (NOTE: we probably need
...
to relocate this later on)
2015-11-29 17:53:11 +01:00
Higor Eurípedes
9bc10fef7a
(gl) Fix invalid enum error
2015-11-27 21:53:31 -03:00
Higor Eurípedes
428bc30a61
(gl) Add checks for full npot support
2015-11-27 21:21:23 -03:00
twinaphex
516422b1d1
Build fix
2015-11-24 00:23:32 +01:00
twinaphex
a3e52a9369
Put M_PI inside retro_miscellaneous.h
2015-11-24 00:05:37 +01:00
twinaphex
deae90e0bb
Move use_rgba to gfx/video_driver.c - get rid of driver_t dependencies
2015-11-23 23:58:40 +01:00
twinaphex
6f18656baa
driver->video_context should be self-contained now to video_context_driver.c
2015-11-23 21:20:21 +01:00
twinaphex
beceaf4a8c
Merge video_pixel_converter.c with video_driver.c
2015-11-23 13:02:24 +01:00
twinaphex
86504392b9
Create video_driver_set_size
2015-11-23 12:54:15 +01:00
twinaphex
892d99b3a6
Add SET_VIEWPORT_CONFIG
2015-11-21 13:13:55 +01:00
twinaphex
806c124eae
Merge video_viewport.c and video_driver.c
2015-11-21 13:01:23 +01:00
twinaphex
5b44bd0e6b
Create RARCH_DISPLAY_CTL_SET_VIEWPORT_SQUARE_PIXEL
2015-11-21 12:54:38 +01:00
twinaphex
4db97a5300
Refactor away video_viewport_set_core
2015-11-21 12:45:36 +01:00
twinaphex
6286e4b74c
Add RARCH_DISPLAY_CTL_CACHED_FRAME_RENDER
2015-11-20 15:34:10 +01:00
twinaphex
66c15314e2
Get rid of some header files
2015-11-19 08:56:08 +01:00
twinaphex
a3a5a82d47
(GL) doesn't access global state anymore
2015-11-18 03:08:19 +01:00
twinaphex
1ef9601966
Revert "(GL) Cleanups"
...
This reverts commit 36d5cc890b
.
2015-11-14 05:27:44 +01:00
twinaphex
36d5cc890b
(GL) Cleanups
2015-11-10 15:32:07 +01:00
twinaphex
ed35db13e8
Fix some linking errors with CXX_BUILD
2015-11-09 05:23:11 +01:00
twinaphex
7e207626ad
(gl.c) Add video_texture.h header include
2015-11-09 02:08:40 +01:00
twinaphex
df01279cf3
Add non-HAVE_MENU ifdefs
2015-10-28 00:55:11 +01:00
twinaphex
2b9e5539fb
Add another HAVE_FBO ifdef
2015-10-11 16:54:01 +02:00
twinaphex
6683ab16ef
(GL) Add HAVE_FBO ifdef around FBO feedback code
2015-10-11 16:53:18 +02:00
twinaphex
a61104dba3
Create video_shader_scale
2015-10-07 18:18:49 +02:00
twinaphex
e986b9e42a
Static code analysis cleanups
2015-09-29 17:35:28 +02:00
twinaphex
0cc56e2a1a
More static code analysis nits
2015-09-28 18:44:28 +02:00
twinaphex
631da50dfa
More static code analysis nits
2015-09-28 18:22:27 +02:00
twinaphex
4ca5d31f9b
Some more static code analysis nits when ran with enable=all
2015-09-28 18:12:02 +02:00
twinaphex
0d18c61bc5
Add RARCH_MAIN_CTL_IS_PAUSED
2015-09-26 13:04:07 +02:00
twinaphex
cc4a918296
Create rarch_main_ctl
2015-09-26 12:58:02 +02:00
twinaphex
b9ba75403e
(GL) Fix mixe code declaration (for C89_BUILD)
2015-09-21 11:50:02 +02:00
twinaphex
2b840c0384
Refactor perf counters
2015-09-20 10:02:59 +02:00
twinaphex
bbe210f7eb
C89_BUILD fixes
2015-09-06 23:43:27 +02:00
Twinaphex
d5f72ca9c1
remove unused variables
2015-08-30 18:45:02 +02:00
Twinaphex
e8d266cb9d
Revert "Revert "Add support for shader pass feedback.""
2015-08-30 18:37:41 +02:00
Twinaphex
ad1825ca50
Revert "Add support for shader pass feedback."
2015-08-30 18:21:07 +02:00
CautiousAlbino
aee5e74001
Add support for shader pass feedback.
2015-08-30 16:23:55 +02:00
Twinaphex
5bafed71ea
removed unused variables
2015-08-05 13:09:11 +02:00
twinaphex
b18442dc5a
Refactor is_slowmotion
2015-08-05 13:06:44 +02:00
twinaphex
ccac72f1e7
Refactor is_paused
2015-08-05 12:58:25 +02:00
twinaphex
0c023dcb68
Reimplement frame count
2015-08-03 23:01:07 +02:00
twinaphex
bd6ee135e9
Take out runloop_t dependencies
2015-08-03 20:03:14 +02:00
twinaphex
218f52c5bf
Minor nits
2015-07-21 01:45:32 +02:00
twinaphex
4b8e65322c
Rename gl_tex_info to gfx_tex_info
2015-07-12 04:16:40 +02:00
twinaphex
4c1562fb70
Rename gl_fbo_rect to gfx_fbo_rect
2015-07-12 04:04:56 +02:00
twinaphex
55054f257a
Rename gl_ortho to gfx_ortho
2015-07-12 04:00:25 +02:00
twinaphex
c3f5ea0fcc
Make input_overlay.h no longer depend on RPNG image
2015-07-11 08:14:39 +02:00
Higor Eurípedes
890417a581
(gl.c) Fix taking screenshots from GLUI/XMB
2015-07-01 18:46:39 -03:00
twinaphex
3fd11686cb
(gl.c) Refactor
2015-06-30 19:07:53 +02:00
Alcaro
febcbc5ce4
C89 cleanups part 2
2015-06-26 17:48:43 +02:00
twinaphex
682867b9a1
MAX_SHADERS should only be defined in gl_common.h
2015-06-22 21:09:18 +02:00
twinaphex
7197b58ed6
(gfx/drivers) Cleanups
2015-06-13 02:49:29 +02:00
twinaphex
70fc26677d
Define GL_SYNC_ defines if not available
2015-06-02 17:31:43 +02:00
twinaphex
cf2c0f6930
Rename rarch_render_cached_frame to video_driver_cached_frame
2015-05-20 21:06:44 +02:00
twinaphex
d8622e0a92
(GL) Prevent unused variable warning
2015-05-20 20:01:29 +02:00
twinaphex
a81baed9e2
Move hw_render_callbakc to video driver state and take it out
...
of global state
2015-05-20 19:56:12 +02:00
twinaphex
679feefae3
Start using const for non-mutating variables
2015-05-20 19:28:05 +02:00
Twinaphex
d33cad3381
(GL) Take out unused global variable
2015-05-20 18:57:57 +02:00
twinaphex
a053b41223
Create video_viewport_get_system_av_info and video_viewport_get_custom -
...
move custom viewport and system av info outside of global state
2015-05-20 18:57:17 +02:00
twinaphex
b255b5a325
Create video_driver_set_aspect_ratio_value and video_driver_get_aspect_ratio
2015-05-20 18:24:45 +02:00
twinaphex
4352cca599
Cleanup last remaining references
2015-05-20 02:40:44 +02:00
twinaphex
23fe7886d2
(GL) GL driver should be free now from global->video_data.width/
...
global->video_data.height dependencies
2015-05-20 02:22:03 +02:00
twinaphex
b573e5f4dc
(GL) Refactor code to no longer use global->video_data.width/global->video_data.height
2015-05-20 02:18:05 +02:00
twinaphex
79db0c2ab5
Start using video_driver_get_size in video drivers
2015-05-20 00:45:42 +02:00
twinaphex
375c49b6c8
Move is_menu out of runloop struct and create get/set functions in menu_driver.c
...
and make the underlying variable static to make it thread-safe
2015-05-19 20:11:57 +02:00
Higor Eurípedes
dfd6d464a8
(gl) Add check in gl_overlay_vertex_geom()
2015-05-19 13:51:59 -03:00
Higor Eurípedes
c5940b32b6
(gl) Remove context switch calls from set_osd_msg
...
It's not needed because this function is always called from the
frontend/menu context. The video driver handles SET_MESSAGE
environment call in the frame() function (msg argument).
2015-05-12 09:36:00 -03:00
twinaphex
7c84232b9f
(GL) Uncomment context_hw_bind_render calls around set_osd_msg again
2015-05-11 22:30:44 +02:00
twinaphex
4d7c2a642d
(GL) Cleanups
2015-05-11 00:20:06 +02:00
Higor Eurípedes
e0dccab5fc
(gl) Dont switch to another context in gl_set_osd_msg()
2015-05-10 16:18:09 -03:00
twinaphex
73d5e8a41b
(PS3) Build fix and fix warnings
2015-05-09 17:53:03 +02:00
twinaphex
945d2851ba
Pass frame_count variable to gl_frame_fbo
2015-05-09 17:41:53 +02:00
Twinaphex
f08db710ac
Kill unused variables
2015-05-09 16:06:05 +02:00
twinaphex
9b9e65abf3
Start using video_driver_get_frame_count
2015-05-09 16:04:12 +02:00
twinaphex
ae408a1d41
Create video_poke get_frame_count function
2015-05-09 15:52:06 +02:00
twinaphex
4ecfe639b3
Create local frame_count variables again in video_drivers
2015-05-09 15:41:10 +02:00
twinaphex
498caabfc7
(GL) Buildfix
2015-05-04 10:03:33 +02:00
twinaphex
5d58d290af
(GL) Improve VideoCore/Raspberry Pi hack
2015-05-04 10:00:32 +02:00
twinaphex
e4cb891ae7
(GL) Pass context identifier to resolve_extensions
2015-05-04 09:37:26 +02:00
Higor Eurípedes
5bfd910cd1
(gl) Fix font rendering when video_font_enable=false
2015-05-02 22:41:59 -03:00
twinaphex
80c5059d43
Revert "(Video) Call gfx_ctx_free from common function - uninit_video_input"
...
This reverts commit aac304410b
.
2015-05-02 22:53:27 +02:00
twinaphex
aac304410b
(Video) Call gfx_ctx_free from common function - uninit_video_input
2015-05-02 05:52:34 +02:00
twinaphex
a9dee4877e
Create set_viewport wrapper function - threaded video mode's
...
set_viewport function does not work yet
2015-04-26 19:46:59 +02:00
twinaphex
b6fbf5a335
(Menu) Start getting rid of gl->win_width/gl->win_height and start
...
creating global->video_data.width and global->video_data.height
which should be used instead in menu drivers
2015-04-26 05:21:43 +02:00
twinaphex
c22535b7e1
Reduce HAVE_FBO ifdefs
2015-04-25 02:35:06 +02:00
twinaphex
44a8b8bcd3
Move font_handle and font_driver ot the driver struct
2015-04-25 00:32:01 +02:00
twinaphex
bd63de9b3a
Replace gl_font_init_first and d3d_font_init_first with common function
2015-04-21 17:33:00 +02:00
twinaphex
8c528bb79a
Rename apple_bind_game_view_fbo to cocoagl_bind_game_view_fbo
2015-04-19 17:42:04 +02:00
twinaphex
27661c8087
Refactor some HAVE_X11/HAVE_EGL code
2015-04-16 22:39:28 +02:00
twinaphex
6bf30bb714
(PS3) Buildfixes
2015-04-14 21:58:39 +02:00
twinaphex
9a3ba16a36
(GL) Cleanup
2015-04-12 22:01:48 +02:00
twinaphex
7fbbac544e
Some C89 build fixes
2015-04-12 19:29:38 +02:00
twinaphex
ffc5ba0980
Make gfx_ctx_get_ptr static
2015-04-10 09:15:25 +02:00
Twinaphex
ced227c214
(gl.c) Cleanups
2015-04-10 09:12:32 +02:00
twinaphex
f65f56fdf4
Go through gfx_ctx_get_video_output wrapper functions
2015-04-10 09:11:17 +02:00
twinaphex
0ef148f460
Go through gfx_ctx_set_video_mode
2015-04-10 09:05:07 +02:00