medfall

A super great game engine
Log | Files | Refs

gpubtt.h (441B)


      1 #pragma once
      2 
      3 #include "renderer.h"
      4 #include "heightmap.h"
      5 #include "btt.h"
      6 #include "linear_algebra.h"
      7 
      8 struct GPUBTT {
      9 	Mesh mesh;
     10 	Texture normal_map;
     11 	Texture horizon_map;
     12 };
     13 
     14 void gpubtt_init( MemoryArena * arena, GPUBTT * gpubtt, BTTs btts,
     15 	const array2d< u16 > hm, v2u32 offset, const v3 * normals, const u8 * horizons );
     16 void gpubtt_destroy( GPUBTT * gpubtt );
     17 void gpubtt_render( const GPUBTT * gpubtt, RenderState render_state );