Kawe Mazidjatari 04bee896be Fix string/wstring type conflict
cppkore uses string/wstring as StringBase while we use std::string/std::wstring as string/wstring. Changed all types in cppkore to String/WString instead.
2022-05-21 21:51:35 +02:00

33 lines
682 B
C++

#pragma once
#include <cstdint>
#include "StringBase.h"
namespace Assets
{
// Represents an OpenGL shader program.
class RenderShader
{
public:
RenderShader();
~RenderShader();
// Compiles the release shader, internal use only.
void LoadShader(const char* VertSource, const char* FragSource);
// Compiles the debug shader.
void LoadShader(const String& VertPath, const String& FragPath);
// Sets this shader as current.
void Use();
// Detatches the current shader.
void Detatch();
// Returns the uniform location for this shader.
uint32_t GetUniformLocation(const char* Name);
private:
// Internal shader program id
uint32_t _ProgramID;
};
}