/
Tias
/
UIToolkit
Обзор
Документация
Войти
/
Tias
/
UIToolkit
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
develop
include/core/render/IProgram.hpp
26 строк
763 B
Tias
add scaling and translating to meshes
28 июн 2025, 20:40
28 июн 2025, 20:40
f3c308b
Код
Авторство
О чём код?
#ifndef CORE_RENDER_IPROGRAM_HPP_ #define CORE_RENDER_IPROGRAM_HPP_ // ----------------------------------- // | Render program implementation | // ----------------------------------- #include "IBindable.hpp" #include "core/OpenGLHeaders.hpp" #include <functional> #include <string> namespace core::render { using uniform_setter = std::function<void(GLuint programId)>; class IProgram : public IBindable<GLuint> { public: virtual void setUniform(uniform_setter) = 0; virtual void linkShader(GLuint shaderId) = 0; virtual GLint getUniformLocation(const std::string & name) const = 0; virtual GLint getAttribLocation(const std::string & name) const = 0; virtual ~IProgram() = default; }; } // namespace core::render #endif // !CORE_RENDER_IPROGRAM_HPP_