Moved rendering code outside of the sandbox update function, renderer instance is now rendering the cube ( although colour is still missing but should be something simple)
This commit is contained in:
		@ -3,6 +3,7 @@
 | 
			
		||||
#include "Buffer.h"
 | 
			
		||||
#include "Mesh.h"
 | 
			
		||||
#include "Material.h"
 | 
			
		||||
#include <glm/glm.hpp>
 | 
			
		||||
 | 
			
		||||
namespace BarinkEngine {
 | 
			
		||||
 | 
			
		||||
@ -17,6 +18,7 @@ namespace BarinkEngine {
 | 
			
		||||
		GpuBuffer vertexBuffer;
 | 
			
		||||
		GpuBuffer elementBuffer;
 | 
			
		||||
		VertexArray vertexarray;
 | 
			
		||||
		
 | 
			
		||||
 | 
			
		||||
		const Mesh* mesh;
 | 
			
		||||
		const Material* material;
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user