NTrace
GPU ray tracing framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FW::TextureAtlas Class Reference

#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 TexturegetAtlasTexture (void)
 

Detailed Description

Definition at line 35 of file TextureAtlas.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

bool TextureAtlas::addTexture ( const Texture tex,
int  border = 1,
bool  wrap = true 
)

Definition at line 61 of file TextureAtlas.cpp.

void TextureAtlas::clear ( void  )

Definition at line 49 of file TextureAtlas.cpp.

Vec2i FW::TextureAtlas::getAtlasSize ( void  )
inline

Definition at line 54 of file TextureAtlas.hpp.

const Texture& FW::TextureAtlas::getAtlasTexture ( void  )
inline

Definition at line 59 of file TextureAtlas.hpp.

Vec2i TextureAtlas::getTexturePos ( const Texture tex)

Definition at line 80 of file TextureAtlas.cpp.

Vec2f TextureAtlas::getTexturePosF ( const Texture tex)

Definition at line 106 of file TextureAtlas.cpp.

Vec2i TextureAtlas::getTextureSize ( const Texture tex)

Definition at line 93 of file TextureAtlas.cpp.

Vec2f TextureAtlas::getTextureSizeF ( const Texture tex)

Definition at line 121 of file TextureAtlas.cpp.


The documentation for this class was generated from the following files: