Blackcomb  prealpha
Engine-ish
Public Member Functions | List of all members
blackcomb::renderer::TextureAtlas Class Reference

Handles looking up textures within a texture atlas. More...

#include <TextureAtlas.h>

Public Member Functions

 TextureAtlas (const std::string &textureFilename, int textureWidth, int textureHeight)
 
Texture getTexture ()
 Get the Texture for the texture atlas.
 
misc::UVRect getCoordsForTexture (int texture)
 Get the coordinates for a texture in the atlas. More...
 

Detailed Description

Handles looking up textures within a texture atlas.

Member Function Documentation

◆ getCoordsForTexture()

misc::UVRect blackcomb::renderer::TextureAtlas::getCoordsForTexture ( int  texture)

Get the coordinates for a texture in the atlas.

Parameters
textureThe index of the texture, left to right, top to bottom, zero indexed

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