Shape2D.h
87 void FormImageFrame (AssetID image, int frame, float forcedWidth = -1.f, float forcedHeight = -1.f);
void FormRectangle(float width, float height)
Forms the aspect into a rectangle.
void FormTriangles(std::vector< Dynacoe::Vector > &pts)
Forms the aspect into a collection of triangle primitives.
void FormCircle(float radius, int numIterations)
Forms the aspect into an estimated circle made of triangles.
void FormImageFrame(AssetID image, int frame, float forcedWidth=-1.f, float forcedHeight=-1.f)
Forms the aspect into a frame of an image.
Definition: AssetID.h:37
void FormLines(const std::vector< Dynacoe::Vector > &pts)
Forms a collection of line segments.
Assets are referred to by an AssetID. The AssetID uniquely refers to an Asset stored within memory...
Definition: AssetID.h:42
void OnDraw()
Function that is called upon each Draw iteration. Component Draw()s are run before the entity's draw ...
std::string GetInfo()
Returns a string containing human-readable information on the state of the component.
An aspect that can express basic 2D objects, such as images and shapes.
Definition: Shape2D.h:46
void FormImage(AssetID image, float forcedWidth=-1.f, float forcedHeight=-1.f)
Forms the aspect into the shape and visual of an image.