Update to support multiple windows

This commit is contained in:
Joshua Granick
2015-08-19 18:09:45 -07:00
parent f7e53cdea8
commit e6f133ab51
7 changed files with 68 additions and 45 deletions

View File

@@ -66,26 +66,46 @@ class ApplicationMain {
config = {
antialiasing: Std.int (::WIN_ANTIALIASING::),
background: Std.int (::WIN_BACKGROUND::),
borderless: ::WIN_BORDERLESS::,
company: "::META_COMPANY::",
depthBuffer: ::WIN_DEPTH_BUFFER::,
file: "::APP_FILE::",
fps: Std.int (::WIN_FPS::),
fullscreen: ::WIN_FULLSCREEN::,
hardware: ::WIN_HARDWARE::,
height: Std.int (::WIN_HEIGHT::),
orientation: "::WIN_ORIENTATION::",
packageName: "::META_PACKAGE_NAME::",
resizable: ::WIN_RESIZABLE::,
stencilBuffer: ::WIN_STENCIL_BUFFER::,
title: "::APP_TITLE::",
version: "::META_VERSION::",
vsync: ::WIN_VSYNC::,
width: Std.int (::WIN_WIDTH::),
meta: {
buildNumber: "::meta.buildNumber::",
company: "::meta.company::",
packageName: "::meta.packageName::",
title: "::meta.title::",
version: "::meta.version::"
},
}
windows: [
::foreach windows::
{
width: ::width::,
height: ::height::,
x: ::x::,
y: ::y::,
background: ::background::,
parameters: "::parameters::",
fps: ::fps::,
hardware: ::hardware::,
display: ::display::,
resizable: ::resizable::,
borderless: ::borderless::,
vsync: ::vsync::,
fullscreen: ::fullscreen::,
antialiasing: ::antialiasing::,
orientation: ::orientation::,
depthBuffer: ::depthBuffer::,
stencilBuffer: ::stencilBuffer::,
title: "::title::"
},
::end::
],
file: "::APP_FILE::"
};
#if (!html5 || munit)
create ();