Files
lime/templates/html5/haxe/ApplicationMain.hx
underscorediscovery cc9ff9b882 Wrapper; Window; passing all of the window flags for config.
Wrapper; Float32Array; The constructor was using length as a bytelength, instead of vert length (to match the webGL spec)
2013-12-11 21:59:10 -03:30

39 lines
869 B
Haxe
Executable File

#if lime_html5
import ::APP_MAIN_PACKAGE::::APP_MAIN_CLASS::;
import lime.Lime;
class ApplicationMain {
public static function main () {
//Create the game class, give it the runtime
var _main_ = Type.createInstance (::APP_MAIN::, []);
//Create an instance of lime
var _lime = new Lime();
//Create the config from the project.nmml info
var config = {
fullscreen : ::WIN_FULLSCREEN::,
resizable : ::WIN_RESIZABLE::,
borderless : ::WIN_BORDERLESS::,
antialiasing : ::WIN_ANTIALIASING::,
stencil_buffer : ::WIN_STENCIL_BUFFER::,
depth_buffer : ::WIN_DEPTH_BUFFER::,
vsync : ::WIN_VSYNC::,
width : ::WIN_WIDTH::,
height : ::WIN_HEIGHT::,
title : "::APP_TITLE::"
};
//Start up
_lime.init( _main_, config );
} //main
} //ApplicationMain
#end //lime_html5