Definition at line 19 of file Smoke.h.
#include <Smoke.h>
|
| | Smoke (PgeObjectPoolBase &parentPool, PR00FsUltimateRenderingEngine &gfx) |
| |
| virtual | ~Smoke () |
| |
| | Smoke (const Smoke &)=delete |
| |
| Smoke & | operator= (const Smoke &)=delete |
| |
| | Smoke (Smoke &&)=delete |
| |
| Smoke & | operator= (Smoke &&)=delete |
| |
| void | init (const PurePosUpTarget &put, bool bGoingLeft, TPureFloat fClrRedAsFloat=1.f, TPureFloat fClrGreenAsFloat=1.f, TPureFloat fClrBlueAsFloat=1.f, TPureFloat fClrAltDarkRedAsFloat=1.f, TPureFloat fClrAltDarkGreenAsFloat=1.f, TPureFloat fClrAltDarkBlueAsFloat=1.f) |
| |
| virtual void | onSetUsed () override |
| |
| CConsole & | getConsole () const |
| | Returns access to console preset with logger module name as this class.
|
| |
| void | update (const unsigned int &nFactor) |
| |
| PureObject3D & | getObject3D () |
| |
| const PureObject3D & | getObject3D () const |
| |
◆ SmokeConfigAmount
| Enumerator |
|---|
| None | |
| Moderate | |
| Normal | |
| Extreme | |
Definition at line 23 of file Smoke.h.
◆ Smoke() [1/3]
| proofps_dd::Smoke::Smoke |
( |
PgeObjectPoolBase & | parentPool, |
|
|
PR00FsUltimateRenderingEngine & | gfx ) |
◆ ~Smoke()
| proofps_dd::Smoke::~Smoke |
( |
| ) |
|
|
virtual |
◆ Smoke() [2/3]
| proofps_dd::Smoke::Smoke |
( |
const Smoke & | | ) |
|
|
delete |
◆ Smoke() [3/3]
| proofps_dd::Smoke::Smoke |
( |
Smoke && | | ) |
|
|
delete |
◆ build3dObject()
| void proofps_dd::Smoke::build3dObject |
( |
| ) |
|
|
private |
◆ destroyReferenceObject()
| void proofps_dd::Smoke::destroyReferenceObject |
( |
| ) |
|
|
static |
◆ enumFromSmokeAmountString()
◆ getConsole()
| CConsole & proofps_dd::Smoke::getConsole |
( |
| ) |
const |
Returns access to console preset with logger module name as this class.
Definition at line 161 of file Smoke.cpp.
◆ getLoggerModuleName()
| const char * proofps_dd::Smoke::getLoggerModuleName |
( |
| ) |
|
|
static |
Returns the logger module name of this class.
Definition at line 56 of file Smoke.cpp.
◆ getObject3D() [1/2]
| PureObject3D & proofps_dd::Smoke::getObject3D |
( |
| ) |
|
◆ getObject3D() [2/2]
| const PureObject3D & proofps_dd::Smoke::getObject3D |
( |
| ) |
const |
◆ init()
| void proofps_dd::Smoke::init |
( |
const PurePosUpTarget & | put, |
|
|
bool | bGoingLeft, |
|
|
TPureFloat | fClrRedAsFloat = 1.f, |
|
|
TPureFloat | fClrGreenAsFloat = 1.f, |
|
|
TPureFloat | fClrBlueAsFloat = 1.f, |
|
|
TPureFloat | fClrAltDarkRedAsFloat = 1.f, |
|
|
TPureFloat | fClrAltDarkGreenAsFloat = 1.f, |
|
|
TPureFloat | fClrAltDarkBlueAsFloat = 1.f ) |
◆ isValidSmokeAmountString()
| bool proofps_dd::Smoke::isValidSmokeAmountString |
( |
const std::string & | str | ) |
|
|
static |
◆ onSetUsed()
| void proofps_dd::Smoke::onSetUsed |
( |
| ) |
|
|
overridevirtual |
◆ operator=() [1/2]
| Smoke & proofps_dd::Smoke::operator= |
( |
const Smoke & | | ) |
|
|
delete |
◆ operator=() [2/2]
◆ update()
| void proofps_dd::Smoke::update |
( |
const unsigned int & | nFactor | ) |
|
◆ updateSmokeConfigAmount()
| void proofps_dd::Smoke::updateSmokeConfigAmount |
( |
const SmokeConfigAmount & | eSmokeConfigAmount | ) |
|
|
static |
◆ m_bGoingLeft
| bool proofps_dd::Smoke::m_bGoingLeft |
|
private |
True if bullet and smoke going to left, false otherwise.
Used by both PGE client and server instances.
Definition at line 121 of file Smoke.h.
◆ m_eSmokeConfigAmount
◆ m_fInitialClrBlueAsFloat
| TPureFloat proofps_dd::Smoke::m_fInitialClrBlueAsFloat |
|
private |
◆ m_fInitialClrGreenAsFloat
| TPureFloat proofps_dd::Smoke::m_fInitialClrGreenAsFloat |
|
private |
◆ m_fInitialClrRedAsFloat
| TPureFloat proofps_dd::Smoke::m_fInitialClrRedAsFloat |
|
private |
◆ m_fScaling
| TPureFloat proofps_dd::Smoke::m_fScaling |
|
private |
To be increased during animation.
Used by both PGE client and server instances.
Definition at line 119 of file Smoke.h.
◆ m_gfx
| PR00FsUltimateRenderingEngine& proofps_dd::Smoke::m_gfx |
|
private |
◆ m_obj
| PureObject3D* proofps_dd::Smoke::m_obj |
|
private |
Associated Pure object to be rendered.
Used by PGE server and client instances. TODO: shared ptr.
Definition at line 118 of file Smoke.h.
◆ m_pSmokeRefObject
| PureObject3D * proofps_dd::Smoke::m_pSmokeRefObject = nullptr |
|
staticprivate |
◆ m_put
| PurePosUpTarget proofps_dd::Smoke::m_put |
|
private |
PUT to calculate next position.
Used by both PGE client and server instances.
Definition at line 120 of file Smoke.h.
◆ smokeEmitOperValues
| auto proofps_dd::Smoke::smokeEmitOperValues |
|
staticconstexpr |
Initial value:= PFL::std_array_of<SmokeEmitOperValues>(
SmokeEmitOperValues{ 2.f, 6 },
SmokeEmitOperValues{ 2.f, 3 },
SmokeEmitOperValues{ 2.f, 2 }
)
Based on user configuration SmokeConfigAmount, this table shows operational values used for smoke generation.
Due to current design, the max number of smokes at a time per bullet cannot be explicitly set, however with these values, it can be tuned:
- higher scaling speed leads to less smoke objects at a time,
- higher EmitInEveryNPhysicsIteration leads to less smoke objects at a time. The resulting max smoke objects per bullet with 60 Hz physics rate is mentioned near each setting.
Definition at line 56 of file Smoke.h.
◆ szCVarGfxSmokeAmount
| char* proofps_dd::Smoke::szCVarGfxSmokeAmount = "gfx_smoke_amount" |
|
staticconstexpr |
◆ validSmokeConfigAmountStringValues
| auto proofps_dd::Smoke::validSmokeConfigAmountStringValues |
|
staticconstexpr |
Initial value:= PFL::std_array_of<const char*>(
"none",
"moderate",
"normal",
"extreme"
)
Definition at line 31 of file Smoke.h.
The documentation for this class was generated from the following files:
- C:/__PR00F__/___developing___/projects/PRooFPS-dd/PRooFPS-dd/Smoke.h
- C:/__PR00F__/___developing___/projects/PRooFPS-dd/PRooFPS-dd/Smoke.cpp