25 #ifndef GRAPHICS_AURORA_GUIQUAD_H 26 #define GRAPHICS_AURORA_GUIQUAD_H 45 float x1 ,
float y1 ,
float x2 ,
float y2,
46 float tX1 = 0.0f,
float tY1 = 0.0f,
float tX2 = 1.0f,
float tY2 = 1.0f);
48 float x1 ,
float y1 ,
float x2 ,
float y2,
49 float tX1 = 0.0f,
float tY1 = 0.0f,
float tX2 = 1.0f,
float tY2 = 1.0f);
51 float x1 ,
float y1 ,
float x2 ,
float y2,
52 float tX1 = 0.0f,
float tY1 = 0.0f,
float tX2 = 1.0f,
float tY2 = 1.0f);
56 void getPosition(
float &x,
float &y,
float &z)
const;
64 void getColor(
float &r,
float &g,
float &b,
float &a)
const;
66 void setColor(
float r,
float g,
float b,
float a);
73 void setScissor(
int x,
int y,
int width,
int height);
86 bool isIn(
float x,
float y)
const;
126 #endif // GRAPHICS_AURORA_GUIQUAD_H void setScissor(int x, int y, int width, int height)
Set the scissor test parameters.
void setHeight(float h)
Set the quad's height.
A class holding an UTF-8 string.
void setWidth(float w)
Set the quad's width.
float getWidth() const
Return the quad's width.
void setColor(float r, float g, float b, float a)
Set the current color of the quad.
A handle to an Aurora texture.
void setXOR(bool enabled)
Enable/Disable XOR mode.
void getColor(float &r, float &g, float &b, float &a) const
Get the current color of the quad.
void setRotation(float angle)
Set the current rotation of the quad in degrees.
GUIQuad(const Common::UString &texture, float x1, float y1, float x2, float y2, float tX1=0.0f, float tY1=0.0f, float tX2=1.0f, float tY2=1.0f)
bool isIn(float x, float y) const
Is the point within the quad?
void getPosition(float &x, float &y, float &z) const
Get the current position of the quad.
void setTexture(const Common::UString &texture)
Set the current texture of the quad.
void setPosition(float x, float y, float z=-FLT_MAX)
Set the current position of the quad.
void render(RenderPass pass)
Render the object.
float getHeight() const
Return the quad's height.
void calculateDistance()
Calculate the object's distance.