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;
|
config = _config;
|
||||||
host = _main_;
|
host = _main_;
|
||||||
|
|
||||||
_debug(':: lime :: initializing -');
|
_debug(':: lime :: initializing - ');
|
||||||
_debug(':: lime :: Creating window at ' + config.width + 'x' + config.height);
|
_debug(':: lime :: Creating window at ' + config.width + 'x' + config.height);
|
||||||
|
|
||||||
//default to 60 fps
|
//default to 60 fps
|
||||||
|
|||||||
@@ -38,14 +38,14 @@ class WindowHandler {
|
|||||||
|
|
||||||
//optional flags
|
//optional flags
|
||||||
|
|
||||||
( lib.config.fullscreen ? Window.FULLSCREEN : 0) |
|
( lib.config.fullscreen ? Window.FULLSCREEN : 0) |
|
||||||
( lib.config.borderless ? Window.BORDERLESS : 0) |
|
( lib.config.borderless ? Window.BORDERLESS : 0) |
|
||||||
( lib.config.resizable ? Window.RESIZABLE : 0) |
|
( lib.config.resizable ? Window.RESIZABLE : 0) |
|
||||||
( lib.config.AA ? Window.HW_AA : 0) |
|
( lib.config.antialiasing == 2 ? Window.HW_AA : 0) |
|
||||||
( lib.config.AA_HIRES ? Window.HW_AA_HIRES : 0) |
|
( lib.config.antialiasing == 4 ? Window.HW_AA_HIRES : 0) |
|
||||||
( lib.config.depth_buffer ? Window.DEPTH_BUFFER : 0) |
|
( lib.config.depth_buffer ? Window.DEPTH_BUFFER : 0) |
|
||||||
( lib.config.stencil_buffer ? Window.STENCIL_BUFFER : 0) |
|
( lib.config.stencil_buffer ? Window.STENCIL_BUFFER : 0) |
|
||||||
( lib.config.vsync ? Window.VSYNC : 0),
|
( lib.config.vsync ? Window.VSYNC : 0),
|
||||||
|
|
||||||
lib.config.title, //title
|
lib.config.title, //title
|
||||||
null //icon
|
null //icon
|
||||||
|
|||||||
@@ -58,7 +58,6 @@ package lime.utils;
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
byteLength = length;
|
byteLength = length;
|
||||||
|
|
||||||
if (byteLength + byteOffset > buffer.length) {
|
if (byteLength + byteOffset > buffer.length) {
|
||||||
|
|
||||||
throw ("Invalid buffer length");
|
throw ("Invalid buffer length");
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ package lime.utils;
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
super (bufferOrArray, start, length);
|
super (bufferOrArray, start, length << 2 );
|
||||||
|
|
||||||
if ((byteLength & 0x03) > 0) {
|
if ((byteLength & 0x03) > 0) {
|
||||||
|
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ class ApplicationMain {
|
|||||||
fullscreen : ::WIN_FULLSCREEN::,
|
fullscreen : ::WIN_FULLSCREEN::,
|
||||||
resizable : ::WIN_RESIZABLE::,
|
resizable : ::WIN_RESIZABLE::,
|
||||||
borderless : ::WIN_BORDERLESS::,
|
borderless : ::WIN_BORDERLESS::,
|
||||||
aliasing : ::WIN_ANTIALIASING::,
|
antialiasing : ::WIN_ANTIALIASING::,
|
||||||
stencil_buffer : ::WIN_STENCIL_BUFFER::,
|
stencil_buffer : ::WIN_STENCIL_BUFFER::,
|
||||||
depth_buffer : ::WIN_DEPTH_BUFFER::,
|
depth_buffer : ::WIN_DEPTH_BUFFER::,
|
||||||
vsync : ::WIN_VSYNC::,
|
vsync : ::WIN_VSYNC::,
|
||||||
|
|||||||
@@ -16,9 +16,16 @@
|
|||||||
|
|
||||||
//Create the config from the project.nmml info
|
//Create the config from the project.nmml info
|
||||||
var config = {
|
var config = {
|
||||||
width : ::WIN_WIDTH::,
|
fullscreen : ::WIN_FULLSCREEN::,
|
||||||
height : ::WIN_HEIGHT::,
|
resizable : ::WIN_RESIZABLE::,
|
||||||
title : "::APP_TITLE::"
|
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
|
//Start up
|
||||||
|
|||||||
Reference in New Issue
Block a user