Commit Graph

165 Commits

Author SHA1 Message Date
Themaister
67724c3413 Add detection of more SIMD instruction sets. 2014-02-16 16:28:19 +01:00
Themaister
e1ada80cc9 Remove redundant ifdef check. 2014-02-11 20:45:59 +01:00
twinaphex
c9e6598603 Expand boolean.h 2014-02-11 07:52:10 +01:00
Themaister
c9854deeec Update libretro.h docs. Fix conditional string check. 2014-02-07 09:32:15 +01:00
AndresSM
0428b44e94 Add RETRO_ENVIRONMENT_GET_SAVE_DIRECTORY 2014-02-07 01:56:41 -05:00
Themaister
22bcb8aeab Clarify SET_MESSAGE. 2014-02-07 00:31:56 +01:00
Themaister
1082e1d74f Rename RETRO_DEVICE_ID_SENSOR* stuff.
It's no longer polled from input_state, so avoid confusion.
2014-01-20 17:16:25 +01:00
Themaister
689aecfec4 Remove RETRO_DEVICE_SENSOR_ACCELROMETER.
Goes through other interface now.
2014-01-20 17:07:13 +01:00
twinaphex
f7915ab55e Change param for get_sensor_input 2014-01-20 14:59:06 +01:00
twinaphex
460670f074 Move sensor value reading to retro_sensor_interface 2014-01-20 14:52:53 +01:00
twinaphex
0a15a17d44 Update years on all license headers 2014-01-01 01:50:59 +01:00
twinaphex
831f708ede performance.c - detect MMX too 2013-12-25 21:34:40 +01:00
twinaphex
204113e389 Add environ callback to expose 'Content Directory' path to core -
and refactor g_settings.rgui_browser_directory
2013-12-25 02:31:35 +01:00
Themaister
44beafcfcb Fix typo. 2013-12-20 12:32:48 +01:00
Themaister
188a233ec8 Add lifetime status callbacks to location interface. 2013-12-20 08:44:38 +01:00
twinaphex
da6e360e49 (Location) Implement horizontal and vertical accuracy - Android's
location API only provides horizontal API but iOS/OSX API supports
both horizontal and vertical. Maybe consider implementing vertical
accuracy for Android by hand later
2013-12-19 17:36:27 +01:00
twinaphex
f0aa0f99fd (Location) Reimplement some parts of the location interface - get_latitude
and get_longitude are gone now in place of get_position. Basically,
from C land we basically do a poll-style queries, but on the
implementation side (ie. Android/iOS/OSX) - they all use callback-based
location updates. So we simply check in the poll function (get_position)
whether position has changed, and if so, update the pointer values and
return true - if not, set them to 0 and return false.
2013-12-19 15:47:47 +01:00
Themaister
855cb54def Some cleanups to location interface.
Avoid three redundant fields in struct.
Use unsigned instead of int for argument for API consistency.
2013-12-19 10:15:55 +01:00
twinaphex
031a9d05be (Location) Environ GET_LOCATION_INTERFACE should be implemented now 2013-12-19 05:51:25 +01:00
twinaphex
ccd2246331 (Apple) Build fixes 2013-12-19 03:16:13 +01:00
twinaphex
bf5d5cb8a2 (Libretro) Commented out macros RETRO_PERFORMANCE_ can now actually work 2013-12-18 20:10:40 +01:00
Themaister
d1f80a38fc Fix typo. 2013-12-18 19:34:51 +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
93d1888519 (Libretro.h) Update 2013-12-17 22:10:52 +01:00
twinaphex
a534ebe7a4 (libretro.h) Check first if PERFORMANCE_LOG_ callback functions point
to something before using them
2013-12-17 22:00:35 +01:00
twinaphex
2636d876d2 (Libretro.h) Small cleanup 2013-12-17 21:40:57 +01:00
twinaphex
dd38781d92 Update libretro.h 2013-12-17 21:30:32 +01:00
twinaphex
0ff82ea4f2 (Libretro) Simplify RETRO_PERFORMANCE macros 2013-12-17 21:10:15 +01:00
twinaphex
b984a8d57e (Libretro) Expose perf_register too 2013-12-17 20:25:48 +01:00
twinaphex
166aa29443 (Libretro) Expose perf_log as callback too to libretro 2013-12-17 19:37:33 +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
df85b754b8 Clarify keyboard callback. 2013-12-09 14:28:05 +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
e3295e87cd Initial RETRO_ENVIRONMENT_GET_LOG_INTERFACE. 2013-12-09 10:32:12 +01:00
Themaister
271939875a Update libretro camera API.
Need initialized/deinitialized callbacks to properly
handle driver reinit.
2013-11-16 17:54:18 +01:00
Themaister
fee97c961f Fix libretro comment. 2013-11-12 16:09:28 +01:00
Themaister
dfff94e5a0 Rework camera interface.
Hook up a more proper interface for libretro. Still very experimental.
2013-11-12 16:02:26 +01:00
twinaphex
c107b06a76 Add RETRO_ENVIRONMENT_SET_CAMERA_RETRIEVE 2013-11-12 12:00:57 +01:00
ToadKing
e668693e42 revert libretro.h changes 2013-11-06 22:51:10 -05:00
Lioncash
fac2783a09 Optimize some struct sizes.
This is the list of reduced sizes:

