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)
This commit is contained in:
@@ -64,7 +64,7 @@ class Lime {
|
||||
config = _config;
|
||||
host = _main_;
|
||||
|
||||
_debug(':: lime :: initializing -');
|
||||
_debug(':: lime :: initializing - ');
|
||||
_debug(':: lime :: Creating window at ' + config.width + 'x' + config.height);
|
||||
|
||||
//default to 60 fps
|
||||
|
||||
@@ -41,8 +41,8 @@ class WindowHandler {
|
||||
( lib.config.fullscreen ? Window.FULLSCREEN : 0) |
|
||||
( lib.config.borderless ? Window.BORDERLESS : 0) |
|
||||
( lib.config.resizable ? Window.RESIZABLE : 0) |
|
||||
( lib.config.AA ? Window.HW_AA : 0) |
|
||||
( lib.config.AA_HIRES ? Window.HW_AA_HIRES : 0) |
|
||||
( lib.config.antialiasing == 2 ? Window.HW_AA : 0) |
|
||||
( lib.config.antialiasing == 4 ? Window.HW_AA_HIRES : 0) |
|
||||
( lib.config.depth_buffer ? Window.DEPTH_BUFFER : 0) |
|
||||
( lib.config.stencil_buffer ? Window.STENCIL_BUFFER : 0) |
|
||||
( lib.config.vsync ? Window.VSYNC : 0),
|
||||
|
||||
@@ -58,7 +58,6 @@ package lime.utils;
|
||||
} else {
|
||||
|
||||
byteLength = length;
|
||||
|
||||
if (byteLength + byteOffset > buffer.length) {
|
||||
|
||||
throw ("Invalid buffer length");
|
||||
|
||||
@@ -57,7 +57,7 @@ package lime.utils;
|
||||
|
||||
} else {
|
||||
|
||||
super (bufferOrArray, start, length);
|
||||
super (bufferOrArray, start, length << 2 );
|
||||
|
||||
if ((byteLength & 0x03) > 0) {
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ class ApplicationMain {
|
||||
fullscreen : ::WIN_FULLSCREEN::,
|
||||
resizable : ::WIN_RESIZABLE::,
|
||||
borderless : ::WIN_BORDERLESS::,
|
||||
aliasing : ::WIN_ANTIALIASING::,
|
||||
antialiasing : ::WIN_ANTIALIASING::,
|
||||
stencil_buffer : ::WIN_STENCIL_BUFFER::,
|
||||
depth_buffer : ::WIN_DEPTH_BUFFER::,
|
||||
vsync : ::WIN_VSYNC::,
|
||||
|
||||
@@ -16,6 +16,13 @@
|
||||
|
||||
//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::"
|
||||
|
||||
Reference in New Issue
Block a user