# 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...


Static Public Methods

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


Public Attributes

uint8 Shaded
 The shading value [0-255]. Always valid. 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:
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.

References _ShadowValue, and Shaded.

Referenced by unpack.

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 37 of file tile_lumel.cpp.

References _ShadowValue, NLMISC::clamp, and Shaded.

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.

References _ShadowValue.

Referenced by pack.

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 74 of file tile_lumel.cpp.

References _ShadowValue, and isShadowed.

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.

References _ShadowValue, createCompressed, Shaded, and value.


Member Data Documentation

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.

Referenced by createCompressed, createUncompressed, isShadowed, pack, and unpack.

uint8 NL3D::CTileLumel::Shaded
 

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

Definition at line 124 of file tile_lumel.h.

Referenced by createCompressed, createUncompressed, and unpack.


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