# 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::CTileLumel Class Reference

This class describe an uncompressed lumel for tiles. More...

#include <tile_lumel.h>

List of all members.

Public Methods

void createCompressed (uint8 interpolated, uint8 _4bits)
 Create a tileLumel with precompressed data. More...

void createUncompressed (uint8 interpolated, uint8 shaded)
 Create a tileLumel from uncompressed data. More...

void unpack (CStreamBit& stream, uint8 interpolated)
 Unpack the lumel from a bit stream. More...

void pack (CStreamBit& stream) const
 Pack the lumel from a bit stream. More...

bool isShadowed () const
 Is shadow are present? return true if this lumel is shadowed, else false. More...


Public Attributes

uint8 Shaded
 The shading value [0-255]. Always valid. More...


Static Public Methods

void skip (CStreamBit& stream)
 Skip the lumel from a bit stream. More...


Private Attributes

uint8 _ShadowValue
 The shadow 4 bits value [0-15]. 0xff means no shadows. More...


Detailed Description

This class describe an uncompressed lumel for tiles.

Author(s):
Cyril Corvazier , Nevrax France
Date:
2000

Definition at line 47 of file tile_lumel.h.


Member Function Documentation

void NL3D::CTileLumel::createCompressed ( uint8 interpolated,
uint8 _4bits ) [inline]
 

Create a tileLumel with precompressed data.

Parameters:
interpolated   is the bilinear interpolated value at this lumel.
_4bits   is the 4 bits compressed shadow.

Definition at line 204 of file tile_lumel.h.

void NL3D::CTileLumel::createUncompressed ( uint8 interpolated,
uint8 shaded )
 

Create a tileLumel from uncompressed data.

Parameters:
interpolated   is the bilinear interpolated value at this lumel.
shaded   is the reel shading value at this lumel.

Definition at line 35 of file tile_lumel.cpp.

bool NL3D::CTileLumel::isShadowed ( ) const [inline]
 

Is shadow are present? return true if this lumel is shadowed, else false.

Parameters:
stream   is the bit stream used to pack the lumel.

Definition at line 117 of file tile_lumel.h.

void NL3D::CTileLumel::pack ( CStreamBit & stream ) const
 

Pack the lumel from a bit stream.

Parameters:
stream   is the bit stream used to pack the lumel.

Definition at line 72 of file tile_lumel.cpp.

void NL3D::CTileLumel::skip ( CStreamBit & stream ) [inline, static]
 

Skip the lumel from a bit stream.

Parameters:
stream   is the bit stream used to skip the lumel.

Definition at line 240 of file tile_lumel.h.

void NL3D::CTileLumel::unpack ( CStreamBit & stream,
uint8 interpolated ) [inline]
 

Unpack the lumel from a bit stream.

Parameters:
interpolated   is the bilinear interpolated value at this lumel.
stream   is the bit stream used to unpack the lumel.

Definition at line 218 of file tile_lumel.h.


Member Data Documentation

uint8 NL3D::CTileLumel::Shaded
 

The shading value [0-255]. Always valid.

Definition at line 124 of file tile_lumel.h.

uint8 NL3D::CTileLumel::_ShadowValue [private]
 

The shadow 4 bits value [0-15]. 0xff means no shadows.

Definition at line 127 of file tile_lumel.h.


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