![]() |
DDNet documentation
|
#include <countryflags.h>
Classes | |
| class | CCountryFlag |
Public Member Functions | |
| int | Sizeof () const override |
| void | OnInit () override |
| size_t | Num () const |
| const CCountryFlag & | GetByCountryCode (int CountryCode) const |
| const CCountryFlag & | GetByIndex (size_t Index) const |
| void | Render (const CCountryFlag &Flag, ColorRGBA Color, float x, float y, float w, float h) |
| void | Render (int CountryCode, ColorRGBA Color, float x, float y, float w, float h) |
| Public Member Functions inherited from CComponent | |
| virtual void | OnStateChange (int NewState, int OldState) |
| virtual void | OnConsoleInit () |
| virtual void | OnShutdown () |
| virtual void | OnReset () |
| virtual void | OnWindowResize () |
| virtual void | OnUpdate () |
| virtual void | OnRender () |
| virtual void | OnNewSnapshot () |
| virtual void | OnRelease () |
| virtual void | OnMapLoad () |
| virtual void | OnMessage (int Msg, void *pRawMsg) |
| virtual bool | OnCursorMove (float x, float y, IInput::ECursorType CursorType) |
| virtual bool | OnInput (const IInput::CEvent &Event) |
| virtual bool | OnTouchState (std::vector< IInput::CTouchFingerState > &vTouchFingerStates) |
| Public Member Functions inherited from CComponentInterfaces | |
| virtual void | OnInterfacesInit (CGameClient *pClient) |
| virtual | ~CComponentInterfaces ()=default |
Private Member Functions | |
| void | LoadCountryflagsIndexfile () |
Static Private Member Functions | |
| static bool | ValidateCountryCodeString (const char *pString) |
Private Attributes | |
| std::vector< CCountryFlag > | m_vCountryFlags |
| size_t | m_aCountryCodeToIndexTable [CountryCode::MAXIMUM - CountryCode::MINIMUM+1] |
| int | m_FlagsQuadContainerIndex |
Additional Inherited Members | |
| Protected Member Functions inherited from CComponentInterfaces | |
| class CGameClient * | GameClient () const |
| class IClient * | Client () const |
| class IKernel * | Kernel () const |
| class IEngine * | Engine () const |
| class IGraphics * | Graphics () const |
| class ITextRender * | TextRender () const |
| class IInput * | Input () const |
| class IStorage * | Storage () const |
| class CUi * | Ui () const |
| class ISound * | Sound () const |
| class CRenderTools * | RenderTools () const |
| class CRenderMap * | RenderMap () const |
| class IConfigManager * | ConfigManager () const |
| class CConfig * | Config () const |
| class IConsole * | Console () const |
| class IDemoPlayer * | DemoPlayer () const |
| class IDemoRecorder * | DemoRecorder (int Recorder) const |
| class IFavorites * | Favorites () const |
| class IServerBrowser * | ServerBrowser () const |
| class CLayers * | Layers () const |
| class CCollision * | Collision () const |
| int64_t | time () const |
| float | LocalTime () const |
| class IHttp * | Http () const |
| const CCountryFlags::CCountryFlag & CCountryFlags::GetByCountryCode | ( | int | CountryCode | ) | const |
| const CCountryFlags::CCountryFlag & CCountryFlags::GetByIndex | ( | size_t | Index | ) | const |
|
private |
| size_t CCountryFlags::Num | ( | ) | const |
|
overridevirtual |
Called to let the components run initialization code.
Reimplemented from CComponent.
| void CCountryFlags::Render | ( | const CCountryFlag & | Flag, |
| ColorRGBA | Color, | ||
| float | x, | ||
| float | y, | ||
| float | w, | ||
| float | h ) |
| void CCountryFlags::Render | ( | int | CountryCode, |
| ColorRGBA | Color, | ||
| float | x, | ||
| float | y, | ||
| float | w, | ||
| float | h ) |
|
inlineoverridevirtual |
Gets the size of the non-abstract component.
Implements CComponent.
|
staticprivate |
|
private |
|
private |
|
private |