mirror of https://github.com/buggins/dlangui.git
Fix exmaples, Add them to pipeline
This commit is contained in:
parent
7a585654ee
commit
fd39c58658
|
@ -38,3 +38,21 @@ jobs:
|
||||||
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
|
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
|
||||||
# See https://dub.pm/package-format-json.html#configurations
|
# See https://dub.pm/package-format-json.html#configurations
|
||||||
dub test
|
dub test
|
||||||
|
cd examples/bezier
|
||||||
|
dub build -b=release
|
||||||
|
cd ../dminer
|
||||||
|
dub build -b=release
|
||||||
|
cd ../dmledit
|
||||||
|
dub build -b=release
|
||||||
|
cd ../dragon
|
||||||
|
dub build -b=release
|
||||||
|
cd ../example1
|
||||||
|
dub build -b=release
|
||||||
|
cd ../helloworld
|
||||||
|
dub build -b=release
|
||||||
|
cd ../ircclient
|
||||||
|
dub build -b=release
|
||||||
|
cd ../opengl
|
||||||
|
dub build -b=release
|
||||||
|
cd ../tetris
|
||||||
|
dub build -b=release
|
|
@ -190,11 +190,11 @@ struct Cup {
|
||||||
|
|
||||||
private FigurePosition _currentFigure;
|
private FigurePosition _currentFigure;
|
||||||
/// current figure index, orientation, position
|
/// current figure index, orientation, position
|
||||||
@property ref FigurePosition currentFigure() { return _currentFigure; }
|
@property ref FigurePosition currentFigure() return { return _currentFigure; }
|
||||||
|
|
||||||
private FigurePosition _nextFigure;
|
private FigurePosition _nextFigure;
|
||||||
/// next figure
|
/// next figure
|
||||||
@property ref FigurePosition nextFigure() { return _nextFigure; }
|
@property ref FigurePosition nextFigure() return { return _nextFigure; }
|
||||||
|
|
||||||
/// returns number of columns
|
/// returns number of columns
|
||||||
@property int cols() {
|
@property int cols() {
|
||||||
|
|
|
@ -1851,6 +1851,17 @@ class Platform {
|
||||||
*/
|
*/
|
||||||
int multisamples = 0;
|
int multisamples = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the amount of multisamples. Returns 0 if no OpenGL support
|
||||||
|
*/
|
||||||
|
int getMultisamples()
|
||||||
|
{
|
||||||
|
static if(ENABLE_OPENGL)
|
||||||
|
return multisamples;
|
||||||
|
else
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* close window
|
* close window
|
||||||
*
|
*
|
||||||
|
|
|
@ -448,7 +448,7 @@ class Win32Window : Window {
|
||||||
parenthwnd, // parent window handle
|
parenthwnd, // parent window handle
|
||||||
null, // window menu handle
|
null, // window menu handle
|
||||||
_hInstance, // program instance handle
|
_hInstance, // program instance handle
|
||||||
platform.multisamples ? cast(void*)null : cast(void*)this); // creation parameters
|
platform.getMultisamples ? cast(void*)null : cast(void*)this); // creation parameters
|
||||||
static if (ENABLE_OPENGL) {
|
static if (ENABLE_OPENGL) {
|
||||||
/* initialize OpenGL rendering */
|
/* initialize OpenGL rendering */
|
||||||
HDC hDC = GetDC(_hwnd);
|
HDC hDC = GetDC(_hwnd);
|
||||||
|
@ -485,9 +485,9 @@ class Win32Window : Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sharedGLContext.initGLBindings(hDC);
|
||||||
}
|
}
|
||||||
|
|
||||||
sharedGLContext.initGLBindings(hDC);
|
|
||||||
isInitialized = true;
|
isInitialized = true;
|
||||||
|
|
||||||
RECT rect;
|
RECT rect;
|
||||||
|
|
Loading…
Reference in New Issue