TILEPROJECTOR Class Reference

Simple Texturemapper. More...

#include <tileprojector.hpp>


Static Public Member Functions

static __forceinline void setup_projection (Camera *cam)
 Set up the transformation matrix.
static __forceinline void tile_to_screen_pyr (Camera *cam, surf_t *surf, imgdata_t *tex_img, float *tile_pos_ul, float *tile_pos_lr)
 Project a tile of a higher map-resolution to screen.
static __forceinline void basetex_to_screen (Camera *cam, surf_t *surf, imgdata_t *tex_img, float *ul_pos, float *lr_pos)
 Project the coarsest map-resolution to screen.
static __forceinline void blit_minimap (surf_t *dst_surf, screct_t *minimap_rect, imgdata_t *minimap_img)
 Blit the minimap.


Detailed Description

Simple Texturemapper.

Renders the map


Member Function Documentation

static __forceinline void TILEPROJECTOR::basetex_to_screen ( Camera cam,
surf_t *  surf,
imgdata_t *  tex_img,
float *  ul_pos,
float *  lr_pos 
) [inline, static]

Project the coarsest map-resolution to screen.

Parameters:
cam The camera - determines position from which to project.
surf The destination for rendering the projected image.
tex_img The source-data.
ul_pos Coordinates for the upper-left corner of the map.
lr_pos Coordinates for the lower-right corner of the map.

static __forceinline void TILEPROJECTOR::blit_minimap ( surf_t *  dst_surf,
screct_t *  minimap_rect,
imgdata_t *  minimap_img 
) [inline, static]

Blit the minimap.

Parameters:
dst_surf Determines destination of blit-operation.
minimap_rect Datastructure that stores information about the placement of the minimap on screen.
minimap_img Image-data of the minimap.

static __forceinline void TILEPROJECTOR::setup_projection ( Camera cam  )  [inline, static]

Set up the transformation matrix.

Parameters:
cam Pointer to the camera.

static __forceinline void TILEPROJECTOR::tile_to_screen_pyr ( Camera cam,
surf_t *  surf,
imgdata_t *  tex_img,
float *  tile_pos_ul,
float *  tile_pos_lr 
) [inline, static]

Project a tile of a higher map-resolution to screen.

Manage perspective projection to screen.

Parameters:
cam The camera - determines position from which to project.
surf The destination for rendering the projected image.
tex_img The source-data.
tile_pos_ul Coordinates for the upper-left corner of the map.
tile_pos_lr Coordinates for the lower-right corner of the map.


The documentation for this class was generated from the following file:
Generated on Tue Jun 26 04:22:56 2007 for YAZAPA - yet another zooming and panning application by  doxygen 1.4.7