⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.
|
Axmol Engine 3.0.0-ff0e11a
|
Object is used for reference count management. More...
#include <Object.h>
Inherited by AnimationCurve< 3 >, AnimationCurve< 4 >, Acceleration, ActionManager, Animation, Animation3D, AnimationCurve< componentSize >, AnimationFrame, , Bone3D, CameraBackgroundBrush, Event, EventDispatcher, EventListener, GridBase, , Image, Material, Mesh, MeshIndexData, MeshSkin, MeshVertexData, Node, , PointArray, RenderState, RenderView, Scheduler, ScriptHandlerEntry, Skeleton3D, SpriteFrame, TMXObjectGroup, TMXTileAnimManager, TMXTileAnimTask, Technique, Texture2D, TextureAtlas, TextureCache, TextureCube, Touch, VertexInputBinding, , Buffer, DepthStencilState, Program, ProgramState, RenderContext, RenderPipeline, RenderTarget, ShaderModule, and Texture.
Public Member Functions | |
| void | retain () |
| Retains the ownership. | |
| void | release () |
| Releases the ownership immediately. | |
| Object * | autorelease () |
| Releases the ownership sometime soon automatically. | |
| unsigned int | getReferenceCount () const |
| Returns the Object's current reference count. | |
| virtual | ~Object () |
| Destructor. | |
Public Attributes | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID | |
| int | _luaID |
| Lua reference id. | |
Object is used for reference count management.
If a class inherits from Object, then it is easy to be shared in different places.
|
virtual |
Destructor.
@lua NA
| void retain | ( | ) |
| void release | ( | ) |
Releases the ownership immediately.
This decrements the Object's reference count.
If the reference count reaches 0 after the decrement, this Object is destructed.
| Object * autorelease | ( | ) |
| unsigned int getReferenceCount | ( | ) | const |