Gpu cleanup
This commit is contained in:
@@ -276,7 +276,7 @@ declare function gpu_get_texture_pixels(texture: any): buffer_t;
|
||||
declare function gpu_viewport(x: i32, y: i32, width: i32, height: i32): void;
|
||||
declare function gpu_scissor(x: i32, y: i32, width: i32, height: i32): void;
|
||||
declare function gpu_disable_scissor(): void;
|
||||
declare function _gpu_begin(render_target: gpu_texture_t, additional: gpu_texture_t[] = null, depth_buffer: gpu_texture_t = null, flags: i32 = clear_flag_t.NONE, color: i32 = 0, depth: f32 = 0.0): void;
|
||||
declare function _gpu_begin(render_target: gpu_texture_t, additional: gpu_texture_t[] = null, depth_buffer: gpu_texture_t = null, flags: clear_flag_t = clear_flag_t.NONE, color: i32 = 0, depth: f32 = 0.0): void;
|
||||
declare function gpu_end(): void;
|
||||
declare function gpu_present(): void;
|
||||
declare function iron_file_save_bytes(path: string, bytes: buffer_t, length: i32 = 0): void;
|
||||
|
||||
@@ -64,7 +64,7 @@ function render_path_render_frame() {
|
||||
_render_path_frame++;
|
||||
}
|
||||
|
||||
function render_path_set_target(target: string, additional: string[] = null, depth_buffer: string = null, flags: i32 = clear_flag_t.NONE, color: i32 = 0, depth: f32 = 0.0) {
|
||||
function render_path_set_target(target: string, additional: string[] = null, depth_buffer: string = null, flags: clear_flag_t = clear_flag_t.NONE, color: i32 = 0, depth: f32 = 0.0) {
|
||||
if (_render_path_current_image != null) {
|
||||
render_path_end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user