Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View 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;
}
}

View 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;
}
}

View 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;
}
}

View 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;
}
}

View 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;
}
}

View 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;
}
}