#include <tiletex.h>
Public Member Functions | |
TilesTexture () | |
void | set_info (int max, tile_info_func *info) |
const tile_info & | get_info (tileidx_t idx) const |
bool | get_coords (tileidx_t idx, int ofs_x, int ofs_y, float &pos_sx, float &pos_sy, float &pos_ex, float &pos_ey, float &tex_sx, float &tex_sy, float &tex_ex, float &tex_ey, bool centre=true, int ymin=-1, int ymax=-1, float tile_x=TILE_X, float tile_y=TILE_Y) const |
Protected Attributes | |
int | m_tile_max |
tile_info_func * | m_info_func |
TilesTexture::TilesTexture | ( | ) |
void TilesTexture::set_info | ( | int | max, | |
tile_info_func * | info | |||
) |
const tile_info & TilesTexture::get_info | ( | tileidx_t | idx | ) | const [inline] |
bool TilesTexture::get_coords | ( | tileidx_t | idx, | |
int | ofs_x, | |||
int | ofs_y, | |||
float & | pos_sx, | |||
float & | pos_sy, | |||
float & | pos_ex, | |||
float & | pos_ey, | |||
float & | tex_sx, | |||
float & | tex_sy, | |||
float & | tex_ex, | |||
float & | tex_ey, | |||
bool | centre = true , |
|||
int | ymin = -1 , |
|||
int | ymax = -1 , |
|||
float | tile_x = TILE_X , |
|||
float | tile_y = TILE_Y | |||
) | const [inline] |
int TilesTexture::m_tile_max [protected] |
tile_info_func* TilesTexture::m_info_func [protected] |