diff --git a/haxelib.json b/haxelib.json index c4bb6b8..cffb254 100644 --- a/haxelib.json +++ b/haxelib.json @@ -4,7 +4,7 @@ "license" : "MIT", "tags" : ["WebGL","javascript","js" ], "description" : "Kit to help with WebGL", - "version" : "0.0.1-alpha", + "version" : "0.0.2-alpha", "releasenote" : "See https://github.com/nanjizal/hyperKitGL/blob/master/CHANGELOG.md", "classPath" : "src", "contributors" : ["Nanjizal"], diff --git a/pages/hyperKitGL/BufferGL.html b/pages/hyperKitGL/BufferGL.html index cca8744..e225ab2 100644 --- a/pages/hyperKitGL/BufferGL.html +++ b/pages/hyperKitGL/BufferGL.html @@ -6,4 +6,4 @@ display: inline-block; float: none; text-shadow: 0 0 0 transparent; -

Variables

@:value(bufferSetup)bufferSetup_:(gl:GL, program:Program, data:Float32Array, isDynamic:Bool) ‑> Buffer = bufferSetup

@:value(colorsXYZ_RGBA)colorsXYZ_RGBA_:(gl:GL, program:Program, positions:Float32Array, colors:Float32Array, inPosName:String, inColName:String) ‑> Void = colorsXYZ_RGBA

@:value(colorsXY_RGBA)colorsXY_RGBA_:(gl:GL, program:Program, positions:Float32Array, colors:Float32Array, inPosName:String, inColName:String) ‑> Void = colorsXY_RGBA

@:value(interleaveXYZ_RGBA)interleaveXYZ_RGBA_:(gl:RenderingContext, program:Program, data:Float32Array, inPosName:String, inColName:String, isDynamic:Bool) ‑> Buffer = interleaveXYZ_RGBA

@:value(interleaveXYZ_RGBA_UV)interleaveXYZ_RGBA_UV_:(gl:GL, program:Program, data:Float32Array, inPosName:String, inColName:String, inUVName:String, isDynamic:Bool) ‑> Buffer = interleaveXYZ_RGBA_UV

@:value(interleaveXY_RGB)interleaveXY_RGB_:(gl:GL, program:Program, data:Float32Array, inPosName:String, inColName:String, isDynamic:Bool) ‑> Buffer = interleaveXY_RGB

@:value(posColors)posColors_:(gl:GL, program:Program, positions:Float32Array, colors:Float32Array, inPosName:String, inColName:String, noPos:Int, noCols:Int) ‑> Void = posColors

\ No newline at end of file +

Variables

@:value(bufferSetup)bufferSetup_:(gl:GL, program:Program, data:Float32Array, isDynamic:Bool) ‑> Buffer = bufferSetup

@:value(colorsXYZ_RGBA)colorsXYZ_RGBA_:(gl:GL, program:Program, positions:Float32Array, colors:Float32Array, inPosName:String, inColName:String) ‑> Void = colorsXYZ_RGBA

@:value(colorsXY_RGBA)colorsXY_RGBA_:(gl:GL, program:Program, positions:Float32Array, colors:Float32Array, inPosName:String, inColName:String) ‑> Void = colorsXY_RGBA

@:value(interleaveXYZ_RGBA)interleaveXYZ_RGBA_:(gl:RenderingContext, program:Program, data:Float32Array, inPosName:String, inColName:String, isDynamic:Bool) ‑> Buffer = interleaveXYZ_RGBA

@:value(interleaveXYZ_RGBA_UV)interleaveXYZ_RGBA_UV_:(gl:GL, program:Program, data:Float32Array, inPosName:String, inColName:String, inUVName:String, isDynamic:Bool) ‑> Buffer = interleaveXYZ_RGBA_UV

@:value(interleaveXY_RGB)interleaveXY_RGB_:(gl:GL, program:Program, data:Float32Array, inPosName:String, inColName:String, isDynamic:Bool) ‑> Buffer = interleaveXY_RGB

@:value(passIndicesToShader)passIndicesToShader_:(gl:GL, indices:Array<Int>, isDynamic:Bool) ‑> Buffer = passIndicesToShader

@:value(posColors)posColors_:(gl:GL, program:Program, positions:Float32Array, colors:Float32Array, inPosName:String, inColName:String, noPos:Int, noCols:Int) ‑> Void = posColors

\ No newline at end of file diff --git a/pages/hyperKitGL/HelpGL.html b/pages/hyperKitGL/HelpGL.html index bc3ca7e..c37e377 100644 --- a/pages/hyperKitGL/HelpGL.html +++ b/pages/hyperKitGL/HelpGL.html @@ -6,4 +6,4 @@ display: inline-block; float: none; text-shadow: 0 0 0 transparent; -

Variables

@:value(clearAll)clearAll_:(gl:GL, width:Int, height:Int) ‑> Void = clearAll

@:value(passIndicesToShader)passIndicesToShader_:(gl:GL, indices:Array<Int>) ‑> Void = passIndicesToShader

@:value(programSetup)programSetup_:(gl:GL, strVertex:String, strFragment:String) ‑> Program = programSetup

