#include <zone_lighter.h>
Public Types | |
enum | TFlags { Landscape = 1, DoubleSided = 2, ClampU = 4, ClampV = 8 } |
Public Member Functions | |
CTriangle (const NLMISC::CTriangle &triangle) | |
CTriangle (const NLMISC::CTriangle &triangle, bool doubleSided, const NLMISC::CBitmap *texture, bool clampU, bool clampV, float *u, float *v, uint8 alphaTestThreshold) | |
const CPlane & | getPlane () const |
Data Fields | |
uint8 | AlphaTestThreshold |
uint8 | Flags |
const NLMISC::CBitmap * | Texture |
NLMISC::CTriangle | Triangle |
float | U [3] |
float | V [3] |
Private Attributes | |
NLMISC::CPlane | _Plane |
Friends | |
class | CZoneLighter |
|
Definition at line 169 of file zone_lighter.h.
00170 { 00171 Landscape = 1, 00172 DoubleSided = 2, 00173 ClampU = 4, 00174 ClampV = 8, 00175 }; |
|
Definition at line 178 of file zone_lighter.h. References AlphaTestThreshold, ClampU, ClampV, uint, uint8, and v.
00179 { 00180 // Copy the triangle 00181 Triangle=triangle; 00182 00183 // Draw it in the heightmap 00184 Flags = 0; 00185 00186 // Double sided 00187 Flags |= doubleSided ? DoubleSided : 0; 00188 00189 // Texture 00190 Texture = texture; 00191 00192 // Texture used ? 00193 if (Texture) 00194 { 00195 // Alpha test threshold 00196 AlphaTestThreshold = alphaTestThreshold; 00197 00198 // Flags 00199 Flags |= clampU ? ClampU : 0; 00200 Flags |= clampV ? ClampV : 0; 00201 00202 // Copy U and V 00203 for (uint i=0; i<3; i++) 00204 { 00205 U[i] = u[i]; 00206 V[i] = v[i]; 00207 } 00208 } 00209 } |
|
Definition at line 212 of file zone_lighter.h.
|
|
Definition at line 239 of file zone_lighter.h. References _Plane. Referenced by NL3D::CZoneLighter::compilePointLightRT(), NL3D::CRenderZBuffer::run(), and NL3D::CZoneLighter::CPointLightRT::testRaytrace().
00239 {return _Plane;} |
|
Definition at line 167 of file zone_lighter.h. |
|
Definition at line 241 of file zone_lighter.h. Referenced by getPlane(), and NL3D::CZoneLighter::light(). |
|
Definition at line 229 of file zone_lighter.h. Referenced by CTriangle(), and RenderTriangle(). |
|
Definition at line 228 of file zone_lighter.h. Referenced by NL3D::CZoneLighter::light(), RenderTriangle(), and NL3D::CRenderZBuffer::run(). |
|
Definition at line 236 of file zone_lighter.h. Referenced by RenderTriangle(). |
|
Definition at line 225 of file zone_lighter.h. Referenced by NL3D::CZoneLighter::compilePointLightRT(), NL3D::CZoneLighter::light(), RenderTriangle(), and NL3D::CZoneLighter::CPointLightRT::testRaytrace(). |
|
Definition at line 232 of file zone_lighter.h. Referenced by RenderTriangle(). |
|
Definition at line 233 of file zone_lighter.h. Referenced by RenderTriangle(). |