RectangleShape
class RectangleShape : Shape, IDisposable, IVerifiable {
Mesh _mesh;
vec4 _texCoords;
vec2 _size;
}
- this
this()
A destructor is present on this object, but not explicitly documented in the source.
- create
void create()
Creates a new mesh after disposing the old mesh.
- draw
void draw(IRenderTarget target, ShaderProgram shader = null)
Sets the current transformation matrix and draws this onto the target.
- size
vec2 size [@property getter]
Property for the size of the rectangle.
- texCoords
vec4 texCoords [@property getter]
Property for begin xy and end xy using a vec4 for texture coordinates.
- valid
bool valid [@property getter]
Returns if the mesh is valid.
- create
RectangleShape create(vec2 position, vec2 size)
- create
RectangleShape create(Texture texture, vec2 position, vec2 size)
- create
RectangleShape create(Texture texture, vec2 position, vec2 size, vec4 texCoords)
A resizable rectangle containing a texture.