Anvil Engine
Loading...
Searching...
No Matches
AShader.h
Go to the documentation of this file.
1#pragma once
2// AShader.h
3#include "ACore.h"
4#include <sstream>
5#include <string_view>
6
8{
9 public:
10 AShader(int vertResID, int fragResID);
11 AShader(std::string_view vPath, std::string_view fPath);
12 ~AShader();
13 void CheckCompileErrors(uint32_t shader, std::string type);
14 void Use();
15 uint32_t GetID() const
16 {
17 return m_ID;
18 }
19
20 private:
21 uint32_t m_ID;
22 void Compile(const char* vCode, const char* fCode);
23 std::string LoadFromResource(int resID);
24};
#define ANVIL_API
Definition ACore.h:6
void CheckCompileErrors(uint32_t shader, std::string type)
Definition AShader.cpp:86
void Use()
Definition AShader.cpp:114
uint32_t GetID() const
Definition AShader.h:15
AShader(int vertResID, int fragResID)
Definition AShader.cpp:34
AShader(std::string_view vPath, std::string_view fPath)