forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
47
Kha/Backends/Java/kha/graphics4/CubeMap.hx
Normal file
47
Kha/Backends/Java/kha/graphics4/CubeMap.hx
Normal file
@ -0,0 +1,47 @@
|
||||
package kha.graphics4;
|
||||
|
||||
import haxe.io.Bytes;
|
||||
|
||||
class CubeMap implements Canvas implements Resource {
|
||||
public static function createRenderTarget(size: Int, format: TextureFormat = null, depthStencil: DepthStencilFormat = null): CubeMap {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function unload(): Void {}
|
||||
|
||||
public function lock(level: Int = 0): Bytes {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function unlock(): Void {}
|
||||
|
||||
public var width(get, never): Int;
|
||||
|
||||
function get_width(): Int {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public var height(get, never): Int;
|
||||
|
||||
function get_height(): Int {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public var g1(get, never): kha.graphics1.Graphics;
|
||||
|
||||
function get_g1(): kha.graphics1.Graphics {
|
||||
return null;
|
||||
}
|
||||
|
||||
public var g2(get, never): kha.graphics2.Graphics;
|
||||
|
||||
function get_g2(): kha.graphics2.Graphics {
|
||||
return null;
|
||||
}
|
||||
|
||||
public var g4(get, never): kha.graphics4.Graphics;
|
||||
|
||||
function get_g4(): kha.graphics4.Graphics {
|
||||
return null;
|
||||
}
|
||||
}
|
7
Kha/Backends/Java/kha/graphics4/FragmentShader.hx
Normal file
7
Kha/Backends/Java/kha/graphics4/FragmentShader.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package kha.graphics4;
|
||||
|
||||
import kha.Blob;
|
||||
|
||||
class FragmentShader {
|
||||
public function new(source: Blob) {}
|
||||
}
|
17
Kha/Backends/Java/kha/graphics4/IndexBuffer.hx
Normal file
17
Kha/Backends/Java/kha/graphics4/IndexBuffer.hx
Normal file
@ -0,0 +1,17 @@
|
||||
package kha.graphics4;
|
||||
|
||||
class IndexBuffer {
|
||||
public function new(indexCount: Int, usage: Usage, canRead: Bool = false) {}
|
||||
|
||||
public function lock(?start: Int, ?count: Int): Array<Int> {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function unlock(?count: Int): Void {}
|
||||
|
||||
public function set(): Void {}
|
||||
|
||||
public function count(): Int {
|
||||
return 0;
|
||||
}
|
||||
}
|
19
Kha/Backends/Java/kha/graphics4/Program.hx
Normal file
19
Kha/Backends/Java/kha/graphics4/Program.hx
Normal file
@ -0,0 +1,19 @@
|
||||
package kha.graphics4;
|
||||
|
||||
class Program {
|
||||
public function new() {}
|
||||
|
||||
public function setVertexShader(shader: VertexShader): Void {}
|
||||
|
||||
public function setFragmentShader(shader: FragmentShader): Void {}
|
||||
|
||||
public function link(structure: VertexStructure): Void {}
|
||||
|
||||
public function getConstantLocation(name: String): ConstantLocation {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getTextureUnit(name: String): TextureUnit {
|
||||
return null;
|
||||
}
|
||||
}
|
19
Kha/Backends/Java/kha/graphics4/VertexBuffer.hx
Normal file
19
Kha/Backends/Java/kha/graphics4/VertexBuffer.hx
Normal file
@ -0,0 +1,19 @@
|
||||
package kha.graphics4;
|
||||
|
||||
class VertexBuffer {
|
||||
public function new(vertexCount: Int, structure: VertexStructure, usage: Usage, canRead: Bool = false) {}
|
||||
|
||||
public function lock(?start: Int, ?count: Int): kha.arrays.Float32Array {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function unlock(?count: Int): Void {}
|
||||
|
||||
public function count(): Int {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function stride(): Int {
|
||||
return 1;
|
||||
}
|
||||
}
|
7
Kha/Backends/Java/kha/graphics4/VertexShader.hx
Normal file
7
Kha/Backends/Java/kha/graphics4/VertexShader.hx
Normal file
@ -0,0 +1,7 @@
|
||||
package kha.graphics4;
|
||||
|
||||
import kha.Blob;
|
||||
|
||||
class VertexShader {
|
||||
public function new(source: Blob) {}
|
||||
}
|
Reference in New Issue
Block a user