cesium-native
0.41.0
|
Creates and manages Credit objects. Avoids repetitions and tracks which credits should be shown and which credits should be removed this frame. More...
#include <CesiumUtility/CreditSystem.h>
Public Member Functions | |
Credit | createCredit (std::string &&html, bool showOnScreen=false) |
Inserts a credit string. More... | |
Credit | createCredit (const std::string &html, bool showOnScreen=false) |
Inserts a credit string. More... | |
bool | shouldBeShownOnScreen (Credit credit) const noexcept |
Gets whether or not the credit should be shown on screen. | |
void | setShowOnScreen (Credit credit, bool showOnScreen) noexcept |
Sets whether or not the credit should be shown on screen. | |
const std::string & | getHtml (Credit credit) const noexcept |
Get the HTML string for this credit. | |
void | addCreditToFrame (Credit credit) |
Adds the Credit to the set of credits to show this frame. | |
void | startNextFrame () noexcept |
Notifies this CreditSystem to start tracking the credits to show for the next frame. | |
const std::vector< Credit > & | getCreditsToShowThisFrame () noexcept |
Get the credits to show this frame. | |
const std::vector< Credit > & | getCreditsToNoLongerShowThisFrame () const noexcept |
Get the credits that were shown last frame but should no longer be shown. | |
Creates and manages Credit objects. Avoids repetitions and tracks which credits should be shown and which credits should be removed this frame.
Definition at line 39 of file CreditSystem.h.
Credit CesiumUtility::CreditSystem::createCredit | ( | const std::string & | html, |
bool | showOnScreen = false |
||
) |
Credit CesiumUtility::CreditSystem::createCredit | ( | std::string && | html, |
bool | showOnScreen = false |
||
) |