Texit.ImageEntity

An image entity

Constructors

this
this(Vector pos, Image img)
Undocumented in source.
this
this(Vector pos, string id, Image img)
Undocumented in source.
this
this(Vector pos, string filename)
Undocumented in source.
this
this(Vector pos, string id, string filename)
Undocumented in source.
this
this(Vector pos, Vector size, Image img)
Undocumented in source.
this
this(Vector pos, Vector size, string id, Image img)
Undocumented in source.
this
this(Vector pos, Vector size, string filename)
Undocumented in source.
this
this(Vector pos, Vector size, string id, string filename)
Undocumented in source.

Members

Functions

render
void render(Vector spos, Vector ssize)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

img
Image img;

The image

Inherited Members

From Entity

id
string id;

Unique ID of this entity

pos
Vector pos;
Undocumented in source.
size
Vector size;

Position and size of the entity

visible
bool visible;

Whether this entity is visible right now or not

generateID
string generateID()

Generates an ID (they look like entity-0, entity-1, entity-2, entity-3, etc)

show
void show()

Shows the entity

hide
void hide()

Hides the entity

render
void render()

Call this to render the entity

render
void render(Vector spos, Vector ssize)

Rendering code (this is what should be overriden)

Meta