mirror of https://github.com/buggins/dlangui.git
Fix exmaples, Add them to pipeline
This commit is contained in:
parent
7a585654ee
commit
fd39c58658
|
@ -28,13 +28,31 @@ jobs:
|
|||
uses: dlang-community/setup-dlang@v1
|
||||
with:
|
||||
compiler: ${{ matrix.dc }}
|
||||
|
||||
|
||||
- name: Checkout source
|
||||
uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: 'Build & Test'
|
||||
run: |
|
||||
# Build and run tests, as defined by `unittest` configuration
|
||||
# In this mode, `mainSourceFile` is excluded and `version (unittest)` are included
|
||||
# See https://dub.pm/package-format-json.html#configurations
|
||||
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;
|
||||
/// current figure index, orientation, position
|
||||
@property ref FigurePosition currentFigure() { return _currentFigure; }
|
||||
@property ref FigurePosition currentFigure() return { return _currentFigure; }
|
||||
|
||||
private FigurePosition _nextFigure;
|
||||
/// next figure
|
||||
@property ref FigurePosition nextFigure() { return _nextFigure; }
|
||||
@property ref FigurePosition nextFigure() return { return _nextFigure; }
|
||||
|
||||
/// returns number of columns
|
||||
@property int cols() {
|
||||
|
|
|
@ -1851,6 +1851,17 @@ class Platform {
|
|||
*/
|
||||
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
|
||||
*
|
||||
|
|
|
@ -448,7 +448,7 @@ class Win32Window : Window {
|
|||
parenthwnd, // parent window handle
|
||||
null, // window menu 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) {
|
||||
/* initialize OpenGL rendering */
|
||||
HDC hDC = GetDC(_hwnd);
|
||||
|
@ -485,9 +485,9 @@ class Win32Window : Window {
|
|||
}
|
||||
}
|
||||
}
|
||||
sharedGLContext.initGLBindings(hDC);
|
||||
}
|
||||
|
||||
sharedGLContext.initGLBindings(hDC);
|
||||
isInitialized = true;
|
||||
|
||||
RECT rect;
|
||||
|
|
Loading…
Reference in New Issue