projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed recursive build script
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_render.h
diff --git
a/world_render.h
b/world_render.h
index 65494a5be204ea8f6e25b6e7adfddadb3f32a4f7..5da3556275f6c1aba1ca4d68c93b5116eae8cd42 100644
(file)
--- a/
world_render.h
+++ b/
world_render.h
@@
-1,3
+1,7
@@
+/*
+ * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved
+ */
+
#ifndef WORLD_RENDER_H
#define WORLD_RENDER_H
#ifndef WORLD_RENDER_H
#define WORLD_RENDER_H
@@
-15,22
+19,18
@@
vg_tex2d tex_alphatest = { .path = "textures/alphatest.qoi",
vg_tex2d tex_graffiti = { .path = "textures/graffitibox.qoi",
.flags = VG_TEXTURE_NEAREST };
vg_tex2d tex_graffiti = { .path = "textures/graffitibox.qoi",
.flags = VG_TEXTURE_NEAREST };
-static
int
world_render_init(void)
+static
void
world_render_init(void)
{
vg_info( "Loading default world textures\n" );
{
vg_info( "Loading default world textures\n" );
- if( vg_acquire_thread_sync(1) )
+ vg_acquire_thread_sync();
{
vg_tex2d_init( (vg_tex2d *[]){ &tex_terrain_colours,
&tex_terrain_noise,
&tex_alphatest,
&tex_graffiti }, 4 );
{
vg_tex2d_init( (vg_tex2d *[]){ &tex_terrain_colours,
&tex_terrain_noise,
&tex_alphatest,
&tex_graffiti }, 4 );
-
- vg_release_thread_sync(1);
- return 1;
}
}
-
- return 0;
+ vg_release_thread_sync();
}
static void world_render_free(void*_)
}
static void world_render_free(void*_)
@@
-183,7
+183,7
@@
static void render_sky(m4x3f camera)
shader_sky_uMdl(identity_matrix);
shader_sky_uPv(full);
shader_sky_uTexGarbage(0);
shader_sky_uMdl(identity_matrix);
shader_sky_uPv(full);
shader_sky_uTexGarbage(0);
- shader_sky_uTime( vg
_
time );
+ shader_sky_uTime( vg
.
time );
vg_tex2d_bind( &tex_terrain_noise, 0 );
vg_tex2d_bind( &tex_terrain_noise, 0 );