Logo
Shader.h
1#pragma once
2
3#include "Types.h"
4#include "gfx/Shader/ShaderProgram.h"
5
6namespace SharpKmyGfx{
7
8 public ref class Shader{
9
10 public:
11
12 enum class DrawPass
13 {
14 Opaque,
15 Decal,
16 Unlit,
17 Skybox,
18 Translucent,
19 Other,
20 Count,
21 };
22
23 kmyGfx::Shader* obj;
24
26 {
27 obj = NULL;
28 }
29
30 Shader(System::String^ path);
31
32 Shader(kmyGfx::Shader* ptr);
33
35
36 void Release()
37 {
38 //if (obj)obj->removeRef();
39 }
40
41 void Delete()
42 {
43 if (obj) {
44 delete obj;
45 obj = nullptr;
46 }
47 }
48
49 bool isSrgbTexture(String^ slotname);
50 void beginUse();
51
52 Guid getGuid();
53
54 static Shader ^findByName(String^ name);
55
56 static Shader ^load(System::String ^path);
57 static void reloadModified();
58
59 };
60
61
62
63
64}
Definition: Shader.h:8
DrawPass getDrawPass()
Definition: Shader.cpp:91
Guid getGuid()
Definition: Shader.cpp:70
static void reloadModified()
Definition: Shader.cpp:24
DrawPass
Definition: Shader.h:13
kmyGfx::Shader * obj
Definition: Shader.h:23
static Shader load(System::String ^path)
Definition: Shader.cpp:9
Shader()
Definition: Shader.h:25
bool isSrgbTexture(String^ slotname)
Definition: Shader.cpp:55
void Release()
Definition: Shader.h:36
static Shader findByName(String^ name)
Definition: Shader.cpp:36
void Delete()
Definition: Shader.h:41
void beginUse()
Definition: Shader.cpp:48
Definition: Billboard.cpp:4