21 #include "hx3d/audio/display.hpp" 26 using ::hx3d::graphics::Color;
30 Display::~Display() {}
void drawBorders()
Draw white borders.
void setRefreshDelay(const int refreshDelay)
Set the refresh delay.
void setRect(unsigned int x, unsigned int y, unsigned int w, unsigned int h, Color color)
Set a rectangle with a color.
void initialize(long delay, bool loop=false)
Initialize the timer with a delay.
unsigned int getHeight()
Get the image height.
void buildTexture()
Recreate a texture from the image.
Timer _timer
Refresh timer.
void initialize(const unsigned int width, const unsigned int height)
Initialize the display.
Display()
Create an empty display with a refresh delay of 50.
unsigned int getWidth()
Get the image width.
int _refreshDelay
Refresh delay.
Ptr< Texture > getTexture()
Get the texture.
graphics::Image _image
Drawing image.
void create(unsigned int width, unsigned int height)
Initialize an image.
bool _initialized
Is the display initialized ?
virtual void onInitialization()
Use this to execute code after initialization.