mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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.
33 lines
682 B
C++
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;
|
|
};
|
|
} |