ZeroZero Game Engine
v0.0
A 3D game engine using Vulkan & Jolt
|
Environment cubemap
Static Public Member Functions | |
static shared_ptr< EnvironmentCubemap > | loadFromHDRi (const string &filename, ImageFormat imageFormat=ImageFormat::R8G8B8A8_SRGB) |
![]() | |
static shared_ptr< Cubemap > | create (uint32_t width, uint32_t height, uint32_t imageSize, const vector< byte * > &data, const string &name="Cubemap") |
static shared_ptr< Cubemap > | load (const string &filepath, const string &fileext, ImageFormat imageFormat=ImageFormat::R8G8B8A8_SRGB) |
static shared_ptr< Cubemap > | load (const string &filepath, ImageFormat imageFormat=ImageFormat::R8G8B8A8_SRGB) |
static shared_ptr< Cubemap > | createBlankCubemap () |
Additional Inherited Members | |
![]() | |
auto | getWidth () const |
auto | getHeight () const |
auto | getCubemapType () const |
![]() | |
auto | getId () const |
const auto & | getName () const |
string | toString () const override |
virtual shared_ptr< Resource > | duplicate () const |
![]() | |
void | connect (const Signal::signal &name, const Signal::Handler &handler) |
void | connect (const Signal::signal &name, const function< void ()> &handler) |
void | emit (const Signal::signal &name, void *params=nullptr) |
|
nodiscardstatic |
Loads the cubemap from a single HDRi.