*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
31 lines
No EOL
921 B
D
31 lines
No EOL
921 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.sdlclipboard;
|
|
|
|
import bindbc.sdl.config;
|
|
import bindbc.sdl.bind.sdlstdinc : SDL_bool;
|
|
|
|
version(BindSDL_Static) {
|
|
extern(C) @nogc nothrow {
|
|
int SDL_SetClipboardText(const(char)*);
|
|
char* SDL_GetClipboardText();
|
|
SDL_bool SDL_HasClipboardText();
|
|
}
|
|
}
|
|
else {
|
|
extern(C) @nogc nothrow {
|
|
alias pSDL_SetClipboardText = int function(const(char)*);
|
|
alias pSDL_GetClipboardText = char* function();
|
|
alias pSDL_HasClipboardText = SDL_bool function();
|
|
}
|
|
|
|
__gshared {
|
|
pSDL_SetClipboardText SDL_SetClipboardText;
|
|
pSDL_GetClipboardText SDL_GetClipboardText;
|
|
pSDL_HasClipboardText SDL_HasClipboardText;
|
|
}
|
|
} |