![]() |
Jopnal Engine
alpha 0.4
Simple Component Based 2D/3D Game Engine
|
#include <Texture.hpp>
Public Member Functions | |
FormatBundle (const Format format, const bool srgb) | |
Initialize this bundle. More... | |
bool | check () const |
Check if this format bundle is valid. More... | |
Public Attributes | |
const uint32 | intFormat |
Internal format. More... | |
const uint32 | format |
Format. More... | |
const uint32 | type |
Type. More... | |
Helper class for managing texture formats
Definition at line 108 of file Texture.hpp.
jop::Texture::FormatBundle::FormatBundle | ( | const Format | format, |
const bool | srgb | ||
) |
Initialize this bundle.
format | The texture format |
srgb | Use the sRGB color space? |
bool jop::Texture::FormatBundle::check | ( | ) | const |
Check if this format bundle is valid.
The format can usually only be invalid if the specific format is not supported by OpenGL.
const uint32 jop::Texture::FormatBundle::format |
Format.
Definition at line 131 of file Texture.hpp.
const uint32 jop::Texture::FormatBundle::intFormat |
Internal format.
Definition at line 130 of file Texture.hpp.
const uint32 jop::Texture::FormatBundle::type |
Type.
Definition at line 132 of file Texture.hpp.