36 float x,
float y,
float w,
float h,
int dimension) :
38 _edgeWidth(0), _edgeHeight(0), _cornerWidth(0), _cornerHeight(0),
39 _r(1.0f), _g(1.0f), _b(1.0f), _a(1.0f), _x(x), _y(y), _w(w), _h(h) {
151 glEnable(GL_SCISSOR_TEST);
153 glGetIntegerv(GL_VIEWPORT, viewport);
155 viewport[2]/2 +
_x, viewport[3]/2 +
_y,
199 glDisable(GL_SCISSOR_TEST);
238 glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
Only render transparent parts.
Texture & getTexture() const
A class holding an UTF-8 string.
#define TextureMan
Shortcut for accessing the texture manager.
double _distance
The distance of the object from the viewer.
The Aurora texture manager.
void unlockFrameIfVisible()
void lockFrameIfVisible()
BorderQuad(const Common::UString &edge, const Common::UString &corner, float x, float y, float w, float h, int dimension=0)
virtual void calculateDistance()
Calculate the object's distance.
void setPosition(float x, float y, float z)
A quad for generating borders.
void render(RenderPass pass)
Render the object.
An object that can be displayed by the graphics manager.
void setColor(float r, float g, float b, float a=1.0f)
Set the color of the border quad.
void getPosition(float &x, float &y, float &z)
void getSize(float &w, float &h) const
Only render opaque parts.
void setSize(float w, float h)