This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import std.stdio; | |
import std.socket; | |
class TCPServer{ | |
string host; | |
ushort port; | |
@disable this(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module app; | |
import std.conv; | |
import std.process; | |
import beamui; | |
mixin RegisterPlatforms; | |
int main() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import core.stdc.stdio; | |
import bindbc.nanovg; | |
import bindbc.glfw; | |
import bindbc.opengl; | |
@nogc nothrow: | |
int initNanovg(){ | |
version(BindNanovg_Static){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// WIP | |
import dvector; | |
import deimos.uv; | |
struct UVThread { | |
alias CBDelegate = void delegate(void*, void*) @nogc nothrow; | |
alias CBFunPtr = void function(void*, void*) @nogc nothrow; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import core.stdc.stdio; | |
import core.sys.windows.windows; | |
struct UserData { | |
int data; | |
} | |
extern (Windows) uint t1(void* data) { | |
auto tid = GetCurrentThreadId(); | |
auto dt = *(cast(UserData*)data); |
NewerOlder