X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_water.h;h=7ff9af57ddf6ec34eccf6773a382debc99a46057;hb=refs%2Fheads%2Fmaster;hp=ad446d6669c2cc4605dab45a1cf385df1133d1ac;hpb=342fcbf6fda017bdd38d56ce0fa7c9e59e589f3b;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_water.h b/world_water.h index ad446d6..7ff9af5 100644 --- a/world_water.h +++ b/world_water.h @@ -2,20 +2,17 @@ * Copyright (C) 2021-2023 Mt.ZERO Software, Harry Godden - All Rights Reserved */ -#ifndef WATER_H -#define WATER_H - +#pragma once #include "world.h" struct world_water{ - VG_STATIC GLuint tex_water_surf; + GLuint tex_water_surf; } -static world_water; -VG_STATIC void world_water_init(void); - -VG_STATIC void water_set_surface( world_instance *world, float height ); -VG_STATIC void render_water_texture( world_instance *world, camera *cam, - int layer_depth ); -VG_STATIC void render_water_surface( world_instance *world, camera *cam ); +extern world_water; +void world_water_init(void); -#endif /* WATER_H */ +void water_set_surface( world_instance *world, f32 height ); +void render_water_texture( world_instance *world, vg_camera *cam ); +void render_water_surface( world_instance *world, vg_camera *cam ); +entity_call_result ent_water_call( world_instance *world, ent_call *call ); +bool world_water_player_safe( world_instance *world, f32 allowance );