NoJobEngine
2.0.7
Toggle main menu visibility
Loading...
Searching...
No Matches
OpenGLTexture.h
Go to the documentation of this file.
1
6
#pragma once
7
#include "
Engine/Renderer/Texture.h
"
8
9
#include <string>
10
11
namespace
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.h
Texture declarations for the Rendering subsystem.
NoJob::OpenGLTexture2D::Bind
void Bind(std::uint32_t slot=0) const override
Definition
OpenGLTexture.cpp:121
NoJob::OpenGLTexture2D::GetPath
const std::string & GetPath() const override
Definition
OpenGLTexture.h:22
NoJob::OpenGLTexture2D::OpenGLTexture2D
OpenGLTexture2D(std::uint32_t width, std::uint32_t height)
Definition
OpenGLTexture.cpp:22
NoJob::OpenGLTexture2D::GetRendererID
std::uint32_t GetRendererID() const override
Definition
OpenGLTexture.h:21
NoJob::Texture2D
Definition
Texture.h:14
NoJob
Definition
BTActionNode.h:13
Engine
Platform
OpenGL
OpenGLTexture.h
Generated by
1.18.0