1er commit
This commit is contained in:
44
include/render/Renderer.h
Normal file
44
include/render/Renderer.h
Normal file
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
* Renderer.h
|
||||
*
|
||||
* Created on: 4 nov. 2020
|
||||
* Author: simon
|
||||
*/
|
||||
|
||||
#ifndef RENDER_RENDERER_H_
|
||||
#define RENDER_RENDERER_H_
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
#include "loader/GLLoader.h"
|
||||
|
||||
namespace td {
|
||||
namespace render{
|
||||
|
||||
namespace Renderer{
|
||||
|
||||
struct Model{
|
||||
GL::VAO* vao;
|
||||
glm::vec2 positon;
|
||||
};
|
||||
|
||||
bool init();
|
||||
void destroy();
|
||||
|
||||
void prepare();
|
||||
void resize(const int width, const int height);
|
||||
|
||||
void renderVAO(const GL::VAO& vao);
|
||||
void renderModel(const Model& model);
|
||||
|
||||
void setZoom(float zoom);
|
||||
void setCamMovement(const glm::vec2& mov);
|
||||
void setCamPos(const glm::vec2& newPos);
|
||||
void setIsometricView(bool isometric); // false = 2D true = Isometric
|
||||
|
||||
}
|
||||
|
||||
|
||||
} // namespace render
|
||||
} // namespace td
|
||||
|
||||
#endif /* RENDER_RENDERER_H_ */
|
||||
Reference in New Issue
Block a user