medfall

A super great game engine
Log | Files | Refs

commit 2ec6a5fffb04d5550d46062b7e79784ed6798248
parent 78c5a1f40a1924dc950a82bc22fe87aa5ebb5d36
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Tue May 16 21:09:11 +0300

Oopses

Diffstat:
renderer.cc | 2+-
renderer.h | 4+---
shaders.cc | 3+++
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/renderer.cc b/renderer.cc @@ -592,7 +592,7 @@ static GLenum primitivetype_to_glenum( PrimitiveType primitive_type ) { static RenderState previous_render_state; -void renderer_draw_mesh( const Mesh & mesh, RenderState state ) { +void renderer_draw_mesh( const Mesh & mesh, const RenderState & state ) { if( state.shader != previous_render_state.shader ) { glUseProgram( state.shader ); } diff --git a/renderer.h b/renderer.h @@ -204,10 +204,8 @@ Texture renderer_new_texture( TextureConfig config ); void renderer_delete_texture( Texture texture ); Mesh renderer_new_mesh( MeshConfig config ); -void renderer_delete_mesh( const Mesh & mesh ); - void renderer_draw_mesh( const Mesh & mesh, const RenderState & state ); -void renderer_draw_instances( const Mesh & mesh, const RenderState & state, u32 num_instances, VB vb ); +void renderer_delete_mesh( const Mesh & mesh ); /* * cheesy renderer_ub_data helper diff --git a/shaders.cc b/shaders.cc @@ -1,3 +1,6 @@ +#include <sys/types.h> +#include <sys/stat.h> + #include "intrinsics.h" #include "array.h" #include "renderer.h"