Fix WebGL2RenderContext indentation up to line 4533.

This commit is contained in:
Joseph Cloutier
2023-05-07 15:34:52 -04:00
parent 087660f7a7
commit 5f7d3170ac

View File

@@ -4188,348 +4188,348 @@ abstract WebGL2RenderContext(Dynamic) from Dynamic to Dynamic
} }
#if !lime_webgl #if !lime_webgl
public inline function getBufferSubData(target:Int, srcByteOffset:DataPointer, dstData:ArrayBuffer, srcOffset:Int = 0, ?length:Int):Void public inline function getBufferSubData(target:Int, srcByteOffset:DataPointer, dstData:ArrayBuffer, srcOffset:Int = 0, ?length:Int):Void
#else #else
public inline function getBufferSubData(target:Int, srcByteOffset:DataPointer, dstData:Dynamic, ?srcOffset:Dynamic, ?length:Int):Void public inline function getBufferSubData(target:Int, srcByteOffset:DataPointer, dstData:Dynamic, ?srcOffset:Dynamic, ?length:Int):Void
#end #end
{ {
#if !js #if !js
var size = (length != null) ? length : (dstData != null) ? dstData.length : 0; var size = (length != null) ? length : (dstData != null) ? dstData.length : 0;
this.getBufferSubData(target, srcByteOffset + srcOffset, size, dstData); this.getBufferSubData(target, srcByteOffset + srcOffset, size, dstData);
#end #end
} }
public inline function getContextAttributes():GLContextAttributes public inline function getContextAttributes():GLContextAttributes
{ {
return this.getContextAttributes(); return this.getContextAttributes();
} }
public inline function getError():Int public inline function getError():Int
{ {
return this.getError(); return this.getError();
} }
public inline function getExtension(name:String):Dynamic public inline function getExtension(name:String):Dynamic
{ {
return this.getExtension(name); return this.getExtension(name);
} }
public inline function getFragDataLocation(program:GLProgram, name:String):Int public inline function getFragDataLocation(program:GLProgram, name:String):Int
{ {
return this.getFragDataLocation(program, name); return this.getFragDataLocation(program, name);
} }
public inline function getFramebufferAttachmentParameter(target:Int, attachment:Int, pname:Int):Dynamic public inline function getFramebufferAttachmentParameter(target:Int, attachment:Int, pname:Int):Dynamic
{ {
return this.getFramebufferAttachmentParameter(target, attachment, pname); return this.getFramebufferAttachmentParameter(target, attachment, pname);
} }
public inline function getIndexedParameter(target:Int, index:Int):Dynamic public inline function getIndexedParameter(target:Int, index:Int):Dynamic
{ {
return this.getIndexedParameter(target, index); return this.getIndexedParameter(target, index);
} }
public inline function getInternalformatParameter(target:Int, internalformat:Int, pname:Int):Dynamic public inline function getInternalformatParameter(target:Int, internalformat:Int, pname:Int):Dynamic
{ {
return this.getInternalformatParameter(target, internalformat, pname); return this.getInternalformatParameter(target, internalformat, pname);
} }
public inline function getParameter(pname:Int):Dynamic public inline function getParameter(pname:Int):Dynamic
{ {
return this.getParameter(pname); return this.getParameter(pname);
} }
public inline function getProgramInfoLog(program:GLProgram):String public inline function getProgramInfoLog(program:GLProgram):String
{ {
return this.getProgramInfoLog(program); return this.getProgramInfoLog(program);
} }
public inline function getProgramParameter(program:GLProgram, pname:Int):Dynamic public inline function getProgramParameter(program:GLProgram, pname:Int):Dynamic
{ {
return this.getProgramParameter(program, pname); return this.getProgramParameter(program, pname);
} }
public inline function getQuery(target:Int, pname:Int):GLQuery public inline function getQuery(target:Int, pname:Int):GLQuery
{ {
return this.getQuery(target, pname); return this.getQuery(target, pname);
} }
public inline function getQueryParameter(query:GLQuery, pname:Int):Dynamic public inline function getQueryParameter(query:GLQuery, pname:Int):Dynamic
{ {
return this.getQueryParameter(query, pname); return this.getQueryParameter(query, pname);
} }
public inline function getRenderbufferParameter(target:Int, pname:Int):Dynamic public inline function getRenderbufferParameter(target:Int, pname:Int):Dynamic
{ {
return this.getRenderbufferParameter(target, pname); return this.getRenderbufferParameter(target, pname);
} }
public inline function getSamplerParameter(sampler:GLSampler, pname:Int):Dynamic public inline function getSamplerParameter(sampler:GLSampler, pname:Int):Dynamic
{ {
return this.getSamplerParameter(sampler, pname); return this.getSamplerParameter(sampler, pname);
} }
public inline function getShaderInfoLog(shader:GLShader):String public inline function getShaderInfoLog(shader:GLShader):String
{ {
return this.getShaderInfoLog(shader); return this.getShaderInfoLog(shader);
} }
public inline function getShaderParameter(shader:GLShader, pname:Int):Dynamic public inline function getShaderParameter(shader:GLShader, pname:Int):Dynamic
{ {
return this.getShaderParameter(shader, pname); return this.getShaderParameter(shader, pname);
} }
public inline function getShaderPrecisionFormat(shadertype:Int, precisiontype:Int):GLShaderPrecisionFormat public inline function getShaderPrecisionFormat(shadertype:Int, precisiontype:Int):GLShaderPrecisionFormat
{ {
return this.getShaderPrecisionFormat(shadertype, precisiontype); return this.getShaderPrecisionFormat(shadertype, precisiontype);
} }
public inline function getShaderSource(shader:GLShader):String public inline function getShaderSource(shader:GLShader):String
{ {
return this.getShaderSource(shader); return this.getShaderSource(shader);
} }
public inline function getSupportedExtensions():Array<String> public inline function getSupportedExtensions():Array<String>
{ {
return this.getSupportedExtensions(); return this.getSupportedExtensions();
} }
public inline function getSyncParameter(sync:GLSync, pname:Int):Dynamic public inline function getSyncParameter(sync:GLSync, pname:Int):Dynamic
{ {
return this.getSyncParameter(sync, pname); return this.getSyncParameter(sync, pname);
} }
public inline function getTexParameter(target:Int, pname:Int):Dynamic public inline function getTexParameter(target:Int, pname:Int):Dynamic
{ {
return this.getTexParameter(target, pname); return this.getTexParameter(target, pname);
} }
public inline function getTransformFeedbackVarying(program:GLProgram, index:Int):GLActiveInfo public inline function getTransformFeedbackVarying(program:GLProgram, index:Int):GLActiveInfo
{ {
return this.getTransformFeedbackVarying(program, index); return this.getTransformFeedbackVarying(program, index);
} }
public inline function getUniform(program:GLProgram, location:GLUniformLocation):Dynamic public inline function getUniform(program:GLProgram, location:GLUniformLocation):Dynamic
{ {
return this.getUniform(program, location); return this.getUniform(program, location);
} }
public inline function getUniformBlockIndex(program:GLProgram, uniformBlockName:String):Int public inline function getUniformBlockIndex(program:GLProgram, uniformBlockName:String):Int
{ {
return this.getUniformBlockIndex(program, uniformBlockName); return this.getUniformBlockIndex(program, uniformBlockName);
} }
public inline function getUniformIndices(program:GLProgram, uniformNames:Array<String>):Array<Int> public inline function getUniformIndices(program:GLProgram, uniformNames:Array<String>):Array<Int>
{ {
return this.getUniformIndices(program, uniformNames); return this.getUniformIndices(program, uniformNames);
} }
public inline function getUniformLocation(program:GLProgram, name:String):GLUniformLocation public inline function getUniformLocation(program:GLProgram, name:String):GLUniformLocation
{ {
return this.getUniformLocation(program, name); return this.getUniformLocation(program, name);
} }
public inline function getVertexAttrib(index:Int, pname:Int):Dynamic public inline function getVertexAttrib(index:Int, pname:Int):Dynamic
{ {
return this.getVertexAttrib(index, pname); return this.getVertexAttrib(index, pname);
} }
public inline function getVertexAttribOffset(index:Int, pname:Int):DataPointer public inline function getVertexAttribOffset(index:Int, pname:Int):DataPointer
{ {
return this.getVertexAttribPointerv(index, pname); return this.getVertexAttribPointerv(index, pname);
} }
public inline function hint(target:Int, mode:Int):Void public inline function hint(target:Int, mode:Int):Void
{ {
this.hint(target, mode); this.hint(target, mode);
} }
public inline function invalidateFramebuffer(target:Int, attachments:Array<Int>):Void public inline function invalidateFramebuffer(target:Int, attachments:Array<Int>):Void
{ {
this.invalidateFramebuffer(target, attachments); this.invalidateFramebuffer(target, attachments);
} }
public inline function invalidateSubFramebuffer(target:Int, attachments:Array<Int>, x:Int, y:Int, width:Int, height:Int):Void public inline function invalidateSubFramebuffer(target:Int, attachments:Array<Int>, x:Int, y:Int, width:Int, height:Int):Void
{ {
this.invalidateSubFramebuffer(target, attachments, x, y, width, height); this.invalidateSubFramebuffer(target, attachments, x, y, width, height);
} }
public inline function isBuffer(buffer:GLBuffer):Bool public inline function isBuffer(buffer:GLBuffer):Bool
{ {
return this.isBuffer(buffer); return this.isBuffer(buffer);
} }
public inline function isContextLost():Bool public inline function isContextLost():Bool
{ {
return this.isContextLost(); return this.isContextLost();
} }
public inline function isEnabled(cap:Int):Bool public inline function isEnabled(cap:Int):Bool
{ {
return this.isEnabled(cap); return this.isEnabled(cap);
} }
public inline function isFramebuffer(framebuffer:GLFramebuffer):Bool public inline function isFramebuffer(framebuffer:GLFramebuffer):Bool
{ {
return this.isFramebuffer(framebuffer); return this.isFramebuffer(framebuffer);
} }
public inline function isProgram(program:GLProgram):Bool public inline function isProgram(program:GLProgram):Bool
{ {
return this.isProgram(program); return this.isProgram(program);
} }
public inline function isQuery(query:GLQuery):Bool public inline function isQuery(query:GLQuery):Bool
{ {
return this.isQuery(query); return this.isQuery(query);
} }
public inline function isRenderbuffer(renderbuffer:GLRenderbuffer):Bool public inline function isRenderbuffer(renderbuffer:GLRenderbuffer):Bool
{ {
return this.isRenderbuffer(renderbuffer); return this.isRenderbuffer(renderbuffer);
} }
public inline function isSampler(sampler:GLSampler):Bool public inline function isSampler(sampler:GLSampler):Bool
{ {
return this.isSampler(sampler); return this.isSampler(sampler);
} }
public inline function isShader(shader:GLShader):Bool public inline function isShader(shader:GLShader):Bool
{ {
return this.isShader(shader); return this.isShader(shader);
} }
public inline function isSync(sync:GLSync):Bool public inline function isSync(sync:GLSync):Bool
{ {
return this.isSync(sync); return this.isSync(sync);
} }
public inline function isTexture(texture:GLTexture):Bool public inline function isTexture(texture:GLTexture):Bool
{ {
return this.isTexture(texture); return this.isTexture(texture);
} }
public inline function isTransformFeedback(transformFeedback:GLTransformFeedback):Bool public inline function isTransformFeedback(transformFeedback:GLTransformFeedback):Bool
{ {
return this.isTransformFeedback(transformFeedback); return this.isTransformFeedback(transformFeedback);
} }
public inline function isVertexArray(vertexArray:GLVertexArrayObject):Bool public inline function isVertexArray(vertexArray:GLVertexArrayObject):Bool
{ {
return this.isVertexArray(vertexArray); return this.isVertexArray(vertexArray);
} }
public inline function lineWidth(width:Float):Void public inline function lineWidth(width:Float):Void
{ {
this.lineWidth(width); this.lineWidth(width);
} }
public inline function linkProgram(program:GLProgram):Void public inline function linkProgram(program:GLProgram):Void
{ {
this.linkProgram(program); this.linkProgram(program);
} }
public inline function pauseTransformFeedback():Void public inline function pauseTransformFeedback():Void
{ {
this.pauseTransformFeedback(); this.pauseTransformFeedback();
} }
public inline function pixelStorei(pname:Int, param:Int):Void public inline function pixelStorei(pname:Int, param:Int):Void
{ {
this.pixelStorei(pname, param); this.pixelStorei(pname, param);
} }
public inline function polygonOffset(factor:Float, units:Float):Void public inline function polygonOffset(factor:Float, units:Float):Void
{ {
this.polygonOffset(factor, units); this.polygonOffset(factor, units);
} }
public inline function readBuffer(src:Int):Void public inline function readBuffer(src:Int):Void
{ {
this.readBuffer(src); this.readBuffer(src);
} }
#if !lime_webgl #if !lime_webgl
public inline function readPixels(x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:ArrayBufferView, public inline function readPixels(x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:ArrayBufferView,
dstOffset:Int = 0):Void dstOffset:Int = 0):Void
#else #else
public inline function readPixels(x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:Dynamic, ?dstOffset:Int):Void public inline function readPixels(x:Int, y:Int, width:Int, height:Int, format:Int, type:Int, pixels:Dynamic, ?dstOffset:Int):Void
#end #end
{ {
__tempPointer.set(pixels, dstOffset); __tempPointer.set(pixels, dstOffset);
this.readPixels(x, y, width, height, format, type, __tempPointer); this.readPixels(x, y, width, height, format, type, __tempPointer);
} }
public inline function renderbufferStorage(target:Int, internalformat:Int, width:Int, height:Int):Void public inline function renderbufferStorage(target:Int, internalformat:Int, width:Int, height:Int):Void
{ {
this.renderbufferStorage(target, internalformat, width, height); this.renderbufferStorage(target, internalformat, width, height);
} }
public inline function renderbufferStorageMultisample(target:Int, samples:Int, internalformat:Int, width:Int, height:Int):Void public inline function renderbufferStorageMultisample(target:Int, samples:Int, internalformat:Int, width:Int, height:Int):Void
{ {
this.renderbufferStorageMultisample(target, samples, internalformat, width, height); this.renderbufferStorageMultisample(target, samples, internalformat, width, height);
} }
public inline function resumeTransformFeedback():Void public inline function resumeTransformFeedback():Void
{ {
this.resumeTransformFeedback(); this.resumeTransformFeedback();
} }
public inline function sampleCoverage(value:Float, invert:Bool):Void public inline function sampleCoverage(value:Float, invert:Bool):Void
{ {
this.sampleCoverage(value, invert); this.sampleCoverage(value, invert);
} }
public inline function samplerParameterf(sampler:GLSampler, pname:Int, param:Float):Void public inline function samplerParameterf(sampler:GLSampler, pname:Int, param:Float):Void
{ {
this.samplerParameterf(sampler, pname, param); this.samplerParameterf(sampler, pname, param);
} }
public inline function samplerParameteri(sampler:GLSampler, pname:Int, param:Int):Void public inline function samplerParameteri(sampler:GLSampler, pname:Int, param:Int):Void
{ {
this.samplerParameteri(sampler, pname, param); this.samplerParameteri(sampler, pname, param);
} }
public inline function scissor(x:Int, y:Int, width:Int, height:Int):Void public inline function scissor(x:Int, y:Int, width:Int, height:Int):Void
{ {
this.scissor(x, y, width, height); this.scissor(x, y, width, height);
} }
public inline function shaderSource(shader:GLShader, source:String):Void public inline function shaderSource(shader:GLShader, source:String):Void
{ {
this.shaderSource(shader, source); this.shaderSource(shader, source);
} }
public inline function stencilFunc(func:Int, ref:Int, mask:Int):Void public inline function stencilFunc(func:Int, ref:Int, mask:Int):Void
{ {
this.stencilFunc(func, ref, mask); this.stencilFunc(func, ref, mask);
} }
public inline function stencilFuncSeparate(face:Int, func:Int, ref:Int, mask:Int):Void public inline function stencilFuncSeparate(face:Int, func:Int, ref:Int, mask:Int):Void
{ {
this.stencilFuncSeparate(face, func, ref, mask); this.stencilFuncSeparate(face, func, ref, mask);
} }
public inline function stencilMask(mask:Int):Void public inline function stencilMask(mask:Int):Void
{ {
this.stencilMask(mask); this.stencilMask(mask);
} }
public inline function stencilMaskSeparate(face:Int, mask:Int):Void public inline function stencilMaskSeparate(face:Int, mask:Int):Void
{ {
this.stencilMaskSeparate(face, mask); this.stencilMaskSeparate(face, mask);
} }
public inline function stencilOp(fail:Int, zfail:Int, zpass:Int):Void public inline function stencilOp(fail:Int, zfail:Int, zpass:Int):Void
{ {
this.stencilOp(fail, zfail, zpass); this.stencilOp(fail, zfail, zpass);
} }
public inline function stencilOpSeparate(face:Int, fail:Int, zfail:Int, zpass:Int):Void public inline function stencilOpSeparate(face:Int, fail:Int, zfail:Int, zpass:Int):Void
{ {
this.stencilOpSeparate(face, fail, zfail, zpass); this.stencilOpSeparate(face, fail, zfail, zpass);
} }
#if !lime_webgl #if !lime_webgl
public inline function texImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int, public inline function texImage2D(target:Int, level:Int, internalformat:Int, width:Int, height:Int, border:Int, format:Int,