forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
47
Kha/Backends/Empty/kha/graphics4/CubeMap.hx
Normal file
47
Kha/Backends/Empty/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;
|
||||
}
|
||||
}
|
19
Kha/Backends/Empty/kha/graphics4/FragmentShader.hx
Normal file
19
Kha/Backends/Empty/kha/graphics4/FragmentShader.hx
Normal file
@ -0,0 +1,19 @@
|
||||
package kha.graphics4;
|
||||
|
||||
class FragmentShader {
|
||||
public var sources: Array<String>;
|
||||
public var type: Dynamic;
|
||||
public var shader: Dynamic;
|
||||
public var files: Array<String>;
|
||||
|
||||
public function new(sources: Array<Blob>, files: Array<String>) {}
|
||||
|
||||
public static function fromSource(source: String): FragmentShader {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function delete(): Void {
|
||||
shader = null;
|
||||
sources = null;
|
||||
}
|
||||
}
|
19
Kha/Backends/Empty/kha/graphics4/IndexBuffer.hx
Normal file
19
Kha/Backends/Empty/kha/graphics4/IndexBuffer.hx
Normal file
@ -0,0 +1,19 @@
|
||||
package kha.graphics4;
|
||||
|
||||
import kha.graphics4.Usage;
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
24
Kha/Backends/Empty/kha/graphics4/PipelineState.hx
Normal file
24
Kha/Backends/Empty/kha/graphics4/PipelineState.hx
Normal file
@ -0,0 +1,24 @@
|
||||
package kha.graphics4;
|
||||
|
||||
import kha.graphics4.FragmentShader;
|
||||
import kha.graphics4.VertexData;
|
||||
import kha.graphics4.VertexShader;
|
||||
import kha.graphics4.VertexStructure;
|
||||
|
||||
class PipelineState extends PipelineStateBase {
|
||||
public function new() {
|
||||
super();
|
||||
}
|
||||
|
||||
public function compile(): Void {}
|
||||
|
||||
public function set(): Void {}
|
||||
|
||||
public function getConstantLocation(name: String): kha.graphics4.ConstantLocation {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getTextureUnit(name: String): kha.graphics4.TextureUnit {
|
||||
return null;
|
||||
}
|
||||
}
|
28
Kha/Backends/Empty/kha/graphics4/VertexBuffer.hx
Normal file
28
Kha/Backends/Empty/kha/graphics4/VertexBuffer.hx
Normal file
@ -0,0 +1,28 @@
|
||||
package kha.graphics4;
|
||||
|
||||
import kha.arrays.Float32Array;
|
||||
import kha.graphics4.Usage;
|
||||
import kha.graphics4.VertexStructure;
|
||||
import kha.graphics4.VertexData;
|
||||
|
||||
class VertexBuffer {
|
||||
public function new(vertexCount: Int, structure: VertexStructure, usage: Usage, instanceDataStepRate: Int = 0, canRead: Bool = false) {}
|
||||
|
||||
public function lock(?start: Int, ?count: Int): Float32Array {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function unlock(?count: Int): Void {}
|
||||
|
||||
public function stride(): Int {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function count(): Int {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public function set(offset: Int): Int {
|
||||
return 0;
|
||||
}
|
||||
}
|
19
Kha/Backends/Empty/kha/graphics4/VertexShader.hx
Normal file
19
Kha/Backends/Empty/kha/graphics4/VertexShader.hx
Normal file
@ -0,0 +1,19 @@
|
||||
package kha.graphics4;
|
||||
|
||||
class VertexShader {
|
||||
public var sources: Array<String>;
|
||||
public var type: Dynamic;
|
||||
public var shader: Dynamic;
|
||||
public var files: Array<String>;
|
||||
|
||||
public function new(sources: Array<Blob>, files: Array<String>) {}
|
||||
|
||||
public static function fromSource(source: String): FragmentShader {
|
||||
return null;
|
||||
}
|
||||
|
||||
public function delete(): Void {
|
||||
shader = null;
|
||||
sources = null;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user