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