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; package lime;
import lime.utils.Libs; import lime.utils.Libs;
import nme.AssetData;
class SoundTransform { class SoundTransform {

View File

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

View File

@@ -1,6 +1,10 @@
package lime.gl; package lime.gl;
#if lime_native #if lime_html5
typedef GLActiveInfo = js.html.webgl.ActiveInfo;
#else
typedef GLActiveInfo = { typedef GLActiveInfo = {
@@ -10,10 +14,4 @@ typedef GLActiveInfo = {
}; };
#end //lime_native
#if lime_html5
typedef GLActiveInfo = js.html.webgl.ActiveInfo;
#end //lime_html5 #end //lime_html5

View File

@@ -1,6 +1,10 @@
package lime.gl; package lime.gl;
#if lime_native #if lime_html5
typedef GLBuffer = js.html.webgl.Buffer;
#else
class GLBuffer extends GLObject { class GLBuffer extends GLObject {
public function new (version:Int, id:Dynamic) { 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 #end //lime_html5

View File

@@ -1,7 +1,10 @@
package lime.gl; package lime.gl;
#if lime_html5
#if lime_native typedef GLContextAttributes = js.html.webgl.ContextAttributes;
#else
typedef GLContextAttributes = { typedef GLContextAttributes = {
@@ -14,10 +17,4 @@ package lime.gl;
}; };
#end //lime_native
#if lime_html5
typedef GLContextAttributes = js.html.webgl.ContextAttributes;
#end //lime_html5 #end //lime_html5

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,13 +1,12 @@
package lime.gl; package lime.gl;
#if lime_native
typedef GLUniformLocation = Dynamic;
#end //lime_native
#if lime_html5 #if lime_html5
typedef GLUniformLocation = js.html.webgl.UniformLocation; 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; typedef ArrayBufferView = js.html.ArrayBufferView;
#end //lime_html5 #else
#if lime_native
import lime.utils.ByteArray; import lime.utils.ByteArray;

View File

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

View File

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