use Derelict2

This commit is contained in:
Josh Holtrop 2013-02-02 20:44:57 -05:00
parent f827b306c4
commit 7c6fc41c2e
2 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,9 @@
TARGET := sdl_opengl_bare TARGET := sdl_opengl_bare
DFLAGS := -I/usr/local/include/d
LDFLAGS := -lDerelictSDL -lDerelictUtil -ldl
all: $(TARGET) all: $(TARGET)
$(TARGET): $(TARGET).d $(TARGET): $(TARGET).d
gdc -o $@ $^ gdc -o $@ $(DFLAGS) $^ $(LDFLAGS)

View File

@ -1,7 +1,15 @@
import std.stdio; import std.stdio;
import derelict.sdl.sdl;
int main(char[][] args) int main(char[][] args)
{ {
writefln("Hi!"); DerelictSDL.load();
if (SDL_Init(SDL_INIT_EVERYTHING))
{
writefln("Failed to initialize SDL!");
return 1;
}
return 0; return 0;
} }