fix gl3n dependency

This commit is contained in:
Vadim Lopatin 2015-03-25 11:10:39 +03:00
parent d7ecdc4417
commit d55cb158a1
2 changed files with 3 additions and 6 deletions

View File

@ -39,7 +39,7 @@
"dlib": "~master",
"derelict-ft": ">=1.0.0",
"derelict-sdl2": ">=1.9.1",
"gl3n": "==1.0.0"
"gl3n": "~>1.0.1"
},
"-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.", "--ex", "src.dlangui"],

View File

@ -1,19 +1,16 @@
module app;
import dlangui;
import std.stdio;
import std.conv;
mixin APP_ENTRY_POINT;
/// entry point for dlangui based application
extern (C) int UIAppMain(string[] args) {
// create window
Window window = Platform.instance.createWindow("My Window", null);
Window window = Platform.instance.createWindow("DlangUI example - HelloWorld", null);
// create some widget to show in window
window.mainWidget = (new Button()).text("Hello world"d).margins(Rect(20,20,20,20));
window.mainWidget = (new Button()).text("Hello, world!"d).margins(Rect(20,20,20,20));
// show window
window.show();