19 lines
629 B
C++
19 lines
629 B
C++
#pragma once
|
|
|
|
#include "OpenGLRenderer.h"
|
|
#include "ShaderTypes.h"
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class ShaderTextureBindings
|
|
{
|
|
public:
|
|
using LayerProgram = OpenGLRenderer::LayerProgram;
|
|
|
|
bool LoadTextureAsset(const ShaderTextureAsset& textureAsset, GLuint& textureId, std::string& error);
|
|
void CreateTextBindings(const RuntimeRenderState& state, std::vector<LayerProgram::TextBinding>& textBindings);
|
|
bool UpdateTextBindingTexture(const RuntimeRenderState& state, LayerProgram::TextBinding& textBinding, std::string& error);
|
|
GLint FindSamplerUniformLocation(GLuint program, const std::string& samplerName) const;
|
|
};
|