-
Notifications
You must be signed in to change notification settings - Fork 0
/
Render.h
38 lines (29 loc) · 791 Bytes
/
Render.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include <string>
#include <map>
#include "xmath.h"
#include "Graph.h"
namespace Render
{
enum class PreviewType
{
SPHERE = 0,
CUBE,
PLANE
};
void init(int width, int height);
void reset();
void setFragmentCode(std::string fragmentCode);
void setCameraPosition(Vec3 position);
const Vec3& getCameraPosition();
void setScreenSize(int width, int height);
void setCameraZoom(float zoom);
float getCameraZoom();
unsigned int getColorTexture();
unsigned int getTexture(std::string id);
unsigned int getFolderIcon();
void setUniforms(std::map<std::string, UniformParameter>& uniforms);
void setPreviewType(PreviewType type);
PreviewType getPreviewType();
void renderPreview();
}