Cleanup ifdefs

This commit is contained in:
luboslenco
2024-11-06 20:01:05 +01:00
parent 5acc76bfbd
commit 23c15d3ade
29 changed files with 279 additions and 532 deletions
+11
View File
@@ -3,6 +3,11 @@ let make_material_default_scon: shader_context_t = null;
let make_material_default_mcon: material_context_t = null;
let make_material_height_used: bool = false;
type parse_node_preview_result_t = {
scon: shader_context_t;
mcon: material_context_t;
};
function make_material_parse_mesh_material() {
let m: material_data_t = project_material_data;
@@ -141,3 +146,9 @@ function make_material_delete_context(c: shader_context_t) {
function make_material_parse_brush() {
// parser_logic_parse(context_raw.brush.canvas);
}
function make_material_parse_mesh_preview_material(md: material_data_t = null) {
}
function make_material_parse_node_preview_material(node: ui_node_t, group: ui_node_canvas_t = null, parents: ui_node_t[] = null): parse_node_preview_result_t {
}
+11
View File
@@ -1,4 +1,6 @@
let render_path_paint_live_layer: slot_layer_t = null;
let render_path_paint_live_layer_locked: bool = false;
let render_path_paint_live_layer_drawn: i32 = 0; ////
function render_path_paint_init() {
@@ -318,3 +320,12 @@ function render_path_paint_bind_layers() {
function render_path_paint_unbind_layers() {
}
function render_path_paint_use_live_layer(use: bool) {
}
function render_path_paint_set_plane_mesh() {
}
function render_path_paint_restore_plane_mesh() {
}
+6
View File
@@ -0,0 +1,6 @@
function render_path_preview_commands_preview() {
}
function render_path_preview_commands_decal() {
}
+8
View File
@@ -0,0 +1,8 @@
type slot_brush_t = {
nodes?: ui_nodes_t;
canvas?: ui_node_canvas_t;
image?: image_t; // 200px
image_icon?: image_t; // 50px
preview_ready?: bool;
id?: i32;
};
+9
View File
@@ -0,0 +1,9 @@
type slot_font_t = {
image?: image_t; // 200px
preview_ready?: bool;
id?: i32;
font?: g2_font_t;
name?: string;
file?: string;
};
+17
View File
@@ -6,4 +6,21 @@ type slot_layer_t = {
texpaint_pack: image_t;
decal_mat: mat4_t;
parent?: slot_layer_t;
fill_layer?: slot_material_t;
};
function slot_layer_get_object_mask(raw: slot_layer_t): i32 {
return 0;
}
function slot_layer_create(ext: string = "", type: layer_slot_type_t = layer_slot_type_t.LAYER, parent: slot_layer_t = null): slot_layer_t {
return null;
}
function slot_layer_clear(raw: slot_layer_t, base_color: i32 = 0x00000000, base_image: image_t = null, occlusion: f32 = 1.0, roughness: f32 = base_default_rough, metallic: f32 = 0.0) {
}
function slot_layer_is_mask(raw: slot_layer_t): bool {
return false;
}
+6 -1
View File
@@ -2,5 +2,10 @@
type slot_material_t = {
nodes?: ui_nodes_t;
canvas?: ui_node_canvas_t;
preview_ready?: bool;
data?: material_data_t;
};
function slot_material_create(m: material_data_t = null, c: ui_node_canvas_t = null): slot_material_t {
return null;
}