@:value(shaderSetup)shaderSetup_:(gl:GL, shaderType:Int, str:String) ‑> Shader = shaderSetup

\ No newline at end of file +

Variables

@:value(clearAll)clearAll_:(gl:GL, width:Int, height:Int) ‑> Void = clearAll

@:value(programSetup)programSetup_:(gl:GL, strVertex:String, strFragment:String) ‑> Program = programSetup

@:value(shaderSetup)shaderSetup_:(gl:GL, shaderType:Int, str:String) ‑> Shader = shaderSetup

\ No newline at end of file diff --git a/pages/hyperKitGL/PlyMix.html b/pages/hyperKitGL/PlyMix.html index fb39e5d..af1170b 100644 --- a/pages/hyperKitGL/PlyMix.html +++ b/pages/hyperKitGL/PlyMix.html @@ -6,4 +6,4 @@ display: inline-block; float: none; text-shadow: 0 0 0 transparent; -

Constructor

@:value({ animate : true, hasImage : true })new(width_:Int, height_:Int, hasImage:Bool = true, animate:Bool = true)

Variables

animate:Bool

bufColor:Buffer

bufTexture:Buffer

gl:RenderingContext

@:value(true)hasImage:Bool = true

height:Int

img:Image

@:value(ModeNone)mode:ProgramMode = ModeNone

programColor:Program

tex:Texture

@:value(new Array<Texture>())textureArr:Array<Texture> = new Array<Texture>()

@:value([1., 0., 0., 0., 1., 0., 0., 0., 1.])transformUVArr:Array<Float> = [1., 0., 0., 0., 1., 0., 0., 0., 1.]

width:Int

Methods

changeImage(img_:Image):Void

draw():Void

drawColorShape(start:Int, end:Int):Void

drawData(program:Program, dataGL:DataGL, start:Int, end:Int, len:Int):Void

drawTextureShape(start:Int, end:Int, bgColor:Int):Void

inlinenotAlpha():Void

renderDraw():Void

renderOnce():Void

setBackgroundShapeColor(red:Float, green:Float, blue:Float, alpha:Float):Void

inlinewithAlpha():Void

\ No newline at end of file +

Constructor

@:value({ animate : true, hasImage : true })new(width_:Int, height_:Int, hasImage:Bool = true, animate:Bool = true)

Variables

animate:Bool

bufColor:Buffer

bufIndices:Buffer

bufTexture:Buffer

gl:RenderingContext

@:value(true)hasImage:Bool = true

height:Int

img:Image

@:value(ModeNone)mode:ProgramMode = ModeNone

programColor:Program

tex:Texture

@:value(new Array<Texture>())textureArr:Array<Texture> = new Array<Texture>()

@:value([1., 0., 0., 0., 1., 0., 0., 0., 1.])transformUVArr:Array<Float> = [1., 0., 0., 0., 1., 0., 0., 0., 1.]

width:Int

Methods

changeImage(img_:Image):Void

draw():Void

drawColorShape(start:Int, end:Int):Void

drawData(program:Program, dataGL:DataGL, start:Int, end:Int, len:Int):Void

drawTextureShape(start:Int, end:Int, bgColor:Int):Void

inlinenotAlpha():Void

renderDraw():Void

renderOnce():Void

setBackgroundShapeColor(red:Float, green:Float, blue:Float, alpha:Float):Void

inlinewithAlpha():Void

\ No newline at end of file diff --git a/pages/hyperKitGL/io/FlatUnit.html b/pages/hyperKitGL/io/FlatUnit.html new file mode 100644 index 0000000..61b83e8 --- /dev/null +++ b/pages/hyperKitGL/io/FlatUnit.html @@ -0,0 +1,9 @@ + + + +hyperKitGL.io.FlatUnit - hyperKitGL API documentation

Static methods

@:op([])staticinlinereadItem(this:Float32Flat, k:Int):Float

@:op([])staticinlinewriteItem(this:Float32Flat, k:Int, v:Float):Float

\ No newline at end of file diff --git a/pages/hyperKitGL/io/Float32Flat.html b/pages/hyperKitGL/io/Float32Flat.html index 5f5167a..1a2af1f 100644 --- a/pages/hyperKitGL/io/Float32Flat.html +++ b/pages/hyperKitGL/io/Float32Flat.html @@ -6,12 +6,12 @@ display: inline-block; float: none; text-shadow: 0 0 0 transparent; -

Static variables

staticindex:Int

staticpos:Float

staticsize:Int

Static methods

staticinlineclone(this:Float32Array):Float32Flat

staticinlinefill(this:Float32Array, arr:Float32Array):Void

@:fromstaticinlinefromArray(arr:Float32Array):Float32Flat

staticinlinehasNext(this:Float32Array):Bool

@:op(A++)staticinlineincrement(this:Float32Array):Float

staticinlinenext(this:Float32Array):Float

@:op([])staticinlinereadItem(this:Float32Array, k:Int):Float


+

Static variables

staticindex:Int

staticpos:Float

staticsize:Int

Static methods

