This class has been deprecated.
More...
#include <HUtilityShadow.h>
|
void | CalculateShadowExtents (HC_KEY segkey, float *totalmatrix) |
|
void | CalculateTotalShadowExtents () |
|
void | CreateShadowTexture () |
|
void | CreateSoftShadow () |
|
void | SmoothImage (HPixelRGB *origImage, HPixelRGBA **smoothImage, int width, int height, int filterSize, int filter[]) |
|
Protected Member Functions inherited from HShadow |
void | ComputeObjectExtents (HPoint &min, HPoint &max, HPoint points[], int numpoints) |
|
bool | HasShell (HC_KEY segKey) |
|
HC_KEY | IsolateShell () |
|
void | RestoreShell () |
|
void | RotateToGroundPlane (HPlane plane, float matrix[]) |
|
void | ShadowMatrix2 (float matrix[], HPlane plane, HPoint d) |
|
void | ShowModellingMatrix (HC_KEY segkey, float oldmatrix[], float newmatrix[]) |
|
This class has been deprecated.
This class has been deprecated.
◆ HSmoothShadow()
HSmoothShadow::HSmoothShadow |
( |
HC_KEY |
ModelSegmentKey, |
|
|
HC_KEY |
ShadowBaseSegmentKey, |
|
|
bool |
UseOglShadow = false |
|
) |
| |
- Parameters
-
ModelSegmentKey | Top-Level Segment that shadows should be applied to |
ShadowBaseSegmentKey | Segment that contains the shadow geometry |
UseOglShadow | Enables Hardware Support for Shadow Generation |
◆ CalculateShadowExtents()
void HSmoothShadow::CalculateShadowExtents |
( |
HC_KEY |
segkey, |
|
|
float * |
totalmatrix |
|
) |
| |
|
protected |
Recursively calculates the total shadow size
- Parameters
-
segkey | startsegment for the shadow calculation |
totalmatrix | combined modelling matrix |
◆ CalculateTotalShadowExtents()
void HSmoothShadow::CalculateTotalShadowExtents |
( |
| ) |
|
|
protected |
Calculates the total shadow size
◆ CleanUp()
void HSmoothShadow::CleanUp |
( |
| ) |
|
◆ Create() [1/2]
void HSmoothShadow::Create |
( |
ShadowPlaneType |
ptype, |
|
|
int |
TextureSize = 0 , |
|
|
int |
FilterSize = -1 , |
|
|
int |
filter[] = 0 |
|
) |
| |
Creates a smooth shadow at the given plane
- Parameters
-
ptype | can be XZ_PLANE, XY_PLANE or YZ_PLANE. |
TextureSize | width/height of the shadow texture. For full hardware support must be 64,128, or 256 |
FilterSize | width/height of the filter used for texture smoothing (only uneven filter sizes make sense!) |
filter | Pointer to texture smoothing |
◆ Create() [2/2]
void HSmoothShadow::Create |
( |
| ) |
|
Creates a smooth shadow with the current parameters
◆ CreateShadowTexture()
void HSmoothShadow::CreateShadowTexture |
( |
| ) |
|
|
protected |
Creates shadow texture and associates texture to simple mesh
◆ CreateSoftShadow()
void HSmoothShadow::CreateSoftShadow |
( |
| ) |
|
|
protected |
Image driver setup for shadow texture creation
◆ GetFilterSize()
int HSmoothShadow::GetFilterSize |
( |
| ) |
|
|
inline |
Returns the shadow filter dimension
◆ GetTextureSize()
int HSmoothShadow::GetTextureSize |
( |
| ) |
|
|
inline |
Returns the texture size of the shadow
◆ SetAllowOpenglShadow()
void HSmoothShadow::SetAllowOpenglShadow |
( |
bool |
AllowOpenglShadow | ) |
|
|
inline |
Allow Opengl offscreen buffer for shadow generation
- Parameters
-
AllowOpenglShadow | true = opengl offscreen buffer, false = image driver |
◆ SetFilter()
void HSmoothShadow::SetFilter |
( |
int |
filter[], |
|
|
int |
FilterSize |
|
) |
| |
|
inline |
Specifies the smoothing filter
- Parameters
-
filter | Pointer to smoothing filter |
FilterSize | SIze of smoothing filter |
◆ SetTextureSize()
void HSmoothShadow::SetTextureSize |
( |
int |
TextureSize | ) |
|
|
inline |
Sets the texture size of the shadow
- Parameters
-
TextureSize | dimensions of texture in x/y |
◆ SmoothImage()
void HSmoothShadow::SmoothImage |
( |
HPixelRGB * |
origImage, |
|
|
HPixelRGBA ** |
smoothImage, |
|
|
int |
width, |
|
|
int |
height, |
|
|
int |
filterSize, |
|
|
int |
filter[] |
|
) |
| |
|
protected |
Image Filter function
- Parameters
-
origImage | input image |
smoothImage | output image |
width | image width |
height | image heigh |
filterSize | size of image filter |
filter | filter matrix |
◆ UnDefineAllShadowTextures()
static void HSmoothShadow::UnDefineAllShadowTextures |
( |
HC_KEY |
modelsegmentkey | ) |
|
|
static |
Undefines all Shadow Textures
◆ UnDefineShadowTexture()
void HSmoothShadow::UnDefineShadowTexture |
( |
| ) |
|
Undefines the Shadow Texture
The documentation for this class was generated from the following file: