mirror of https://github.com/buggins/dlangui.git
fix gl3n dependency
This commit is contained in:
parent
d7ecdc4417
commit
d55cb158a1
2
dub.json
2
dub.json
|
@ -39,7 +39,7 @@
|
||||||
"dlib": "~master",
|
"dlib": "~master",
|
||||||
"derelict-ft": ">=1.0.0",
|
"derelict-ft": ">=1.0.0",
|
||||||
"derelict-sdl2": ">=1.9.1",
|
"derelict-sdl2": ">=1.9.1",
|
||||||
"gl3n": "==1.0.0"
|
"gl3n": "~>1.0.1"
|
||||||
},
|
},
|
||||||
|
|
||||||
"-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.", "--ex", "src.dlangui"],
|
"-ddoxFilterArgs": ["--unittest-examples", "--min-protection=Protected", "--ex", "win32.", "--ex", "src.dlangui"],
|
||||||
|
|
|
@ -1,19 +1,16 @@
|
||||||
module app;
|
module app;
|
||||||
|
|
||||||
import dlangui;
|
import dlangui;
|
||||||
import std.stdio;
|
|
||||||
import std.conv;
|
|
||||||
|
|
||||||
|
|
||||||
mixin APP_ENTRY_POINT;
|
mixin APP_ENTRY_POINT;
|
||||||
|
|
||||||
/// entry point for dlangui based application
|
/// entry point for dlangui based application
|
||||||
extern (C) int UIAppMain(string[] args) {
|
extern (C) int UIAppMain(string[] args) {
|
||||||
// create window
|
// 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
|
// 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
|
// show window
|
||||||
window.show();
|
window.show();
|
||||||
|
|
Loading…
Reference in New Issue