38 #include "cuiProgressBar.h"
40 cuiProgressBar::cuiProgressBar(
void)
42 _Color = laColor(255,255,255);
56 cuiProgressBar::~cuiProgressBar(
void)
60 void cuiProgressBar::draw(
laRenderer* r, laPoint3 pos)
62 double Full_Width = ( (_dWidth-(_dLeftMargin+_dRightMargin))/_dMaxValue)*_dValue;
63 double Full_Width_m = ( (_dWidth-(_dLeftMargin+_dRightMargin))/_dMaxValue)*_dValue + _dLeftMargin;
65 if(_texEmpty.id()) _texFull.use();
82 pos[0] += Full_Width_m;
89 void cuiProgressBar::setTextures(
char* strEmptyTex,
char* strFullTex,
double dLeftMargin,
double dRightMargin)
91 laRenderer* r = ::laSystemIntegrator::getRenderer();
97 _dLeftMargin = dLeftMargin;
98 _dRightMargin = dRightMargin;
#define M_UNIT
Unit of 1 meter.
virtual void vquadsDrawSingle(laPoint2 *ar_uv=NULL)=0
Draw a single VQ (Note this is slower than drawing an array of VQ and should be avoided) ...
void vquadsMakeXYRect(unsigned nIndex, const laPoint3 &pos, const laPoint3 &sz, const laPoint2 &uv, const laPoint2 &uv_sz)
Makes a quad aligned to the XY plane; (handy for GUI rendering )
Virtual interface for the Engine graphics renderer.
#define M_TEX_TMAP
Transparent texture with an alpha channel.