NTrace
GPU ray tracing framework
|
#include <TextureAtlas.hpp>
Public Member Functions | |
TextureAtlas (const ImageFormat &format=ImageFormat::ABGR_8888) | |
~TextureAtlas (void) | |
void | clear (void) |
bool | addTexture (const Texture &tex, int border=1, bool wrap=true) |
Vec2i | getAtlasSize (void) |
Vec2i | getTexturePos (const Texture &tex) |
Vec2i | getTextureSize (const Texture &tex) |
Vec2f | getTexturePosF (const Texture &tex) |
Vec2f | getTextureSizeF (const Texture &tex) |
const Texture & | getAtlasTexture (void) |
Definition at line 35 of file TextureAtlas.hpp.
TextureAtlas::TextureAtlas | ( | const ImageFormat & | format = ImageFormat::ABGR_8888 | ) |
Definition at line 35 of file TextureAtlas.cpp.
TextureAtlas::~TextureAtlas | ( | void | ) |
Definition at line 43 of file TextureAtlas.cpp.
bool TextureAtlas::addTexture | ( | const Texture & | tex, |
int | border = 1 , |
||
bool | wrap = true |
||
) |
Definition at line 61 of file TextureAtlas.cpp.
Definition at line 49 of file TextureAtlas.cpp.
Definition at line 54 of file TextureAtlas.hpp.
Definition at line 59 of file TextureAtlas.hpp.
Definition at line 80 of file TextureAtlas.cpp.
Definition at line 106 of file TextureAtlas.cpp.
Definition at line 93 of file TextureAtlas.cpp.
Definition at line 121 of file TextureAtlas.cpp.