# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CTileElement Class Reference

An Element for CPatchTexture. More...

#include <tile_element.h>

List of all members.

Public Methods

void setTileOrient (sint i, uint8 orient)
 Set the tile orientation of pass i, to "orient". More...

uint8 getTileOrient (sint i) const
 Get the tile orientation of pass i. More...

void setTile256Info (bool is256x256, uint8 uvOff=0)
 Set the tile 256x256 information of pass 0. More...

void getTile256Info (bool &is256x256, uint8 &uvOff) const
 Get the tile 256x256 information. More...

void serial (NLMISC::IStream &f)

Public Attributes

uint16 Tile [3]
 The three tile ident. More...


Private Attributes

uint16 Flags


Detailed Description

An Element for CPatchTexture.

Temporary! since CPatchTexture should be compressed... NB: no default ctor => must init all fields.

Author(s):
Lionel Berenguier , Nevrax France
Date:
2000

Definition at line 53 of file tile_element.h.


Member Function Documentation

void NL3D::CTileElement::getTile256Info ( bool & is256x256,
uint8 & uvOff ) const
 

Get the tile 256x256 information.

Definition at line 62 of file tile_element.cpp.

uint8 NL3D::CTileElement::getTileOrient ( sint i ) const
 

Get the tile orientation of pass i.

orient E [0,3]. The rotation is CCW.

Definition at line 44 of file tile_element.cpp.

void NL3D::CTileElement::serial ( NLMISC::IStream & f )
 

Definition at line 71 of file tile_element.cpp.

void NL3D::CTileElement::setTile256Info ( bool is256x256,
uint8 uvOff = 0 )
 

Set the tile 256x256 information of pass 0.

NB: During UV computing, orient is applied first, then tile256x256 uvOffset (only if the tile is 256x256).

Parameters:
is256x256   is this tile a part of a 256x256
uvOff   the UV offset of tile 256x256. uvOff E [0,3]. Meanings: --------- | 0 | 3 | |___|___| | | | | 1 | 2 | ---------

Definition at line 52 of file tile_element.cpp.

void NL3D::CTileElement::setTileOrient ( sint i,
uint8 orient )
 

Set the tile orientation of pass i, to "orient".

orient E [0,3]. The rotation is CCW.

Definition at line 34 of file tile_element.cpp.


Member Data Documentation

uint16 NL3D::CTileElement::Flags [private]
 

Definition at line 56 of file tile_element.h.

uint16 NL3D::CTileElement::Tile[3]
 

The three tile ident.

NL_TILE_ELM_LAYER_EMPTY means no Tile for this pass. Tile[0] should be !=NL_TILE_ELM_LAYER_EMPTY. Else cross are drawn...

Definition at line 62 of file tile_element.h.


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