file: dsound.c         - struct dsound_t reduced from 56 bytes to 52 bytes.
file: shader_parse.h   - struct gfx_fbo_scale reduced from 32 bytes to 28 bytes.
file: thread_wrapper.c - struct texture reduced from 28 bytes to 24 bytes.
file: libretro.h       - struct retro_hw_render_callback reduced from 40 bytes to 36 bytes.
file: movie.c          - struct bsv_movie reduced from 36 bytes to 32 bytes.
file: netplay.c        - struct delta_frame reduced from 16 bytes to 12 bytes.
file: performance.h    - struct rarch_perf_counter_t reduced from 40 bytes to 32 bytes.
2013-11-03 23:57:41 -05:00
Themaister
ae07e75e7c Hook up sensors API in libretro.
There are still many FIXMEs to be resolved before the interface
can lose its experimental status.
2013-11-03 12:06:14 +01:00
twinaphex
c0e02d3957 (Android/General) Add preliminary sensor support to libretro API /
add accelerometer support to Android input driver
2013-11-03 00:27:58 +01:00
Themaister
df4d0eb0cf Add RETRO_ENVIRONMENT_GET_INPUT_DEVICE_CAPABILITIES. 2013-11-02 21:40:31 +01:00
Themaister
1c5a11c900 Freeze GET_RUMBLE_INTERFACE.
Interface should be good to go now.
2013-09-26 15:15:31 +02:00
Themaister
c7db4aff64 Support variable strength for rumble motors. 2013-09-26 12:55:05 +02:00
Themaister
a01ef18f80 Add RETRO_ENVIRONMENT_GET_RUMBLE_INTERFACE. 2013-09-25 23:21:32 +02:00
Themaister
38ec55573c Rework SET_AUDIO_CALLBACK.
When disabling audio and/or muting, the core has no way
of knowing this, causing potential issues in a threaded mixer.

This environ is not used by any public core to my knowledge so the old
API has been removed and replaced with a change to environment number
(20 -> 22).
2013-09-14 17:28:09 +02:00
Themaister
32cae444a0 Fixup new private extensions.
Moved private stuff to libretro_private.h.
Dropped use of retro_variable (redundant and wrong type).

