use Derelict2
This commit is contained in:
1 parent
f827b306c4
commit
7c6fc41c2e
2 files changed
+12
-2
No files matched your search
@@ -1,7 +1,9 @@
|
||||
|
||||
TARGET := sdl_opengl_bare
|
||||
DFLAGS := -I/usr/local/include/d
|
||||
LDFLAGS := -lDerelictSDL -lDerelictUtil -ldl
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(TARGET).d
|
||||
gdc -o $@ $^
|
||||
gdc -o $@ $(DFLAGS) $^ $(LDFLAGS)
|
||||
+9
-1
@@ -1,7 +1,15 @@
|
||||
import std.stdio;
|
||||
import derelict.sdl.sdl;
|
||||
|
||||
int main(char[][] args)
|
||||
{
|
||||
writefln("Hi!");
|
||||
DerelictSDL.load();
|
||||
|
||||
if (SDL_Init(SDL_INIT_EVERYTHING))
|
||||
{
|
||||
writefln("Failed to initialize SDL!");
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user