Docs fix
This commit is contained in:
@@ -907,7 +907,9 @@ class GL {
|
||||
#if (js && html5)
|
||||
@:dox(hide) @:noCompletion public static inline function clearDepth (depth:Float):Void {
|
||||
|
||||
#if !display
|
||||
context.clearDepth (depth);
|
||||
#end
|
||||
|
||||
}
|
||||
#end
|
||||
@@ -1207,7 +1209,9 @@ class GL {
|
||||
#if (js && html5)
|
||||
@:dox(hide) @:noCompletion public static inline function depthRange (zNear:Float, zFar:Float):Void {
|
||||
|
||||
#if !display
|
||||
context.depthRange (zNear, zFar);
|
||||
#end
|
||||
|
||||
}
|
||||
#end
|
||||
@@ -2051,7 +2055,11 @@ class GL {
|
||||
#if (js && html5)
|
||||
@:dox(hide) @:noCompletion public static inline function getVertexAttribOffset (index:Int, pname:Int):DataPointer {
|
||||
|
||||
#if !display
|
||||
return context.getVertexAttribOffset (index, pname);
|
||||
#else
|
||||
return cast 0;
|
||||
#end
|
||||
|
||||
}
|
||||
#end
|
||||
|
||||
@@ -25,7 +25,7 @@ abstract BytePointer(BytePointerData) from BytePointerData to BytePointerData {
|
||||
if (buffer != null) {
|
||||
|
||||
#if (js && html5)
|
||||
bytes = Bytes.ofData (buffer);
|
||||
bytes = Bytes.ofData (cast buffer);
|
||||
#else
|
||||
bytes = buffer;
|
||||
#end
|
||||
@@ -40,7 +40,7 @@ abstract BytePointer(BytePointerData) from BytePointerData to BytePointerData {
|
||||
} else {
|
||||
|
||||
#if (js && html5)
|
||||
this.bytes = Bytes.ofData (bufferView.buffer);
|
||||
this.bytes = Bytes.ofData (cast bufferView.buffer);
|
||||
#else
|
||||
this.bytes = bufferView.buffer;
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user