blob: 23fd0290e0e1d26de0c74ddbcc1b7f2c05ed0fd5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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 :Renderer {
unsigned int entityId;
World *world;
public:
RendererEntity(World *ptr, unsigned int id);
~RendererEntity();
void Render(RenderState& renderState) override;
void PrepareResources() override;
void PrepareRender() override;
bool IsNeedResourcesPrepare() override;
GLint modelLoc = 0;
GLint colorLoc = 0;
};
|