Didn't understand difference between EXEC_LOAD and EXEC_RELOAD at all.
Only one was used anyways ...
2013-08-25 11:10:32 +02:00
twinaphex
edfab9630a Add RETRO_ENVIRONMENT_EXEC - refactor some stuff internally in
libretro frontend to implement this new functionality
2013-08-25 01:37:15 +02:00
twinaphex
b26fcfb4a6 Libretro header - Typo - aquire -> acquire 2013-08-24 22:59:29 +02:00
twinaphex
08ae8226eb Update libretro header 2013-08-24 22:56:34 +02:00
twinaphex
7c81f554af Add RETRO_ENVIRONMENT_SET_LIBRETRO_PATH to libretro API. Also gives us opportunity
to write internal code - other libretro implementations can now just implement
this environ callback and have other external frontends of their own be able to swap
in/out libretro cores from outside
2013-08-24 22:35:54 +02:00
Themaister
4d8e9df03d Add forced debug context support to WGL. 2013-08-14 14:13:28 +02:00
Themaister
6a82db13d5 Fixups for frame time callback. 2013-08-11 01:05:33 +02:00
Themaister
f4a23115c2 Begin adding AUDIO_CALLBACK/FRAME_TIME_CALLBACK. 2013-08-11 01:05:33 +02:00
Themaister
335c32d95d Support creating debug contexts. 2013-08-11 00:56:53 +02:00
Themaister
3dd5cd39c4 Add cache_context/destroy notification. 2013-08-11 00:55:05 +02:00
Themaister
6df083fc0f Add support for bottom-left origin in libretro GL. 2013-08-11 00:53:46 +02:00
Themaister
b9fce188ea Initial work on core GL context support. 2013-08-11 00:50:04 +02:00
Themaister
b7fa652b1e Add RETRO_ENVIRONMENT_GET_LIBRETRO_PATH.
Vital for cores which do not load a ROM, but still want to load assets
somehow. Demos and the like ...
2013-07-07 13:24:08 +02:00
Themaister
013a2cdb8d Clarify that the license only applies to libretro.h. 2013-05-28 00:21:57 +02:00
Themaister
20aed80b86 Add MIT license to libretro header.
Has to be one license or it defaults to "all rights reserved".
libretro (the API itself) is open,
and not restricted to a particular license.
2013-05-28 00:13:59 +02:00
Themaister
099a74ed6b Clarify when SUPPORT_NO_GAME can be called. 2013-05-02 13:38:51 +02:00
Themaister
197c4db204 Add RETRO_ENVIRONMENT_SET_SUPPORT_NO_GAME.
Allows libretro core to not require a ROM to be loaded.
Kill stdin ROM loading support (pointless these days).
Replace "no ROM on CLI" behavior to be attempting to load a core with no
ROM.
2013-05-01 00:59:43 +02:00
Themaister
767ad59857 Support disk append. 2013-04-27 15:49:29 +02:00
Themaister
77164d18ca Begin adding core options interface. 2013-04-04 13:58:30 +02:00
Themaister
52edca883e Drop stencil for now in HW render context.
Doesn't seem to work reliably anyways.
2013-04-02 23:29:26 +02:00
Themaister
da1eee609e Mark SET_HW_RENDER as experimental more explicitly. 2013-03-30 13:59:21 +01:00
Themaister
063a2e091c Be more explicit about GLES2 or GL context. 2013-03-29 15:26:47 +01:00
Themaister
50af927de6 Add depth/stencil buffers to HW GL. 2013-03-29 02:50:42 +01:00
Themaister
1cececac18 Add get_proc_address.
Render something "real" in GL.
2013-03-28 01:11:32 +01:00
Themaister
af40f3e9b8 Add initial GL direct rendering test. 2013-03-27 16:15:15 +01:00
Themaister
1221e3a242 Clarify that it's possible to remove images from the list. 2013-03-09 09:52:24 +01:00
Themaister
b4a3ce79bb Add replace/add image interfaces. 2013-03-09 09:44:48 +01:00
Themaister
e3dfba2c34 Add preliminary disk swapping interface.
Works with Mednafen's disk swapping model.
2013-02-21 23:44:07 +01:00
Themaister
482fcb1877 Don't use comma at end of enum. 2013-02-19 14:47:09 +01:00
Themaister
2ceb46cd02 Clarify multi-touch functionality for _POINTER. 2012-12-27 23:16:21 +01:00
Themaister
5aed38cf37 Ensure enum size being int. 2012-12-08 12:32:33 +01:00
meancoot
be1fdd419b (Key Events) Add modifier flag argument; plus cleanup. 2012-12-07 03:18:18 -05:00
meancoot
e60bb1d168 Add RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK. An interface for allowing keyboard event data to be sent to the core. 2012-11-25 20:23:31 -05:00
Themaister
1908a81e1c Add RETRO_DEVICE_POINTER.
Implemented only for X11 so far.

Also clears up viewport_size call.
Changed to viewport_info to also grab X/Y info.
2012-10-28 00:38:31 +02:00
Themaister
4abed0b54e Ensure enum sizes in libretro header. 2012-10-22 21:06:22 +02:00
Themaister
93078889cc Begin reworking RGB565 as default pixel format. 2012-10-20 01:12:02 +02:00
Themaister
066e13f647 Remove references to RetroArch in libretro.h. 2012-09-23 01:46:21 +02:00
Themaister
8981dd6c6b Add RETRO_ENVIRONMENT_SET_INPUT_DESCRIPTORS. 2012-09-09 23:35:23 +02:00
Themaister
4a136205bc Add clarification on retro_get_system_av_info(). 2012-09-04 23:40:57 +02:00
Themaister
22e43d4d84 Fix typo. 2012-09-02 10:10:34 +02:00
Themaister
7372509bef Revert "(Libretro) Add nonblock_state"
This reverts commit 211381bb89.
2012-08-15 19:52:48 +02:00
Twinaphex
84de4f23e6 (Libretro) Correction to RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL
description - level 0 and 1 were described incorrectly
2012-08-15 10:03:00 +02:00
Twinaphex
211381bb89 (Libretro) Add nonblock_state 2012-08-15 09:44:17 +02:00
twinaphex
d28ebe7644 (Xbox 1) Menu changes 2012-08-03 00:23:09 +02:00
Themaister
4d5c4bfd08 Add additional comments for libretro defines. 2012-07-28 07:39:05 +02:00
Themaister
488d2c5a63 Move keysyms to libretro.h.
Should allow RETRO_KEYBOARD to work on GL/SDL/X11 drivers.
2012-07-28 07:39:05 +02:00
Themaister
53f645ed0b Add SET_PIXEL_FORMAT environ. 2012-06-16 15:07:31 +02:00
Themaister
4ee0bde039 Add RETRO_ENVIRONMENT_GET_SYSTEM_DIRECTORY. 2012-06-12 00:28:34 +02:00
Themaister
e00edebc98 Clarify where *_LEVEL should be called. 2012-06-01 16:52:05 +02:00
Themaister
b2387e06bc Add RETRO_ENVIRONMENT_SET_PERFORMANCE_LEVEL. 2012-06-01 16:50:38 +02:00