Tizen Native API  3.0
SDL Tizen

SDL is for Vulkan applications in Tizen.

Required Header

#include <SDL.h>

Overview

In Tizen, SDL can use Vulkan APIs directly.

Remarks :

Functions

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.

Enumeration Type Documentation

The types of events that can be delivered.

Enumerator:
SDL_FIRSTEVENT 

Unused (do not remove)

SDL_QUIT 

User-requested quit

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. Called on Tizen in _tizen_sdl_control().

Since :
3.0
SDL_APP_LOWBATTERY 

The application is low on battery, reduce power consumption if possible. Called on Tizen in _tizen_app_low_battery().

Since :
3.0
SDL_APP_LANGUAGE_CHANGED 

The application receives this event, when displayed language is changed by system. Called on Tizen in _tizen_app_lang_changed().

Since :
3.0
SDL_APP_REGION_CHANGED 

The application will receive this event, when displayed language is changed by system. Called on Tizen in _tizen_app_region_changed().

Since :
3.0
SDL_WINDOWEVENT 

Window state change

SDL_SYSWMEVENT 

System specific event

SDL_ROTATEEVENT 

Orientation change Called on Tizen in _tizen_app_orient_changed().

Since :
3.0
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_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


Function Documentation

SDL_bool SDLCALL SDL_Vulkan_CreateSurface ( SDL_Window *  window,
SDL_vulkanInstance  instance,
SDL_vulkanSurface *  surface 
)

Creates Vulkan surface.

Since :
3.0
Parameters:
[in]windowThe window to associate with Vulkan
[in]instanceThe instance to associate with surface
[in]surfacepoints to a SDL_vulkanSurface handle in which the created surface object is returned.
Returns:
This returns SDL_TRUE on success, SDL_FALSE on error
SDL_bool SDLCALL SDL_Vulkan_GetInstanceExtensions ( SDL_Window *  window,
unsigned *  count,
char **  names 
)

Gets Vulkan instance extension names.

Since :
3.0
Parameters:
[in]windowThe window to associate with Vulkan
[in]countPointer to an integer related to the number of extension names available or queried
[in]namesPointer to extension names in which the resulting extension names are returned
Returns:
This returns SDL_TRUE on success, SDL_FALSE on error