Creates a sprite with an image to use when rendering.
constructor Create(const Owner: TAgkObject; const Image: TAgkImage); overload;
|
Parameters |
Description |
|
const Owner: TAgkObject |
the owner of the new sprite (eg. a TAgkScene object). |
|
const Image: TAgkImage |
the image to use for rendering. May be nil to create a blank sprite that is drawn with color only, or to add animation frames to later (using AddAnimationFrame). |
By default image sprites are created with transparency set to tmAlphaTransparency, a depth of 10, are sized using the given image as a guide, and positioned at 0,0 using their top left corner.
|
Copyright (c) 2012. All rights reserved.
|