1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
/*!
@file
@author Albert Semenov
@date 06/2008
*/
#ifndef MYGUI_TESSELATOR_H_
#define MYGUI_TESSELATOR_H_
#include "MyGUI_Prerequest.h"
#include "MyGUI_LayerNodeAnimation.h"
namespace demo
{
class Tesselator
{
protected:
size_t tesselation(
size_t _count,
MyGUI::VectorQuadData& _data,
MyGUI::ITexture* _texture,
const MyGUI::RenderTargetInfo& _info,
const MyGUI::IntCoord& _coord);
int getCountX() const
{
return mCountX;
}
int getCountY() const
{
return mCountY;
}
int getCount() const
{
return mCountX * mCountY;
}
float getLeft() const
{
return mLeft;
}
float getTop() const
{
return mTop;
}
float getWidth() const
{
return mWidth;
}
float getHeight() const
{
return mHeight;
}
private:
int mCountX{64};
int mCountY{64};
float mLeft{0};
float mTop{0};
float mWidth{0};
float mHeight{0};
};
} // namespace MyGUI
#endif // MYGUI_TESSELATOR_H_
|