Walls And Holes  1
M2M::AbstractTileMesher Class Referenceabstract

A collection of methods for generating tile mesh data. More...

#include <m2mtilemesher.h>

Inheritance diagram for M2M::AbstractTileMesher:
Collaboration diagram for M2M::AbstractTileMesher:

Public Member Functions

virtual ~AbstractTileMesher ()
 
virtual QVector< QSharedPointer< SimpleTexturedObject > > makeMesh (QVector2D offset)=0
 makeMesh Creates the mesh for this tile. More...
 

Static Public Member Functions

static QSharedPointer< AbstractTileMeshergetMesherForTile (const TileMap *tileMap, QPoint tilePoint)
 Returns a TileMesher instance that will create the mesh for the given tile, or, if the tile has not changed (determined by oldMesher), returns nullptr. More...
 

Protected Member Functions

 AbstractTileMesher (TileNeighborhoodInfo nbhd)
 

Protected Attributes

TileNeighborhoodInfo mTileNeighborhood
 Information for each tile in the 3x3 neighborhood of the tile to which this mesher is associated. More...
 

Detailed Description

A collection of methods for generating tile mesh data.

Constructor & Destructor Documentation

◆ ~AbstractTileMesher()

virtual M2M::AbstractTileMesher::~AbstractTileMesher ( )
inlinevirtual

◆ AbstractTileMesher()

M2M::AbstractTileMesher::AbstractTileMesher ( M2M::TileNeighborhoodInfo  nbhd)
protected

Member Function Documentation

◆ getMesherForTile()

QSharedPointer< M2M::AbstractTileMesher > M2M::AbstractTileMesher::getMesherForTile ( const TileMap tileMap,
QPoint  tilePoint 
)
static

Returns a TileMesher instance that will create the mesh for the given tile, or, if the tile has not changed (determined by oldMesher), returns nullptr.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ makeMesh()

virtual QVector<QSharedPointer<SimpleTexturedObject> > M2M::AbstractTileMesher::makeMesh ( QVector2D  offset)
pure virtual

makeMesh Creates the mesh for this tile.

Returns
A list of objects that contain the mesh info for the tile.

Implemented in M2M::AbstractPolygonTileMesher.

Member Data Documentation

◆ mTileNeighborhood

TileNeighborhoodInfo M2M::AbstractTileMesher::mTileNeighborhood
protected

Information for each tile in the 3x3 neighborhood of the tile to which this mesher is associated.


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