medfall

A super great game engine
Log | Files | Refs

immediate.h (552B)


      1 #pragma once
      2 
      3 #include "linear_algebra.h"
      4 #include "renderer.h"
      5 
      6 struct ImmediateVertex {
      7 	v3 pos;
      8 	v3 normal;
      9 	v4 colour;
     10 	v2 uv;
     11 };
     12 
     13 void immediate_triangle( v3 p1, v3 p2, v3 p3, v4 colour );
     14 void immediate_triangle( ImmediateVertex v1, ImmediateVertex v2, ImmediateVertex v3 );
     15 
     16 void immediate_sphere( v3 centre, float radius, v4 colour, u32 subdivisions = 16 );
     17 void immediate_aabb( v3 mins, v3 maxs, v4 colour );
     18 void immediate_arrow( v3 origin, v3 direction, float length, v4 colour );
     19 
     20 void immediate_render( const RenderState & render_state );