mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 10:38:47 +08:00
export some sdl functions
This commit is contained in:
parent
6bbf3cd357
commit
f9cc378c0c
11
SDL2Config.cmake
Normal file
11
SDL2Config.cmake
Normal file
@ -0,0 +1,11 @@
|
||||
set(SDL2_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR} CACHE PATH "Path to SDL2 root directory")
|
||||
|
||||
# 查找awtk库的头文件和库文件
|
||||
find_library(SDL2_LIBRARY NAMES SDL2 PATHS ${SDL2_ROOT_DIR}/lib)
|
||||
|
||||
set(SDL2_LIBRARIES)
|
||||
set(SDL2_INCLUDE_DIRS ${SDL2_ROOT_DIR}/3rd/SDL/include)
|
||||
|
||||
link_directories(${SDL2_ROOT_DIR}/lib)
|
||||
include_directories(${SDL2_INCLUDE_DIRS})
|
||||
|
@ -140,3 +140,73 @@
|
||||
* @annotation ["global"]
|
||||
* @return {const char*}
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @method SDL_CreateWindow
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @method SDL_DestroyWindow
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @method SDL_GL_CreateContext
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @method SDL_GL_MakeCurrent
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* @method SDL_GL_GetDrawableSize
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @method SDL_GL_DeleteContext
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
SDL_GL_DeleteContext
|
||||
/**
|
||||
* @method SDL_GL_DeleteContext
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @method SDL_GL_SwapWindow
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @method SDL_GL_SetSwapInterval
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @method SDL_GetWindowPosition
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @method SDL_GetWindowSize
|
||||
* @annotation ["global"]
|
||||
* @return {int}
|
||||
*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user