Class gridpp::Label¶
使用像素座標繪製一行文字。
#include <Overlay.h>
Inherits the following classes: gridpp::Overlay
Public Functions¶
| Type | Name |
|---|---|
| virtual void | Draw () override 每幀繪製時呼叫。 |
| Label (std::string text, int x, int y, int font_size=20, Color color=BLACK) |
|
| void | set_text (const std::string & text) |
Public Functions inherited from gridpp::Overlay¶
See gridpp::Overlay
| Type | Name |
|---|---|
| virtual void | Draw () 每幀繪製時呼叫。 |
| virtual void | OnUpdate () 每幀更新時呼叫。 |
| virtual | ~Overlay () = default |
Public Functions Documentation¶
function Draw¶
每幀繪製時呼叫。
Implements gridpp::Overlay::Draw
function Label¶
function set_text¶
The documentation for this class was generated from the following file Overlay.h