NoJobEngine 2.0.7
Loading...
Searching...
No Matches
OpenGLTexture.h
Go to the documentation of this file.
1
6#pragma once
8
9#include <string>
10
11namespace NoJob
12{
13 class OpenGLTexture2D final : public Texture2D
14 {
15 public:
16 OpenGLTexture2D(std::uint32_t width, std::uint32_t height);
17 explicit OpenGLTexture2D(const std::string& path);
18 ~OpenGLTexture2D() override;
19
20 void Bind(std::uint32_t slot = 0) const override;
21 std::uint32_t GetRendererID() const override { return m_RendererID; }
22 const std::string& GetPath() const override { return m_Path; }
23
24 private:
25 std::uint32_t m_RendererID = 0;
26 std::string m_Path = "Checkerboard";
27 };
28}
Texture declarations for the Rendering subsystem.
void Bind(std::uint32_t slot=0) const override
const std::string & GetPath() const override
OpenGLTexture2D(std::uint32_t width, std::uint32_t height)
std::uint32_t GetRendererID() const override