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,7 @@
package kha.graphics4;
import kha.Blob;
class FragmentShader {
public function new(source: Blob) {}
}

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

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

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

View File

@ -0,0 +1,7 @@
package kha.graphics4;
import kha.Blob;
class VertexShader {
public function new(source: Blob) {}
}