#include <nap/resource.h>
Public Member Functions | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual bool | init (utility::ErrorState &errorState) |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
A resource is a small, stand-alone building block that can be authored in JSON. Resources are used to load an image from disk, define a three-dimensional shape, create a render window, etc. Derive from this class to create your own resource and implement the init() call to initialize the object after de-serialization. Override the onDestroy() method to perform additional clean-up steps.
Inherits Object.
Inherited by APIBaseValue, APIMessage, APISignature, AudioBufferResource, BaseFillPolicy, BaseMaterial, BaseShader, BaseVertexAttribute, Bitmap, BufferBinding, CalendarItem, Component, CubeDepthRenderTarget, CubeRenderTarget, DepthRenderTarget, Device, Entity, Font, GPUBuffer, ICalendar, Icon, IGroup, IMesh, FCurve< T, V >, Parameter, ParameterBlendGroup, ParameterGUI, PortalItem, PublicKey, PythonScript, RenderChain, RenderLayer, RenderTarget, Sampler, Scene, Sequence, SequenceEditor, SequenceEditorGUI, SequenceMarker, SequencePlayerClock, SequencePlayerOutput, SequenceTrack, SequenceTrackSegment, ShaderConstant, Snapshot, StructFillPolicy, StructFillPolicy::BaseEntry, Texture, Uniform, VideoFile, WebSocketInterface, WebSocketTicket, and Window.
Resource | ( | ) |