mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 05:13:58 +00:00
committed by
Konstantin Pastbin
parent
c9cbb64f12
commit
76ffc99abd
24
libs/drape/gpu_program.hpp
Normal file
24
libs/drape/gpu_program.hpp
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace dp
|
||||
{
|
||||
class GpuProgram
|
||||
{
|
||||
public:
|
||||
explicit GpuProgram(std::string const & programName)
|
||||
: m_programName(programName)
|
||||
{}
|
||||
|
||||
virtual ~GpuProgram() = default;
|
||||
|
||||
std::string const & GetName() const { return m_programName; }
|
||||
|
||||
virtual void Bind() = 0;
|
||||
virtual void Unbind() = 0;
|
||||
|
||||
protected:
|
||||
std::string const m_programName;
|
||||
};
|
||||
} // namespace dp
|
||||
Reference in New Issue
Block a user