bubel-ecs/demos/external/wasm_imports/bindbc/sdl/bind/sdlloadso.d
Mergul cb7609dcaa -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
2019-11-12 20:33:31 +01:00

28 lines
No EOL
831 B
D

// 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.sdlloadso;
version(BindSDL_Static){
extern(C) @nogc nothrow {
void* SDL_LoadObject(const(char)*);
void* SDL_LoadFunction(void*,const(char*));
void SDL_UnloadObject(void*);
}
}
else {
extern(C) @nogc nothrow {
alias pSDL_LoadObject = void* function(const(char)*);
alias pSDL_LoadFunction = void* function(void*,const(char*));
alias pSDL_UnloadObject = void function(void*);
}
__gshared {
pSDL_LoadObject SDL_LoadObject;
pSDL_LoadFunction SDL_LoadFunction;
pSDL_UnloadObject SDL_UnloadObject;
}
}