21 #ifndef HX3D_AUDIO_DISPLAY 22 #define HX3D_AUDIO_DISPLAY 24 #include "hx3d/graphics/sprite.hpp" 25 #include "hx3d/graphics/image.hpp" 27 #include "hx3d/utils/timer.hpp" 28 #include "hx3d/utils/ptr.hpp" 58 Display(
const int refreshDelay);
67 void initialize(
const unsigned int width,
const unsigned int height);
83 virtual void update(
const Sint16* stream,
const int length,
const float delta) = 0;
virtual void update(const Sint16 *stream, const int length, const float delta)=0
Update the display.
void drawBorders()
Draw white borders.
void setRefreshDelay(const int refreshDelay)
Set the refresh delay.
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.
int _refreshDelay
Refresh delay.
graphics::Image _image
Drawing image.
Real-time editable texture.
bool _initialized
Is the display initialized ?
virtual void onInitialization()
Use this to execute code after initialization.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.