Tizen Native API
5.5
|
SDL is for Vulkan applications in Tizen.
#include <SDL.h> #include <app.h>
In Tizen, SDL can use OpenGL ES or Vulkan APIs directly.
Remarks :
This API is related with the following features:
It is recommended to design feature related codes in your application for reliability.
You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature Element.
Functions | |
int SDLCALL | SDL_tizen_app_init (int argc, char *argv[]) |
Initializes the application main loop. | |
SDL_bool SDLCALL | SDL_Vulkan_GetInstanceExtensions (SDL_Window *window, unsigned *count, char **names) |
Gets Vulkan instance extension names. | |
SDL_bool SDLCALL | SDL_Vulkan_CreateSurface (SDL_Window *window, SDL_vulkanInstance instance, SDL_vulkanSurface *surface) |
Creates Vulkan surface. | |
Defines | |
#define | SDL_HINT_TIZEN_INDICATOR_OPACITY "SDL_TIZEN_INDICATOR_OPACITY" |
Sets opacity of Tizen-specific indicator. |
#define SDL_HINT_TIZEN_INDICATOR_OPACITY "SDL_TIZEN_INDICATOR_OPACITY" |
Sets opacity of Tizen-specific indicator.
The variable can be one of "#opaque" - Opacifies the indicator "#translucent" - Be translucent the indicator "#transparent" - Transparentizes the indicator (this is the default) "#bg_transparent" - Transparentizes the indicator background
enum SDL_EventType |
The types of events that can be delivered.
SDL_FIRSTEVENT |
Unused (do not remove) |
SDL_QUIT |
User-requested quit |
SDL_APP_TERMINATING |
The application is being terminated by the OS |
SDL_APP_LOWMEMORY |
The application is low on memory, free memory if possible. |
SDL_APP_WILLENTERBACKGROUND |
The application is about to enter the background |
SDL_APP_DIDENTERBACKGROUND |
The application did enter the background and may not get CPU for some time |
SDL_APP_WILLENTERFOREGROUND |
The application is about to enter the foreground |
SDL_APP_DIDENTERFOREGROUND |
The application is now interactive |
SDL_APP_CONTROL |
The application is launching with some arguments. |
SDL_APP_LOWBATTERY |
The application is low on battery, reduce power consumption if possible. |
SDL_APP_LANGUAGE_CHANGED |
The application receives this event, when displayed language is changed by system. |
SDL_APP_REGION_CHANGED |
The application will receive this event, when displayed language is changed by system. |
SDL_WINDOWEVENT |
Window state change |
SDL_SYSWMEVENT |
System specific event |
SDL_ROTATEEVENT |
Orientation change |
SDL_KEYDOWN |
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. |
SDL_MOUSEMOTION |
Mouse moved |
SDL_MOUSEBUTTONDOWN |
Mouse button pressed |
SDL_MOUSEBUTTONUP |
Mouse button released |
SDL_MOUSEWHEEL |
Mouse wheel motion |
SDL_JOYAXISMOTION |
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 |
SDL_CONTROLLERAXISMOTION |
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 |
SDL_FINGERDOWN |
User has touched input device |
SDL_FINGERUP |
User stopped touching input device |
SDL_FINGERMOTION |
User is dragging finger on input device |
SDL_DOLLARGESTURE |
User made a dollar gesture. |
SDL_DOLLARRECORD |
When recording a gesture with SDL_RecordGesture, the user made a dollar gesture that was recorded. |
SDL_MULTIGESTURE |
Multiple finger gesture event |
SDL_CLIPBOARDUPDATE |
The clipboard changed |
SDL_DROPFILE |
The system requests a file open |
SDL_AUDIODEVICEADDED |
A new audio device is available |
SDL_AUDIODEVICEREMOVED |
An audio device has been removed. |
SDL_RENDER_TARGETS_RESET |
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 |
SDL_USEREVENT |
Events SDL_USEREVENT through SDL_LASTEVENT are for your use, and should be allocated with SDL_RegisterEvents() |
SDL_LASTEVENT |
This last event is only for bounding internal arrays |
enum SDL_GLattr |
OpenGL configuration attributes .*.
Allows an GL Context to be created with a priority hint.
enum SDL_SYSWM_TYPE |
int SDLCALL SDL_tizen_app_init | ( | int | argc, |
char * | argv[] | ||
) |
Initializes the application main loop.
[in] | argc | The argument count |
[in] | argv | The argument vector |
APP_ERROR_NONE | Successful |
APP_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_ERROR_INVALID_CONTEXT | The application is illegally launched, not launched by the launch system |
APP_ERROR_ALREADY_RUNNING | The main loop already starts |
SDL_bool SDLCALL SDL_Vulkan_CreateSurface | ( | SDL_Window * | window, |
SDL_vulkanInstance | instance, | ||
SDL_vulkanSurface * | surface | ||
) |
Creates Vulkan surface.
[in] | window | The window to associate with Vulkan |
[in] | instance | The instance to associate with surface |
[out] | surface | points to a SDL_vulkanSurface handle in which the created surface object is returned. |
SDL_bool SDLCALL SDL_Vulkan_GetInstanceExtensions | ( | SDL_Window * | window, |
unsigned * | count, | ||
char ** | names | ||
) |
Gets Vulkan instance extension names.
[in] | window | The window to associate with Vulkan |
[out] | count | Pointer to an integer related to the number of extension names available or queried |
[out] | names | Pointer to extension names in which the resulting extension names are returned |