#pragma region Public Domain Code /* This code is in the public domain. You can do whatever you want with it, change it, appropriate it, relicense it, redistribute it, include it in your own libraries and applications, sell it and never mention where you've got it. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #pragma endregion // Public Domain Code // If the library is compiled as a DLL, this ensures symbols are exported #define NUCLEX_GRAPHICS_DEMO_SOURCE 1 #include "Demo.h" namespace Nuclex { namespace Graphics { namespace Demo { // ------------------------------------------------------------------------------------------- // Demo::Demo(HINSTANCE instanceHandle) : mainWindow(instanceHandle, L"Nuclex.Graphics.Native Demo"), rasterizer(mainWindow.GetWindowHandle()), quitRequested(false) { positionMainWindow(); this->mainWindow.Show(); } // ------------------------------------------------------------------------------------------- // void Demo::positionMainWindow() { mainWindow.ResizeViewRectangle(800, 600); mainWindow.CenterOnPrimaryDisplay(); } // ------------------------------------------------------------------------------------------- // }}} // namespace Nuclex::Graphics::Demo