[SDL_tizen] add Tizen API doxygen file. 01/95201/2 accepted/tizen/3.0/common/20161114.082801 accepted/tizen/3.0/ivi/20161103.002154 accepted/tizen/3.0/mobile/20161103.002111 accepted/tizen/3.0/tv/20161103.002126 accepted/tizen/3.0/wearable/20161103.002140 submit/tizen_3.0/20161102.124236 submit/tizen_3.0_common/20161110.084657
authorDaeKwang Ryu <dkdk.ryu@samsung.com>
Wed, 2 Nov 2016 11:38:08 +0000 (20:38 +0900)
committerDaeKwang Ryu <dkdk.ryu@samsung.com>
Wed, 2 Nov 2016 11:46:18 +0000 (20:46 +0900)
sdl-tizen_docs.h is for Tizen API reference.
It describes functions and enum values for only tizen.

Change-Id: I4c56dac66646f069d755283ffb69735e0e802e36

doc/README [new file with mode: 0644]
doc/sdl-tizen_docs.h [new file with mode: 0644]

diff --git a/doc/README b/doc/README
new file mode 100644 (file)
index 0000000..10da9b8
--- /dev/null
@@ -0,0 +1 @@
+This directory is for Tizen API reference(doxygen).
diff --git a/doc/sdl-tizen_docs.h b/doc/sdl-tizen_docs.h
new file mode 100644 (file)
index 0000000..0516442
--- /dev/null
@@ -0,0 +1,177 @@
+/**
+ * @defgroup CAPI_SDL_TIZEN_MODULE SDL Tizen
+ * @brief  SDL is for OpenGL ES, Vulkan applications in Tizen.
+ * @ingroup OPENSRC_SDL_FRAMEWORK
+ *
+ * @section CAPI_SDL_TIZEN_MODULE_HEADER Required Header
+ *   \#include <SDL.h>
+ *
+ * @section CAPI_SDL_TIZEN_MODULE_OVERVIEW Overview
+ * In Tizen, SDL can use OpenGL ES, Vulkan APIs directly.
+ *
+ * Remarks :\n
+ *   - 5 event types are added for Tizen application framework.\n
+ *   - 2 functions are added for Vulkan.
+ */
+
+/**
+ * @addtogroup CAPI_SDL_TIZEN_MODULE
+ * @{
+ */
+
+/**
+ * @brief The types of events that can be delivered.
+ */
+typedef enum
+{
+    SDL_FIRSTEVENT     = 0,     /**< Unused (do not remove) */
+
+    /* Application events */
+    SDL_QUIT           = 0x100, /**< User-requested quit */
+
+    /* These application events have special meaning on iOS, see README-ios.md for details */
+    SDL_APP_TERMINATING,        /**< The application is being terminated by the OS
+                                     Called on iOS in applicationWillTerminate()
+                                     Called on Android in onDestroy()
+                                */
+    SDL_APP_LOWMEMORY,          /**< The application is low on memory, free memory if possible.
+                                     Called on iOS in applicationDidReceiveMemoryWarning()
+                                     Called on Android in onLowMemory()
+                                */
+    SDL_APP_WILLENTERBACKGROUND, /**< The application is about to enter the background
+                                     Called on iOS in applicationWillResignActive()
+                                     Called on Android in onPause()
+                                */
+    SDL_APP_DIDENTERBACKGROUND, /**< The application did enter the background and may not get CPU for some time
+                                     Called on iOS in applicationDidEnterBackground()
+                                     Called on Android in onPause()
+                                */
+    SDL_APP_WILLENTERFOREGROUND, /**< The application is about to enter the foreground
+                                     Called on iOS in applicationWillEnterForeground()
+                                     Called on Android in onResume()
+                                */
+    SDL_APP_DIDENTERFOREGROUND, /**< The application is now interactive
+                                     Called on iOS in applicationDidBecomeActive()
+                                     Called on Android in onResume()
+                                */
+    SDL_APP_CONTROL,           /**< The application is launching with some arguments.
+                                    @remark Called on Tizen in _tizen_sdl_control().
+                                    @since_tizen 3.0
+                                */
+    SDL_APP_LOWBATTERY,        /**< The application is low on battery, reduce power consumption if possible.
+                                    @reamrk Called on Tizen in _tizen_app_low_battery().
+                                    @since_tizen 3.0
+                                */
+    SDL_APP_LANGUAGE_CHANGED,  /**< The application receives this event, when displayed language is changed by system.
+                                    @remark Called on Tizen in _tizen_app_lang_changed().
+                                    @since_tizen 3.0
+                                */
+    SDL_APP_RIGION_CHANGED,    /**< The application will receive this event, when displayed language is changed by system.
+                                    @remark Called on Tizen in _tizen_app_region_changed().
+                                    @since_tizen 3.0
+                                */
+
+    /* Window events */
+    SDL_WINDOWEVENT    = 0x200, /**< Window state change */
+    SDL_SYSWMEVENT,             /**< System specific event */
+    SDL_ROTATEEVENT,            /**< Orientation change
+                                     @remark Called on Tizen in _tizen_app_orient_changed().
+                                     @since_tizen 3.0
+                                 */
+
+    /* Keyboard events */
+    SDL_KEYDOWN        = 0x300, /**< Key pressed */
+    SDL_KEYUP,                  /**< Key released */
+    SDL_TEXTEDITING,            /**< Keyboard text editing (composition) */
+    SDL_TEXTINPUT,              /**< Keyboard text input */
+    SDL_KEYMAPCHANGED,          /**< Keymap changed due to a system event such as an
+                                     input language or keyboard layout change.
+                                */
+
+    /* Mouse events */
+    SDL_MOUSEMOTION    = 0x400, /**< Mouse moved */
+    SDL_MOUSEBUTTONDOWN,        /**< Mouse button pressed */
+    SDL_MOUSEBUTTONUP,          /**< Mouse button released */
+    SDL_MOUSEWHEEL,             /**< Mouse wheel motion */
+
+    /* Joystick events */
+    SDL_JOYAXISMOTION  = 0x600, /**< Joystick axis motion */
+    SDL_JOYBALLMOTION,          /**< Joystick trackball motion */
+    SDL_JOYHATMOTION,           /**< Joystick hat position change */
+    SDL_JOYBUTTONDOWN,          /**< Joystick button pressed */
+    SDL_JOYBUTTONUP,            /**< Joystick button released */
+    SDL_JOYDEVICEADDED,         /**< A new joystick has been inserted into the system */
+    SDL_JOYDEVICEREMOVED,       /**< An opened joystick has been removed */
+
+    /* Game controller events */
+    SDL_CONTROLLERAXISMOTION  = 0x650, /**< Game controller axis motion */
+    SDL_CONTROLLERBUTTONDOWN,          /**< Game controller button pressed */
+    SDL_CONTROLLERBUTTONUP,            /**< Game controller button released */
+    SDL_CONTROLLERDEVICEADDED,         /**< A new Game controller has been inserted into the system */
+    SDL_CONTROLLERDEVICEREMOVED,       /**< An opened Game controller has been removed */
+    SDL_CONTROLLERDEVICEREMAPPED,      /**< The controller mapping was updated */
+
+    /* Touch events */
+    SDL_FINGERDOWN      = 0x700,
+    SDL_FINGERUP,
+    SDL_FINGERMOTION,
+
+    /* Gesture events */
+    SDL_DOLLARGESTURE   = 0x800,
+    SDL_DOLLARRECORD,
+    SDL_MULTIGESTURE,
+
+    /* Clipboard events */
+    SDL_CLIPBOARDUPDATE = 0x900, /**< The clipboard changed */
+
+    /* Drag and drop events */
+    SDL_DROPFILE        = 0x1000, /**< The system requests a file open */
+
+    /* Audio hotplug events */
+    SDL_AUDIODEVICEADDED = 0x1100, /**< A new audio device is available */
+    SDL_AUDIODEVICEREMOVED,        /**< An audio device has been removed. */
+
+    /* Render events */
+    SDL_RENDER_TARGETS_RESET = 0x2000, /**< The render targets have been reset and their contents need to be updated */
+    SDL_RENDER_DEVICE_RESET, /**< The device has been reset and all textures need to be recreated */
+
+    /** Events ::SDL_USEREVENT through ::SDL_LASTEVENT are for your use,
+     *  and should be allocated with SDL_RegisterEvents()
+     */
+    SDL_USEREVENT    = 0x8000,
+
+    /**
+     *  This last event is only for bounding internal arrays
+     */
+    SDL_LASTEVENT    = 0xFFFF
+} SDL_EventType;
+
+/**
+ * @brief Gets Vulkan instance extension names
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] window    The window to associate with Vulkan
+ * @param[in] count    Pointer to an integer related to the number of extension names available or queried
+ * @param[in] names    Pointer to extension names in which the resulting extension names are returned
+ *
+ * @return This returns SDL_TRUE on success, SDL_FALSE on error
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_Vulkan_GetInstanceExtensions(SDL_Window* window, unsigned* count, char** names);
+
+/**
+ * @brief Creates Vulkan surface
+ *
+ * @since_tizen 3.0
+ *
+ * @param[in] window    The window to associate with Vulkan
+ * @param[in] instance   The instance to associate with surface
+ * @param[in] surface   points to a SDL_vulkanSurface handle in which the created surface object is returned.
+ *
+ * @return This returns SDL_TRUE on success, SDL_FALSE on error
+ */
+extern DECLSPEC SDL_bool SDLCALL SDL_Vulkan_CreateSurface(SDL_Window* window, SDL_vulkanInstance instance, SDL_vulkanSurface* surface);
+
+/**
+ * @}
+ */