NoJobEngine
2.0.7
Toggle main menu visibility
Loading...
Searching...
No Matches
Texture.cpp
Go to the documentation of this file.
1
#include "
Engine/Renderer/Texture.h
"
2
#include "
Engine/Platform/OpenGL/OpenGLTexture.h
"
3
4
namespace
NoJob
5
{
6
std::shared_ptr<Texture2D>
Texture2D::CreateCheckerboard
(
7
std::uint32_t width, std::uint32_t height)
8
{
9
return
std::make_shared<OpenGLTexture2D>(width, height);
10
}
11
12
std::shared_ptr<Texture2D>
Texture2D::Create
(
13
const
std::string& path)
14
{
15
return
std::make_shared<OpenGLTexture2D>(path);
16
}
17
}
OpenGLTexture.h
OpenGLTexture declarations for the OpenGL Backend subsystem.
Texture.h
Texture declarations for the Rendering subsystem.
NoJob::Texture2D::CreateCheckerboard
static std::shared_ptr< Texture2D > CreateCheckerboard(std::uint32_t width=256, std::uint32_t height=256)
Definition
Texture.cpp:6
NoJob::Texture2D::Create
static std::shared_ptr< Texture2D > Create(const std::string &path)
Definition
Texture.cpp:12
NoJob
Definition
BTActionNode.h:13
Engine
Renderer
Texture.cpp
Generated by
1.18.0