#include <SimplygonSDK.h>
Settings for the ImpostorProccessor
Definition at line 19395 of file SimplygonSDK.h.
◆ GetClass()
virtual const char* SimplygonSDK::IImpostorSettings::GetClass |
( |
| ) |
|
|
virtual |
GetClass returns the name of the class of the object.
- Returns
- the name of the actual class of the object, as a const char string
Reimplemented from SimplygonSDK::ISettingsObject.
◆ GetTexCoordPadding()
virtual real SimplygonSDK::IImpostorSettings::GetTexCoordPadding |
( |
| ) |
|
|
pure virtual |
Set the TexCoord padding. Normally, the processor will generate an impostor with texcoords from 0.0 to 1.0, giving perfect UV coverage in the final texture. If your engine uses permanent tiling rendering mode, you may need to add a small padding to avoid sub-pixel wrapping artifact at the impostor edges, which this setting supplies. Ex: Setting this to 0.01 will generate texcoords in the range 0.01 to 0.99.
- Returns
- the current value of TexCoordPadding
◆ GetTightFittingDepthOffset()
virtual real SimplygonSDK::IImpostorSettings::GetTightFittingDepthOffset |
( |
| ) |
|
|
pure virtual |
Get the depth offset. This determines where the impostor will end up in depth. 0 is "center", 1 is "front" and -1 is "back"
- Returns
- the current value of OnScreenSize
◆ GetTwoSided()
virtual bool SimplygonSDK::IImpostorSettings::GetTwoSided |
( |
| ) |
|
|
pure virtual |
Set the TwoSided flag. If set, the impostor will contain both front and back facing surfaces.
- Returns
- the current value of TwoSided
◆ GetUseTightFitting()
virtual bool SimplygonSDK::IImpostorSettings::GetUseTightFitting |
( |
| ) |
|
|
pure virtual |
Get the UseTightFitting flag. If set, the impostor will exactly conform to the bounds of the geometry. If false, its dimensions will always be diameter*diameter
- Returns
- the current value of UseTightFitting
◆ GetViewDirection()
virtual void SimplygonSDK::IImpostorSettings::GetViewDirection |
( |
real * |
realReturnDataPtr | ) |
|
|
pure virtual |
Get the view direction. This vector determines how the resulting impostor geometry will be oriented. The billboard will be perpendicular to this vector.
- Parameters
-
realReturnDataPtr | pointer to a user-provided data area to receive the return value. Note! Needs to be at least 3 elements in size |
- Returns
- the current view vector
◆ IsA()
virtual bool SimplygonSDK::IImpostorSettings::IsA |
( |
const char * |
type | ) |
const |
|
virtual |
The IsA function returns true if the object is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the object is, or is a descendant of |
- Returns
- true if the object is of the specified class, false if not
Reimplemented from SimplygonSDK::ISettingsObject.
◆ IsClassA()
static bool SimplygonSDK::IImpostorSettings::IsClassA |
( |
const char * |
type | ) |
|
|
inlinestatic |
The IsClassA function returns true if IImpostorSettings is a or is a descendant of the class named as the type parameter
- Parameters
-
type | is the name of the class to check if the class is, or is a descendant of |
- Returns
- true if the class is of the specified class, false if not
Definition at line 19416 of file SimplygonSDK.h.
◆ SafeCast()
SafeCast makes sure the pointer is of a class that can be cast into a IImpostorSettings pointer, and if this is possible, returns the cast pointer.
- Parameters
-
- Returns
- a pointer to the IImpostorSettings object, if the cast can be made, and a NULL pointer otherwise
Definition at line 19429 of file SimplygonSDK.h.
◆ SetTexCoordPadding()
virtual void SimplygonSDK::IImpostorSettings::SetTexCoordPadding |
( |
real |
value | ) |
|
|
pure virtual |
Set the TexCoord padding. Normally, the processor will generate an impostor with texcoords from 0.0 to 1.0, giving perfect UV coverage in the final texture. If your engine uses permanent tiling rendering mode, you may need to add a small padding to avoid sub-pixel wrapping artifact at the impostor edges, which this setting supplies. Ex: Setting this to 0.01 will generate texcoords in the range 0.01 to 0.99.
- Parameters
-
value | is the value TexCoordPadding will be set to |
◆ SetTightFittingDepthOffset()
virtual void SimplygonSDK::IImpostorSettings::SetTightFittingDepthOffset |
( |
real |
value | ) |
|
|
pure virtual |
Set the depth offset. This determines where the impostor will end up in depth. 0 is "center", 1 is "front" and -1 is "back"
- Parameters
-
value | is the value OnScreenSize will be set to |
◆ SetTwoSided()
virtual void SimplygonSDK::IImpostorSettings::SetTwoSided |
( |
bool |
value | ) |
|
|
pure virtual |
Set the TwoSided flag. If set, the impostor will contain both front and back facing surfaces.
- Parameters
-
value | the new TwoSided value |
◆ SetUseTightFitting()
virtual void SimplygonSDK::IImpostorSettings::SetUseTightFitting |
( |
bool |
value | ) |
|
|
pure virtual |
Set the UseTightFitting flag. If set, the impostor will exactly conform to the bounds of the geometry. If false, its dimensions will always be diameter*diameter
- Parameters
-
value | is the value UseTightFitting will be set to |
◆ SetViewDirection()
virtual void SimplygonSDK::IImpostorSettings::SetViewDirection |
( |
const real * |
value_realInputDataPtr | ) |
|
|
pure virtual |
Set the view direction. This vector determines how the resulting impostor geometry will be oriented. The billboard will be perpendicular to this vector.
- Parameters
-
value_realInputDataPtr | is the new view vector |
The documentation for this class was generated from the following file: