NL3D::CParamCoord Class Reference

#include <tessellation.h>


Detailed Description

The parametric coordinates of the patch. 0x0000<=>0.0f. 0x8000<=> 1.0f.

Definition at line 65 of file tessellation.h.

Public Member Functions

 CParamCoord (CParamCoord a, CParamCoord b)
 CParamCoord (uint16 s, uint16 t)
 CParamCoord ()
float getS () const
float getT () const
bool onBorder () const
void setST (float s, float t)

Data Fields

uint16 S
uint16 T


Constructor & Destructor Documentation

NL3D::CParamCoord::CParamCoord  )  [inline]
 

Definition at line 71 of file tessellation.h.

00071 {}

NL3D::CParamCoord::CParamCoord uint16  s,
uint16  t
[inline]
 

Definition at line 72 of file tessellation.h.

References s, t, and uint16.

00072 {S=s; T=t;}

NL3D::CParamCoord::CParamCoord CParamCoord  a,
CParamCoord  b
[inline]
 

Definition at line 74 of file tessellation.h.

References S, sint, T, and uint16.

00075         {
00076                 S= (uint16) (((sint)a.S + (sint)b.S)>>1);
00077                 T= (uint16) (((sint)a.T + (sint)b.T)>>1);
00078         }


Member Function Documentation

float NL3D::CParamCoord::getS  )  const [inline]
 

Definition at line 80 of file tessellation.h.

References NL3D::OO32768.

Referenced by NL3D::CZoneLighter::addTriangles(), NL3D::CTessFace::averageTesselationVertices(), NL3D::CZoneLighter::buildZoneInformation(), NL3D::CTessFace::computeTesselatedPos(), NL3D::CPatch::fillFar0DLMUvOnlyVertexListVB(), NL3D::CPatch::fillFar0VertexVB(), NL3D::CPatch::fillFar1DLMUvOnlyVertexListVB(), NL3D::CPatch::fillFar1VertexVB(), NL3D::CTessFace::getTesselatedPos(), NL3D::CTessFace::initTileUvDLM(), NL3D::CTessFace::linkTessFaceWithEdge(), NL3D::CTessFace::refreshTesselationGeometry(), NL3D::CTessFace::split(), and NL3D::CTessFace::splitRectangular().

00080 {return S*OO32768;}

float NL3D::CParamCoord::getT  )  const [inline]
 

Definition at line 81 of file tessellation.h.

References NL3D::OO32768.

Referenced by NL3D::CZoneLighter::addTriangles(), NL3D::CTessFace::averageTesselationVertices(), NL3D::CZoneLighter::buildZoneInformation(), NL3D::CTessFace::computeTesselatedPos(), NL3D::CPatch::fillFar0DLMUvOnlyVertexListVB(), NL3D::CPatch::fillFar0VertexVB(), NL3D::CPatch::fillFar1DLMUvOnlyVertexListVB(), NL3D::CPatch::fillFar1VertexVB(), NL3D::CTessFace::getTesselatedPos(), NL3D::CTessFace::initTileUvDLM(), NL3D::CTessFace::linkTessFaceWithEdge(), NL3D::CTessFace::refreshTesselationGeometry(), NL3D::CTessFace::split(), and NL3D::CTessFace::splitRectangular().

00081 {return T*OO32768;}

bool NL3D::CParamCoord::onBorder  )  const [inline]
 

Definition at line 85 of file tessellation.h.

00085 {return (S==0 || S==0x8000 || T==0 || T==0x8000);}

void NL3D::CParamCoord::setST float  s,
float  t
[inline]
 

Definition at line 83 of file tessellation.h.

References s, sint16, and t.

Referenced by NL3D::CPatch::makeRoots().

00083 {S= (sint16)(s*32768);T= (sint16)(t*32768);}


Field Documentation

uint16 NL3D::CParamCoord::S
 

Definition at line 68 of file tessellation.h.

Referenced by NL3D::CTessFace::computeTileMaterial(), CParamCoord(), NL3D::CPatch::getNumTessBlock(), NL3D::CTessFace::initTileUvLightmap(), and NL3D::CTessFace::initTileUvRGBA().

uint16 NL3D::CParamCoord::T
 

Definition at line 68 of file tessellation.h.

Referenced by NL3D::CTessFace::computeTileMaterial(), CParamCoord(), NL3D::CPatch::getNumTessBlock(), NL3D::CTessFace::initTileUvLightmap(), and NL3D::CTessFace::initTileUvRGBA().


The documentation for this class was generated from the following file:
Generated on Tue Mar 16 06:57:25 2004 for NeL by doxygen 1.3.6