Map Class Reference

#include <Map.h>

Collaboration diagram for Map:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Map (int subdivisions)
void addMarker (Marker *mark)
void delMarker (Marker *mark)
void setPosition (float x, float y)
void setCurrentMarkerFromSprite (Sprite *sprite)
void setMode (map_mode_t new_mode)
map_mode_t getMode (void)
void cycleMode (void)
void setZoom (float new_zoom)
void incZoom (void)
void decZoom (void)
void setZoomStep (float new_zoom_step)
void update (void)
void draw (void)

Protected Member Functions

void buildTextures (int subdivisions)
void setupProjTrans (float x_position, float y_position, float coverage)
void setupStencilMask (void)
void restore (void)
void drawMarkers (void)
int inverseMapCoords (int x_query, int y_query, float *x_result, float *y_result)
MarkerfindClosestMarker (float x, float y, float max_distance)

Protected Attributes

int segments_x
int segments_y
int size_x
int size_y
float zoom
float zoom_step
float zoom_full
float current_x
float current_y
map_mode_t mode
GLuint ** map_texture
char *** map_image
std::list< Marker * > markers
MarkercurrentMarker

Constructor & Destructor Documentation

Map::Map ( int  subdivisions  ) 


Member Function Documentation

void Map::addMarker ( Marker mark  ) 

void Map::buildTextures ( int  subdivisions  )  [protected]

void Map::cycleMode ( void   ) 

void Map::decZoom ( void   ) 

void Map::delMarker ( Marker mark  ) 

void Map::draw ( void   ) 

void Map::drawMarkers ( void   )  [protected]

Marker* Map::findClosestMarker ( float  x,
float  y,
float  max_distance 
) [protected]

map_mode_t Map::getMode ( void   ) 

void Map::incZoom ( void   ) 

int Map::inverseMapCoords ( int  x_query,
int  y_query,
float *  x_result,
float *  y_result 
) [protected]

void Map::restore ( void   )  [protected]

void Map::setCurrentMarkerFromSprite ( Sprite sprite  ) 

void Map::setMode ( map_mode_t  new_mode  ) 

void Map::setPosition ( float  x,
float  y 
)

void Map::setupProjTrans ( float  x_position,
float  y_position,
float  coverage 
) [protected]

void Map::setupStencilMask ( void   )  [protected]

void Map::setZoom ( float  new_zoom  ) 

void Map::setZoomStep ( float  new_zoom_step  ) 

void Map::update ( void   ) 


Member Data Documentation

float Map::current_x [protected]

float Map::current_y [protected]

Marker* Map::currentMarker [protected]

char*** Map::map_image [protected]

GLuint** Map::map_texture [protected]

std::list<Marker*> Map::markers [protected]

map_mode_t Map::mode [protected]

int Map::segments_x [protected]

int Map::segments_y [protected]

int Map::size_x [protected]

int Map::size_y [protected]

float Map::zoom [protected]

float Map::zoom_full [protected]

float Map::zoom_step [protected]


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 15:33:26 2007 for MetalWarriors by  doxygen 1.4.7