-Demos:
*added ImGUI styles *added new assets (fonts, shaders) *added cimgui.dll *added imports for bindbc-sdl (for WASM) *added simple demo *added demo launcher *added snake demo *impoved demo utils *added cimgui.bc library for WASM -improved wasm build script -small change in vector
This commit is contained in:
parent
73f2aa6861
commit
cb7609dcaa
82 changed files with 11188 additions and 413 deletions
45
demos/external/wasm_imports/bindbc/sdl/bind/sdlvulkan.d
vendored
Normal file
45
demos/external/wasm_imports/bindbc/sdl/bind/sdlvulkan.d
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
|
||||
// Copyright Michael D. Parker 2018.
|
||||
// Distributed under the Boost Software License, Version 1.0.
|
||||
// (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt)
|
||||
|
||||
module bindbc.sdl.bind.sdlvulkan;
|
||||
|
||||
import bindbc.sdl.config;
|
||||
import bindbc.sdl.bind.sdlstdinc : SDL_bool;
|
||||
import bindbc.sdl.bind.sdlvideo : SDL_Window;
|
||||
|
||||
version(BindSDL_Static) {
|
||||
extern(C) @nogc nothrow {
|
||||
static if(sdlSupport >= SDLSupport.sdl206) {
|
||||
SDL_bool SDL_Vulkan_CreateSurface(SDL_Window*,void*,void*);
|
||||
void SDL_Vulkan_GetDrawableSize(SDL_Window*,int*,int*);
|
||||
SDL_bool SDL_Vulkan_GetInstanceExtensions(SDL_Window*,uint*,const(char)**);
|
||||
void* SDL_Vulkan_GetVkGetInstanceProcAddr();
|
||||
int SDL_Vulkan_LoadLibrary(const(char)*);
|
||||
void SDL_Vulkan_UnloadLibrary();
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
static if(sdlSupport >= SDLSupport.sdl206) {
|
||||
extern(C) @nogc nothrow {
|
||||
alias pSDL_Vulkan_CreateSurface = SDL_bool function(SDL_Window*,void*,void*);
|
||||
alias pSDL_Vulkan_GetDrawableSize = void function(SDL_Window*,int*,int*);
|
||||
alias pSDL_Vulkan_GetInstanceExtensions = SDL_bool function(SDL_Window*,uint*,const(char)**);
|
||||
alias pSDL_Vulkan_GetVkGetInstanceProcAddr = void* function();
|
||||
alias pSDL_Vulkan_LoadLibrary = int function(const(char)*);
|
||||
alias pSDL_Vulkan_UnloadLibrary = void function();
|
||||
}
|
||||
|
||||
__gshared {
|
||||
pSDL_Vulkan_CreateSurface SDL_Vulkan_CreateSurface;
|
||||
pSDL_Vulkan_GetDrawableSize SDL_Vulkan_GetDrawableSize;
|
||||
pSDL_Vulkan_GetInstanceExtensions SDL_Vulkan_GetInstanceExtensions;
|
||||
pSDL_Vulkan_GetVkGetInstanceProcAddr SDL_Vulkan_GetVkGetInstanceProcAddr;
|
||||
pSDL_Vulkan_LoadLibrary SDL_Vulkan_LoadLibrary;
|
||||
pSDL_Vulkan_UnloadLibrary SDL_Vulkan_UnloadLibrary;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue