Static variables

@:value(6)staticinlineread onlyKROM_API:Int = 6

Static methods

staticbegin(renderTarget:Canvas, additionalRenderTargets:Array<Canvas>):Void

staticbeginFace(renderTarget:Canvas, face:Int):Void

staticclear(flags:Int, color:Int, depth:Float, stencil:Int):Void

staticclearTexture(target:Dynamic, x:Int, y:Int, z:Int, width:Int, height:Int, depth:Int, color:Int):Void

staticcompilePipeline(pipeline:Dynamic, structure0:Dynamic, structure1:Dynamic, structure2:Dynamic, structure3:Dynamic, length:Int, vertexShader:Dynamic, fragmentShader:Dynamic, geometryShader:Dynamic, tessellationControlShader:Dynamic, tessellationEvaluationShader:Dynamic, state:Dynamic):Void

staticcompute(x:Int, y:Int, z:Int):Void

staticcreateRenderTarget(width:Int, height:Int, format:Int, depthBufferBits:Int, stencilBufferBits:Int):Dynamic

staticcreateRenderTargetCubeMap(cubeMapSize:Int, format:Int, depthBufferBits:Int, stencilBufferBits:Int):Dynamic

staticcreateTexture(width:Int, height:Int, format:Int):Dynamic

staticcreateTexture3D(width:Int, height:Int, depth:Int, format:Int):Dynamic

staticcreateTextureFromBytes(data:BytesData, width:Int, height:Int, format:Int, readable:Bool):Dynamic

staticcreateTextureFromBytes3D(data:BytesData, width:Int, height:Int, depth:Int, format:Int, readable:Bool):Dynamic

staticcreateVertexBuffer(count:Int, structure:Array<VertexElement>, usage:Int, instanceDataStepRate:Int):Dynamic

staticdisplayHeight(index:Int):Int

staticdisplayWidth(index:Int):Int

staticdisplayX(index:Int):Int

staticdisplayY(index:Int):Int

staticdrawIndexedVertices(start:Int, count:Int):Void

staticdrawIndexedVerticesInstanced(instanceCount:Int, start:Int, count:Int):Void

staticend():Void

staticfileSaveBytes(path:String, bytes:BytesData):Void

staticgenerateRenderTargetMipmaps(renderTarget:Dynamic, levels:Int):Void

staticgenerateTextureMipmaps(texture:Dynamic, levels:Int):Void

staticgetArg(index:Int):String

staticgetRenderTargetPixels(renderTarget:Dynamic, data:BytesData):Void

staticgetTextureUnit(pipeline:Dynamic, name:String):Dynamic

staticgetTime():Float

staticinit(title:String, width:Int, height:Int, samplesPerPixel:Int, vSync:Bool, windowMode:Int, windowFeatures:Int, kromApi:Int):Void

staticloadImage(file:String, readable:Bool):Dynamic

staticlockMouse():Void

staticlockTexture(texture:Dynamic, level:Int):ArrayBuffer

staticlockVertexBuffer(buffer:Dynamic, start:Int, count:Int):ArrayBuffer

staticlog(v:Dynamic):Void

staticscissor(x:Int, y:Int, width:Int, height:Int):Void

staticscreenDpi():Int

staticsetApplicationStateCallback(foregroundCallback:() ‑> Void, resumeCallback:() ‑> Void, pauseCallback:() ‑> Void, backgroundCallback:() ‑> Void, shutdownCallback:() ‑> Void):Void

staticsetAudioCallback(callback:Int ‑> Void):Void

staticsetBool(location:ConstantLocation, value:Bool):Void

staticsetBoolCompute(location:ConstantLocation, value:Bool):Void

staticsetCallback(callback:() ‑> Void):Void

staticsetCubeMapCompareMode(texunit:TextureUnit, enabled:Bool):Void

staticsetCutCopyPasteCallback(cutCallback:() ‑> String, copyCallback:() ‑> String, pasteCallback:String ‑> Void):Void

staticsetDepthStencilFrom(target:Dynamic, source:Dynamic):Void

staticsetDropFilesCallback(callback:String ‑> Void):Void

staticsetFloat(location:ConstantLocation, value:Float):Void

staticsetFloat2(location:ConstantLocation, value1:Float, value2:Float):Void

staticsetFloat2Compute(location:ConstantLocation, value1:Float, value2:Float):Void

staticsetFloat3(location:ConstantLocation, value1:Float, value2:Float, value3:Float):Void

staticsetFloat3Compute(location:ConstantLocation, value1:Float, value2:Float, value3:Float):Void

staticsetFloat4(location:ConstantLocation, value1:Float, value2:Float, value3:Float, value4:Float):Void

staticsetFloat4Compute(location:ConstantLocation, value1:Float, value2:Float, value3:Float, value4:Float):Void

staticsetFloats(location:ConstantLocation, values:ArrayBuffer):Void

staticsetGamepadAxisCallback(callback:(Int, Int, Float) ‑> Void):Void

staticsetGamepadButtonCallback(callback:(Int, Int, Float) ‑> Void):Void

staticsetImageTexture(stage:TextureUnit, texture:Dynamic):Void

staticsetInt(location:ConstantLocation, value:Int):Void

staticsetIntCompute(location:ConstantLocation, value:Int):Void

staticsetKeyboardDownCallback(callback:Int ‑> Void):Void

staticsetKeyboardPressCallback(callback:Int ‑> Void):Void

staticsetKeyboardUpCallback(callback:Int ‑> Void):Void

staticsetMatrix(location:ConstantLocation, matrix:ArrayBuffer):Void

staticsetMipmaps(texture:Dynamic, mipmaps:Array<Image>):Void

staticsetMouseDownCallback(callback:(Int, Int, Int) ‑> Void):Void

staticsetMouseMoveCallback(callback:(Int, Int, Int, Int) ‑> Void):Void

staticsetMousePosition(windowId:Int, x:Int, y:Int):Void

staticsetMouseUpCallback(callback:(Int, Int, Int) ‑> Void):Void

staticsetMouseWheelCallback(callback:Int ‑> Void):Void

staticsetPenDownCallback(callback:(Int, Int, Float) ‑> Void):Void

staticsetPenMoveCallback(callback:(Int, Int, Float) ‑> Void):Void

staticsetPenUpCallback(callback:(Int, Int, Float) ‑> Void):Void

staticsetPipeline(pipeline:Dynamic):Void

staticsetRenderTarget(stage:TextureUnit, renderTarget:Dynamic):Void

staticsetRenderTargetCompute(unit:TextureUnit, renderTarget:Dynamic, access:Int):Void

staticsetTexture(stage:TextureUnit, texture:Dynamic):Void

staticsetTexture3DParameters(texunit:TextureUnit, uAddressing:Int, vAddressing:Int, wAddressing:Int, minificationFilter:Int, magnificationFilter:Int, mipmapFilter:Int):Void

staticsetTexture3DParametersCompute(texunit:TextureUnit, uAddressing:Int, vAddressing:Int, wAddressing:Int, minificationFilter:Int, magnificationFilter:Int, mipmapFilter:Int):Void

staticsetTextureCompareMode(texunit:TextureUnit, enabled:Bool):Void

staticsetTextureCompute(unit:TextureUnit, texture:Dynamic, access:Int):Void

staticsetTextureParameters(texunit:TextureUnit, uAddressing:Int, vAddressing:Int, minificationFilter:Int, magnificationFilter:Int, mipmapFilter:Int):Void

staticsetTextureParametersCompute(texunit:TextureUnit, uAddressing:Int, vAddressing:Int, minificationFilter:Int, magnificationFilter:Int, mipmapFilter:Int):Void

staticsetVertexBuffers(vertexBuffers:Array<VertexBuffer>):Void

staticsetWindowTitle(id:Int, title:String):Void

staticshowMouse(show:Bool):Void

staticsysCommand(cmd:String, ?args:Array<String>):Int

staticunloadImage(image:Image):Void

staticunlockTexture(texture:Dynamic):Void

staticunlockVertexBuffer(buffer:Dynamic, count:Int):Void

staticviewport(x:Int, y:Int, width:Int, height:Int):Void

staticwindowHeight(id:Int):Int

staticwindowWidth(id:Int):Int

staticwriteAudioBuffer(buffer:ArrayBuffer, samples:Int):Void

staticwriteStorage(name:String, data:BytesData):Void