Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
VoxelLayerClass Class Reference

#include <vxllayer.h>

Public Member Functions

 VoxelLayerClass ()
 
 VoxelLayerClass (INodeListClass &objectlist, TimeValue time, Matrix3 parenttm, Point3 offset, Point3 scale, float slicez, float sliceh, int bmwidth, int bmheight)
 
 ~VoxelLayerClass ()
 
BOOL Is_Visible (int x, int y)
 
BOOL Is_Solid (int x, int y)
 
unsigned int Get_Width (void)
 
unsigned int Get_Height (void)
 

Protected Member Functions

void Set_Visible (int x, int y)
 
void Add_Solid (int x, int y)
 
void Draw_Line (double x0, double y0, double x1, double y1)
 
void Intersect_Triangle (Point3 a, Point3 b, Point3 c, float z)
 
void Scan_Triangle (Point3 a, Point3 b, Point3 c)
 

Protected Attributes

sint8 Solid [max_bitmap_width][max_bitmap_height]
 
float SliceZ
 
float SliceH
 
float SliceZ0
 
float SliceZ1
 
int bitmap_width
 
int bitmap_height
 

Detailed Description

Definition at line 60 of file vxllayer.h.

Constructor & Destructor Documentation

◆ VoxelLayerClass() [1/2]

VoxelLayerClass::VoxelLayerClass ( )

◆ VoxelLayerClass() [2/2]

VoxelLayerClass::VoxelLayerClass ( INodeListClass & objectlist,
TimeValue time,
Matrix3 parenttm,
Point3 offset,
Point3 scale,
float slicez,
float sliceh,
int bmwidth,
int bmheight )

Definition at line 142 of file vxllayer.cpp.

◆ ~VoxelLayerClass()

VoxelLayerClass::~VoxelLayerClass ( )
inline

Definition at line 79 of file vxllayer.h.

Member Function Documentation

◆ Add_Solid()

void VoxelLayerClass::Add_Solid ( int x,
int y )
inlineprotected

Definition at line 120 of file vxllayer.h.

◆ Draw_Line()

void VoxelLayerClass::Draw_Line ( double x0,
double y0,
double x1,
double y1 )
protected

Definition at line 307 of file vxllayer.cpp.

◆ Get_Height()

unsigned int VoxelLayerClass::Get_Height ( void )
inline

Definition at line 108 of file vxllayer.h.

◆ Get_Width()

unsigned int VoxelLayerClass::Get_Width ( void )
inline

Definition at line 107 of file vxllayer.h.

◆ Intersect_Triangle()

void VoxelLayerClass::Intersect_Triangle ( Point3 a,
Point3 b,
Point3 c,
float z )
protected

Definition at line 228 of file vxllayer.cpp.

◆ Is_Solid()

BOOL VoxelLayerClass::Is_Solid ( int x,
int y )
inline

Definition at line 94 of file vxllayer.h.

◆ Is_Visible()

BOOL VoxelLayerClass::Is_Visible ( int x,
int y )
inline

Definition at line 81 of file vxllayer.h.

◆ Scan_Triangle()

void VoxelLayerClass::Scan_Triangle ( Point3 a,
Point3 b,
Point3 c )
protected

Definition at line 395 of file vxllayer.cpp.

◆ Set_Visible()

void VoxelLayerClass::Set_Visible ( int x,
int y )
inlineprotected

Definition at line 112 of file vxllayer.h.

Member Data Documentation

◆ bitmap_height

int VoxelLayerClass::bitmap_height
protected

Definition at line 145 of file vxllayer.h.

◆ bitmap_width

int VoxelLayerClass::bitmap_width
protected

Definition at line 144 of file vxllayer.h.

◆ SliceH

float VoxelLayerClass::SliceH
protected

Definition at line 140 of file vxllayer.h.

◆ SliceZ

float VoxelLayerClass::SliceZ
protected

Definition at line 139 of file vxllayer.h.

◆ SliceZ0

float VoxelLayerClass::SliceZ0
protected

Definition at line 141 of file vxllayer.h.

◆ SliceZ1

float VoxelLayerClass::SliceZ1
protected

Definition at line 142 of file vxllayer.h.

◆ Solid

sint8 VoxelLayerClass::Solid[max_bitmap_width][max_bitmap_height]
protected

Definition at line 137 of file vxllayer.h.


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