Fixing code complete! Turns out it was simply the lime native/lime_html5 not being defined = lots of missing classes

This commit is contained in:
underscorediscovery
2013-07-26 06:54:39 -02:30
parent ef17f47bff
commit a20e1ebebb
15 changed files with 72 additions and 105 deletions

View File

@@ -1,7 +1,6 @@
package lime;
import lime.utils.Libs;
import nme.AssetData;
class SoundTransform {

View File

@@ -1,15 +1,7 @@
package lime.gl;
#if lime_native
typedef GL = lime.gl.native.GL;
#end //lime_native
#if lime_html5
typedef GL = lime.gl.html5.GL;
#else
typedef GL = lime.gl.native.GL;
#end //lime_html5

View File

@@ -1,19 +1,17 @@
package lime.gl;
#if lime_native
typedef GLActiveInfo = {
size : Int,
type : Int,
name : String,
};
#end //lime_native
#if lime_html5
typedef GLActiveInfo = js.html.webgl.ActiveInfo;
#else
typedef GLActiveInfo = {
size : Int,
type : Int,
name : String,
};
#end //lime_html5

View File

@@ -1,6 +1,10 @@
package lime.gl;
#if lime_native
#if lime_html5
typedef GLBuffer = js.html.webgl.Buffer;
#else
class GLBuffer extends GLObject {
public function new (version:Int, id:Dynamic) {
@@ -11,10 +15,4 @@ package lime.gl;
}
}
#end //lime_native
#if lime_html5
typedef GLBuffer = js.html.webgl.Buffer;
#end //lime_html5

View File

@@ -1,23 +1,20 @@
package lime.gl;
#if lime_native
typedef GLContextAttributes = {
alpha:Bool,
depth:Bool,
stencil:Bool,
antialias:Bool,
premultipliedAlpha:Bool,
preserveDrawingBuffer:Bool,
};
#end //lime_native
#if lime_html5
typedef GLContextAttributes = js.html.webgl.ContextAttributes;
#else
typedef GLContextAttributes = {
alpha:Bool,
depth:Bool,
stencil:Bool,
antialias:Bool,
premultipliedAlpha:Bool,
preserveDrawingBuffer:Bool,
};
#end //lime_html5

View File

@@ -1,6 +1,11 @@
package lime.gl;
#if lime_native
#if lime_html5
typedef GLFramebuffer = js.html.webgl.Framebuffer;
#else
class GLFramebuffer extends GLObject {
@@ -15,11 +20,4 @@ package lime.gl;
} //GLFramebuffer
#end //lime_native
#if lime_html5
typedef GLFramebuffer = js.html.webgl.Framebuffer;
#end //lime_html5

View File

@@ -1,6 +1,11 @@
package lime.gl;
#if lime_native
#if lime_html5
typedef GLObject = Dynamic;
#else //lime_html5
class GLObject {
@@ -50,9 +55,3 @@ package lime.gl;
}
#end //lime_native
#if lime_html5
typedef GLObject = Dynamic;
#end //lime_html5

View File

@@ -1,7 +1,12 @@
package lime.gl;
#if lime_native
#if lime_html5
typedef GLProgram = js.html.webgl.Program;
#else //lime_html5
class GLProgram extends GLObject {
@@ -26,9 +31,3 @@ package lime.gl;
}
#end //lime_native
#if lime_html5
typedef GLProgram = js.html.webgl.Program;
#end //lime_html5

View File

@@ -1,7 +1,10 @@
package lime.gl;
#if lime_html5
#if lime_native
typedef GLRenderbuffer = js.html.webgl.Renderbuffer;
#else //lime_html5
class GLRenderbuffer extends GLObject {
@@ -17,8 +20,3 @@ package lime.gl;
#end //lime_native
#if lime_html5
typedef GLRenderbuffer = js.html.webgl.Renderbuffer;
#end //lime_html5

View File

@@ -1,7 +1,11 @@
package lime.gl;
#if lime_native
#if lime_html5
typedef GLShader = js.html.webgl.Shader;
#else //lime_html5
class GLShader extends GLObject {
@@ -17,8 +21,3 @@ package lime.gl;
#end //lime_native
#if lime_html5
typedef GLShader = js.html.webgl.Shader;
#end //lime_html5

View File

@@ -1,7 +1,11 @@
package lime.gl;
#if lime_native
#if lime_html5
typedef GLTexture = js.html.webgl.Texture;
#else //lime_html5
class GLTexture extends GLObject {
@@ -18,8 +22,3 @@ package lime.gl;
#end //lime_native
#if lime_html5
typedef GLTexture = js.html.webgl.Texture;
#end //lime_html5

View File

@@ -1,13 +1,12 @@
package lime.gl;
#if lime_native
typedef GLUniformLocation = Dynamic;
#end //lime_native
#if lime_html5
typedef GLUniformLocation = js.html.webgl.UniformLocation;
#end //lime_html5
#else //lime_html5
typedef GLUniformLocation = Dynamic;
#end //lime_native

View File

@@ -4,9 +4,7 @@ package lime.utils;
typedef ArrayBufferView = js.html.ArrayBufferView;
#end //lime_html5
#if lime_native
#else
import lime.utils.ByteArray;

View File

@@ -4,10 +4,7 @@ package lime.utils;
typedef Float32Array = js.html.Float32Array;
#end //lime_html5
#if lime_native
#else
import lime.geometry.Matrix3D;

View File

@@ -4,10 +4,7 @@ package lime.utils;
typedef UInt8Array = js.html.Uint8Array;
#end //lime_html5
#if lime_native
#else
class UInt8Array extends ArrayBufferView implements ArrayAccess<Int> {