NoJobEngine 2.0.7
Loading...
Searching...
No Matches
Texture.cpp
Go to the documentation of this file.
3
4namespace 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 declarations for the OpenGL Backend subsystem.
Texture declarations for the Rendering subsystem.
static std::shared_ptr< Texture2D > CreateCheckerboard(std::uint32_t width=256, std::uint32_t height=256)
Definition Texture.cpp:6
static std::shared_ptr< Texture2D > Create(const std::string &path)
Definition Texture.cpp:12