text: #pragma once
  #include "Module.h"
  #include "Globals.h"
  #include "glmath.h"
  #include "Light.h"
  #include "Primitive.h"
  
  #define MAX_LIGHTS 8
  
  class ModuleRenderer3D : public Module
  {
  public:
  	ModuleRenderer3D(Application* app, bool start_enabled = true);
  	~ModuleRenderer3D();
  
  	bool Init();
  
  	update_status PreUpdate(float dt);
  	update_status PostUpdate(float dt);
  	bool CleanUp();
  
  	void OnResize(int width, int height);
  
  	bool GetWireframe();
  	void ToggleWireframe();
  
  public:
  
  	Light lights[MAX_LIGHTS];
  	SDL_GLContext context;
  	mat3x3 NormalMatrix;
  	mat4x4 ModelMatrix, ViewMatrix, ProjectionMatrix;
  
  
  private:
  	bool vSync = false;
  	bool wireframe = false;
  };