work
This commit is contained in:
parent
34873926e0
commit
525ca581a8
@ -91,6 +91,7 @@
|
||||
"modules/sokol-jai/sokol/stbi/stb_image.a",
|
||||
"-o", "dist/index.html",
|
||||
"-sSTACK_SIZE=10MB",
|
||||
"-sALLOW_MEMORY_GROWTH",
|
||||
"-sERROR_ON_UNDEFINED_SYMBOLS=1", "-sMEMORY64", "-sMAX_WEBGL_VERSION=2",
|
||||
"--js-library=src/platform_specific/runtime.js",
|
||||
"--shell-file=src/platform_specific/shell.html",
|
||||
|
||||
@ -246,7 +246,6 @@ draw_trile :: () {
|
||||
hovered_trixel_y = -1;
|
||||
hovered_trixel_z = -1;
|
||||
|
||||
print("BURGER!\n");
|
||||
for x: 0..15 {
|
||||
for y: 0..15 {
|
||||
for z: 0..15 {
|
||||
@ -261,7 +260,6 @@ draw_trile :: () {
|
||||
}
|
||||
}
|
||||
}
|
||||
print("BURGER!\n");
|
||||
|
||||
trixel_count : s32 = 0;
|
||||
|
||||
@ -290,7 +288,6 @@ draw_trile :: () {
|
||||
}
|
||||
}
|
||||
|
||||
print("BURGER!\n");
|
||||
sg_update_buffer(gPipelines.trixel.bind.vertex_buffers[2], *(sg_range.{
|
||||
ptr = trixels.data,
|
||||
size = size_of(type_of(trixels)),
|
||||
|
||||
@ -40,6 +40,7 @@ set_trile_gfx :: (name: string, gfx: Trile_GFX, skip_preexist_check: bool = fals
|
||||
if success {
|
||||
sg_destroy_buffer(old_gfx.vertex_buffer);
|
||||
sg_destroy_buffer(old_gfx.normal_buffer);
|
||||
print("Destroyed old GFX buffers for trile: %\n", name);
|
||||
}
|
||||
}
|
||||
table_set(*trile_gfx_table, name, gfx);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user