staticinlineclone(this:Float32Array):Float32Flat

staticinlinefill(this:Float32Array, arr:Float32Array):Void

staticinlinefits(this:Float32Array, k:Int):Bool

@:fromstaticinlinefromArray(arr:Float32Array):Float32Flat

staticinlinehasNext(this:Float32Array):Bool

@:op(A++)staticinlineincrement(this:Float32Array):Float

staticinlinenext(this:Float32Array):Float

staticinlineoptimiseLength(this:Float32Array):Int

@:op([])staticinlinereadItem(this:Float32Array, k:Int):Float


 >>> ({ 
 ... var ff = new Float32Flat(2);
 ... ff[0] = 1.;
 ... ff[0] == 1.; }) == true
-

@:tostaticinlinetoArray(this:Float32Array):Float32Array

@:op([])staticinlinewriteItem(this:Float32Array, k:Int, v:Float):Float


+

staticinlineresize(this:Float32Array, l:Int):Void

@:tostaticinlinetoArray(this:Float32Array):Float32Array

@:op([])staticinlinewriteItem(this:Float32Array, k:Int, v:Float):Float


 >>> ({ 
 ... var ff = new Float32Flat(2);
 ... ff[0] = 1.;
diff --git a/pages/hyperKitGL/io/index.html b/pages/hyperKitGL/io/index.html
index 0aa7029..dde0776 100644
--- a/pages/hyperKitGL/io/index.html
+++ b/pages/hyperKitGL/io/index.html
@@ -6,4 +6,4 @@
 	display: inline-block;
 	float: none;
 	text-shadow: 0 0 0 transparent;
-
\ No newline at end of file +
\ No newline at end of file diff --git a/pages/nav.js b/pages/nav.js index e42c0f4..a0e2526 100644 --- a/pages/nav.js +++ b/pages/nav.js @@ -1 +1 @@ -var navContent=''; \ No newline at end of file +var navContent=''; \ No newline at end of file diff --git a/upkeep/js.xml b/upkeep/js.xml index 7a965c2..0f60441 100644 --- a/upkeep/js.xml +++ b/upkeep/js.xml @@ -840,6 +840,10 @@ + + + + @@ -2012,6 +2016,15 @@ bufferSetup + + + + + + + + passIndicesToShader + @@ -2087,13 +2100,13 @@ posColors - + - + @@ -2104,10 +2117,18 @@ { isDynamic : false } - - + + + + + + + + { isDynamic : false } + + @@ -2116,13 +2137,13 @@ - + - + @@ -2131,7 +2152,7 @@ - + @@ -2143,14 +2164,14 @@ { isDynamic : false } - + - + @@ -2163,7 +2184,7 @@ { isDynamic : false } - + @@ -2171,14 +2192,14 @@ - + - + @@ -2190,7 +2211,7 @@ { isDynamic : false } - + @@ -2202,7 +2223,7 @@ - + @@ -2214,7 +2235,7 @@ - + @@ -2226,7 +2247,7 @@ - + @@ -2238,7 +2259,7 @@ - + @@ -2483,15 +2504,7 @@ shaderSetup - - - - - - - passIndicesToShader - - + @@ -2515,11 +2528,6 @@ - - - - - @@ -2835,6 +2843,7 @@ + ()]]> @@ -2876,41 +2885,45 @@ ModeNone - - + + - - - - - - + + + + + + + + + + - + - - - + + + - + - + @@ -2918,12 +2931,12 @@ - - - - - - + + + + + + @@ -3243,23 +3256,23 @@ - + - + - + - + @@ -3303,23 +3316,23 @@ - + - + - + - + @@ -3370,23 +3383,23 @@ - + - + - + - + @@ -3430,23 +3443,23 @@ - + - + - + - + @@ -3581,6 +3594,65 @@ + + + + + + + + + + + + + + [] + + + + + + + + + [] + + <_new public="1" get="inline" set="null" line="18" static="1"> + + + + + + + + + + + + + + + + [] + + + + + + + + + [] + + <_new public="1" get="inline" set="null" line="18" static="1"> + + + + + + + * switches between Lime, NME and haxe.io.Float32Array @@ -3608,7 +3680,7 @@ * ... ff[0] == 1.; }) == true *
]]> - + @@ -3623,7 +3695,7 @@ * ... ff[0] == 1.; }) == true *
]]> - <_new public="1" get="inline" set="null" line="37" static="1"> + <_new public="1" get="inline" set="null" line="39" static="1"> @@ -3631,78 +3703,91 @@ - + - + - + - + - + - + - + + + + + + + + + + + + + + + - + - + - + A++ - + - + - + - + - @@ -3720,7 +3805,7 @@ * ... ff[0] == 1.; }) == true * ]]> - + @@ -3735,7 +3820,7 @@ * ... ff[0] == 1.; }) == true * ]]> - <_new public="1" get="inline" set="null" line="37" static="1"> + <_new public="1" get="inline" set="null" line="39" static="1"> @@ -3743,78 +3828,91 @@ - + - + - + - + - + - + - + + + + + + + + + + + + + + + - + - + - + A++ - + - + - + - + -