summaryrefslogblamecommitdiffstats
path: root/src/RendererEntity.hpp
blob: 578e24bc6dd3bbb49748093c6f512a4a36bd73c1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                       
                      





                                                
                                              



                       
#pragma once

#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>

#include "Renderer.hpp"
#include "Entity.hpp"
#include "World.hpp"

class RendererEntity {
    unsigned int entityId;
    World *world;
public:
    RendererEntity(World *ptr, unsigned int id);
    ~RendererEntity();

    void Render(RenderState& renderState);    

    GLint modelLoc = 0;
    GLint colorLoc = 0;
};