summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-core/graphics/shader.cpp
blob: 1a85866c08cda428579a7ba65160d598cf5cf3b5 (plain)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#include "Shader.h"

namespace AsuraEngine
{
	namespace Graphics
	{

		Shader::Shader()
		{

		}

		Shader::~Shader()
		{

		}

		bool Shader::Load(const std::string& vertexShader, const std::string& fragmentShader)
		{

		}

		uint Shader::GetUniformLocation(const std::string& uniform)
		{

		}

		GLuint Shader::GetGLProgramHandle()
		{
			return mProgramHandle;
		}

		void Shader::Use()
		{

		}

		void Shader::Unuse()
		{

		}

		void Shader::SetUniformFloat(uint loc, float value)
		{

		}

		void Shader::SetUniformFloat(uint loc, float value)
		{

		}

		void Shader::SetUniformTexture(uint loc, const Texture& texture)
		{

		}

		void Shader::SetUniformVector2(uint loc, const Math::Vector2f& vec2)
		{

		}

		void Shader::SetUniformVector3(uint loc, const Math::Vector3f& vec3)
		{

		}

		void Shader::SetUniformVector4(uint loc, const Math::Vector4f& vec4)
		{

		}

		uint Shader::GetGLTextureUnitCount()
		{
			GLint maxTextureUnits = 0;
			glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &maxTextureUnits);
			return (uint)maxTextureUnits;
		}

	}
}