First round of override updates.
Some fixes: Added get/setCurrentRenderPass to scene manager (internally renamed, exposed) Removed destructor from light scene node. Removed getType calls from archive loaders (one file archives have this) Removed some internal exposures and virtual attributes for protected classes git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4543 dfc29bdd-3216-0410-991c-e03cc46cb475master
parent
80efea5574
commit
b93788fa3d
|
@ -1638,6 +1638,12 @@ namespace scene
|
|||
current callbacks manager and restore the default behavior. */
|
||||
virtual void setLightManager(ILightManager* lightManager) = 0;
|
||||
|
||||
//! Get current render pass.
|
||||
virtual E_SCENE_NODE_RENDER_PASS getCurrentRenderPass() const =0;
|
||||
|
||||
//! Set current render pass.
|
||||
virtual void setCurrentRenderPass(E_SCENE_NODE_RENDER_PASS nextPass) =0;
|
||||
|
||||
//! Get an instance of a geometry creator.
|
||||
/** The geometry creator provides some helper methods to create various types of
|
||||
basic geometry. This can be useful for custom scene nodes. */
|
||||
|
|
|
@ -528,10 +528,10 @@ namespace scene
|
|||
}
|
||||
|
||||
//! Get the Animation List
|
||||
virtual IAnimationList* getAnimList () { return &AnimList; }
|
||||
IAnimationList* getAnimList () { return &AnimList; }
|
||||
|
||||
//! Return the named Body List of this Animated Mesh
|
||||
virtual IBodyList *getBodyList() { return &BodyList; }
|
||||
IBodyList *getBodyList() { return &BodyList; }
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -127,7 +127,7 @@ namespace scene
|
|||
virtual void setMesh(IAnimatedMesh* mesh);
|
||||
|
||||
//! Returns the current mesh
|
||||
virtual IAnimatedMesh* getMesh(void) { return Mesh; }
|
||||
virtual IAnimatedMesh* getMesh(void) _IRR_OVERRIDE_ { return Mesh; }
|
||||
|
||||
//! Writes attributes of the scene node.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
|
||||
|
@ -136,7 +136,7 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_ANIMATED_MESH; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_ANIMATED_MESH; }
|
||||
|
||||
// returns the absolute transformation for a special MD3 Tag if the mesh is a md3 mesh,
|
||||
// or the absolutetransformation if it's a normal scenenode
|
||||
|
|
|
@ -74,7 +74,7 @@ public:
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_BILLBOARD; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_BILLBOARD; }
|
||||
|
||||
//! Creates a clone of this scene node and its children.
|
||||
virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0);
|
||||
|
|
|
@ -137,7 +137,7 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_CAMERA; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_CAMERA; }
|
||||
|
||||
//! Binds the camera scene node's rotation to its target position and vice vera, or unbinds them.
|
||||
virtual void bindTargetAndRotation(bool bound);
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace scene
|
|||
virtual u32 getMaterialCount() const;
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_CUBE; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_CUBE; }
|
||||
|
||||
//! Creates shadow volume scene node as child of this node
|
||||
//! and returns a pointer to it.
|
||||
|
@ -60,18 +60,18 @@ namespace scene
|
|||
virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0);
|
||||
|
||||
//! Sets a new mesh to display
|
||||
virtual void setMesh(IMesh* mesh) {}
|
||||
virtual void setMesh(IMesh* mesh) _IRR_OVERRIDE_ {}
|
||||
|
||||
//! Returns the current mesh
|
||||
virtual IMesh* getMesh(void) { return Mesh; }
|
||||
virtual IMesh* getMesh(void) _IRR_OVERRIDE_ { return Mesh; }
|
||||
|
||||
//! Sets if the scene node should not copy the materials of the mesh but use them in a read only style.
|
||||
/* In this way it is possible to change the materials a mesh causing all mesh scene nodes
|
||||
referencing this mesh to change too. */
|
||||
virtual void setReadOnlyMaterials(bool readonly) {}
|
||||
virtual void setReadOnlyMaterials(bool readonly) _IRR_OVERRIDE_ {}
|
||||
|
||||
//! Returns if the scene node should not copy the materials of the mesh but use them in a read only style
|
||||
virtual bool isReadOnlyMaterials() const { return false; }
|
||||
virtual bool isReadOnlyMaterials() const _IRR_OVERRIDE_ { return false; }
|
||||
|
||||
//! Removes a child from this scene node.
|
||||
//! Implemented here, to be able to remove the shadow properly, if there is one,
|
||||
|
|
|
@ -227,7 +227,7 @@ namespace video
|
|||
//! Returns the maximum texture size supported.
|
||||
virtual core::dimension2du getMaxTextureSize() const;
|
||||
|
||||
virtual bool checkDriverReset() {return DriverWasReset;}
|
||||
virtual bool checkDriverReset() _IRR_OVERRIDE_ {return DriverWasReset;}
|
||||
private:
|
||||
|
||||
// enumeration for rendering modes such as 2d and 3d for minizing the switching of renderStates.
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
|
||||
virtual bool OnRender(IMaterialRendererServices* service, E_VERTEX_TYPE vtxtype);
|
||||
|
||||
virtual void OnSetMaterial(const SMaterial& material) { }
|
||||
virtual void OnSetMaterial(const SMaterial& material) _IRR_OVERRIDE_ { }
|
||||
virtual void OnSetMaterial(const video::SMaterial& material,
|
||||
const video::SMaterial& lastMaterial,
|
||||
bool resetAllRenderstates, video::IMaterialRendererServices* services);
|
||||
|
|
|
@ -304,13 +304,13 @@ namespace video
|
|||
virtual void enableClipPlane(u32 index, bool enable);
|
||||
|
||||
//! Returns the graphics card vendor name.
|
||||
virtual core::stringc getVendorInfo() {return VendorName;}
|
||||
virtual core::stringc getVendorInfo() _IRR_OVERRIDE_ {return VendorName;}
|
||||
|
||||
//! Enable the 2d override material
|
||||
virtual void enableMaterial2D(bool enable=true);
|
||||
|
||||
//! Check if the driver was recently reset.
|
||||
virtual bool checkDriverReset() {return DriverWasReset;}
|
||||
virtual bool checkDriverReset() _IRR_OVERRIDE_ {return DriverWasReset;}
|
||||
|
||||
// removes the depth struct from the DepthSurface array
|
||||
void removeDepthSurface(SDepthSurface* depth);
|
||||
|
|
|
@ -43,7 +43,7 @@ public:
|
|||
//! Returns the render capability of the material.
|
||||
virtual s32 getRenderCapability() const;
|
||||
|
||||
virtual void OnSetMaterial(const SMaterial& material) { }
|
||||
virtual void OnSetMaterial(const SMaterial& material) _IRR_OVERRIDE_ { }
|
||||
virtual void OnSetMaterial(const video::SMaterial& material,
|
||||
const video::SMaterial& lastMaterial,
|
||||
bool resetAllRenderstates, video::IMaterialRendererServices* services);
|
||||
|
|
|
@ -32,13 +32,13 @@ namespace video
|
|||
virtual const core::dimension2d<u32>& getSize() const;
|
||||
|
||||
//! locks the zbuffer
|
||||
virtual void* lock() { return (void*) Buffer; }
|
||||
virtual void* lock() _IRR_OVERRIDE_ { return (void*) Buffer; }
|
||||
|
||||
//! unlocks the zbuffer
|
||||
virtual void unlock() {}
|
||||
virtual void unlock() _IRR_OVERRIDE_ {}
|
||||
|
||||
//! returns pitch of depthbuffer (in bytes)
|
||||
virtual u32 getPitch() const { return Pitch; }
|
||||
virtual u32 getPitch() const _IRR_OVERRIDE_ { return Pitch; }
|
||||
|
||||
|
||||
private:
|
||||
|
@ -70,13 +70,13 @@ namespace video
|
|||
virtual const core::dimension2d<u32>& getSize() const;
|
||||
|
||||
//! locks the zbuffer
|
||||
virtual void* lock() { return (void*) Buffer; }
|
||||
virtual void* lock() _IRR_OVERRIDE_ { return (void*) Buffer; }
|
||||
|
||||
//! unlocks the zbuffer
|
||||
virtual void unlock() {}
|
||||
virtual void unlock() _IRR_OVERRIDE_ {}
|
||||
|
||||
//! returns pitch of depthbuffer (in bytes)
|
||||
virtual u32 getPitch() const { return Pitch; }
|
||||
virtual u32 getPitch() const _IRR_OVERRIDE_ { return Pitch; }
|
||||
|
||||
|
||||
private:
|
||||
|
|
|
@ -31,10 +31,10 @@ namespace scene
|
|||
virtual core::matrix4 getRelativeTransformation() const;
|
||||
|
||||
//! does nothing.
|
||||
virtual void render() {}
|
||||
virtual void render() _IRR_OVERRIDE_ {}
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_DUMMY_TRANSFORMATION; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_DUMMY_TRANSFORMATION; }
|
||||
|
||||
//! Creates a clone of this scene node and its children.
|
||||
virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0);
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace scene
|
|||
virtual void render();
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_EMPTY; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_EMPTY; }
|
||||
|
||||
//! Creates a clone of this scene node and its children.
|
||||
virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0);
|
||||
|
|
|
@ -60,7 +60,7 @@ public:
|
|||
virtual s32 getCharacterFromPos(const wchar_t* text, s32 pixel_x) const;
|
||||
|
||||
//! Returns the type of this font
|
||||
virtual EGUI_FONT_TYPE getType() const { return EGFT_BITMAP; }
|
||||
virtual EGUI_FONT_TYPE getType() const _IRR_OVERRIDE_ { return EGFT_BITMAP; }
|
||||
|
||||
//! set an Pixel Offset on Drawing ( scale position on width )
|
||||
virtual void setKerningWidth (s32 kerning);
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
}
|
||||
|
||||
//! Unlock function.
|
||||
virtual void unlock() {}
|
||||
virtual void unlock() _IRR_OVERRIDE_ {}
|
||||
|
||||
//! Returns width and height of image data.
|
||||
virtual const core::dimension2d<u32>& getDimension() const;
|
||||
|
@ -79,7 +79,7 @@ public:
|
|||
virtual ECOLOR_FORMAT getColorFormat() const;
|
||||
|
||||
//! returns pitch of image
|
||||
virtual u32 getPitch() const { return Pitch; }
|
||||
virtual u32 getPitch() const _IRR_OVERRIDE_ { return Pitch; }
|
||||
|
||||
//! copies this surface into another, scaling it to fit.
|
||||
virtual void copyToScaling(void* target, u32 width, u32 height, ECOLOR_FORMAT format, u32 pitch=0);
|
||||
|
|
|
@ -310,16 +310,16 @@ namespace gui
|
|||
}
|
||||
|
||||
//! Calculates the index of the character in the text which is on a specific position.
|
||||
virtual s32 getCharacterFromPos(const wchar_t* text, s32 pixel_x) const { return pixel_x; };
|
||||
virtual s32 getCharacterFromPos(const wchar_t* text, s32 pixel_x) const _IRR_OVERRIDE_ { return pixel_x; };
|
||||
|
||||
//! No kerning
|
||||
virtual void setKerningWidth (s32 kerning) { }
|
||||
virtual void setKerningHeight (s32 kerning) { }
|
||||
virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const {return 0;}
|
||||
virtual s32 getKerningHeight() const { return 0;}
|
||||
virtual void setInvisibleCharacters( const wchar_t *s ) { }
|
||||
virtual void setKerningWidth (s32 kerning) _IRR_OVERRIDE_ { }
|
||||
virtual void setKerningHeight (s32 kerning) _IRR_OVERRIDE_ { }
|
||||
virtual s32 getKerningWidth(const wchar_t* thisLetter=0, const wchar_t* previousLetter=0) const _IRR_OVERRIDE_ {return 0;}
|
||||
virtual s32 getKerningHeight() const _IRR_OVERRIDE_ { return 0;}
|
||||
virtual void setInvisibleCharacters( const wchar_t *s ) _IRR_OVERRIDE_ { }
|
||||
// I guess this is an OS specific font
|
||||
virtual EGUI_FONT_TYPE getType() const { return EGFT_OS; }
|
||||
virtual EGUI_FONT_TYPE getType() const _IRR_OVERRIDE_ { return EGFT_OS; }
|
||||
private:
|
||||
CIrrDeviceConsole* Device;
|
||||
core::stringw tempText;
|
||||
|
|
|
@ -298,10 +298,10 @@ namespace irr
|
|||
|
||||
#ifdef _IRR_COMPILE_WITH_X11_
|
||||
//! Set platform specific behavior flags.
|
||||
virtual void setPlatformBehavior(gui::ECURSOR_PLATFORM_BEHAVIOR behavior) {PlatformBehavior = behavior; }
|
||||
virtual void setPlatformBehavior(gui::ECURSOR_PLATFORM_BEHAVIOR behavior) _IRR_OVERRIDE_ {PlatformBehavior = behavior; }
|
||||
|
||||
//! Return platform specific behavior.
|
||||
virtual gui::ECURSOR_PLATFORM_BEHAVIOR getPlatformBehavior() const { return PlatformBehavior; }
|
||||
virtual gui::ECURSOR_PLATFORM_BEHAVIOR getPlatformBehavior() const _IRR_OVERRIDE_ { return PlatformBehavior; }
|
||||
|
||||
void update();
|
||||
void clearCursors();
|
||||
|
|
|
@ -22,8 +22,6 @@ public:
|
|||
CLightSceneNode(ISceneNode* parent, ISceneManager* mgr, s32 id,
|
||||
const core::vector3df& position, video::SColorf color, f32 range);
|
||||
|
||||
virtual ~CLightSceneNode() { }
|
||||
|
||||
//! pre render event
|
||||
virtual void OnRegisterSceneNode();
|
||||
|
||||
|
@ -49,7 +47,7 @@ public:
|
|||
virtual const core::aabbox3d<f32>& getBoundingBox() const;
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_LIGHT; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_LIGHT; }
|
||||
|
||||
//! Writes attributes of the scene node.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
|
||||
|
|
|
@ -52,13 +52,13 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_MESH; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_MESH; }
|
||||
|
||||
//! Sets a new mesh
|
||||
virtual void setMesh(IMesh* mesh);
|
||||
|
||||
//! Returns the current mesh
|
||||
virtual IMesh* getMesh(void) { return Mesh; }
|
||||
virtual IMesh* getMesh(void) _IRR_OVERRIDE_ { return Mesh; }
|
||||
|
||||
//! Creates shadow volume scene node as child of this node
|
||||
//! and returns a pointer to it.
|
||||
|
|
|
@ -73,7 +73,7 @@ namespace io
|
|||
virtual const IFileList* getFileList() const;
|
||||
|
||||
//! get the class Type
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const { return EFAT_FOLDER; }
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const _IRR_OVERRIDE_ { return EFAT_FOLDER; }
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -74,9 +74,6 @@ namespace io
|
|||
//! \return Pointer to the created archive. Returns 0 if loading failed.
|
||||
virtual io::IFileArchive* createArchive(io::IReadFile* file, bool ignoreCase, bool ignorePaths) const;
|
||||
|
||||
//! Returns the type of archive created by this loader
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const { return EFAT_NPK; }
|
||||
|
||||
private:
|
||||
io::IFileSystem* FileSystem;
|
||||
};
|
||||
|
@ -108,7 +105,7 @@ namespace io
|
|||
virtual const IFileList* getFileList() const;
|
||||
|
||||
//! get the class Type
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const { return EFAT_NPK; }
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const _IRR_OVERRIDE_ { return EFAT_NPK; }
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -618,7 +618,7 @@ namespace video
|
|||
virtual void enableClipPlane(u32 index, bool enable);
|
||||
|
||||
//! Returns the graphics card vendor name.
|
||||
virtual core::stringc getVendorInfo() {return "Not available on this driver.";}
|
||||
virtual core::stringc getVendorInfo() _IRR_OVERRIDE_ {return "Not available on this driver.";}
|
||||
|
||||
//! Set the minimum number of vertices for which a hw buffer will be created
|
||||
/** \param count Number of vertices to set as minimum. */
|
||||
|
@ -660,7 +660,7 @@ namespace video
|
|||
virtual ITexture* createRenderTargetTexture(const core::dimension2d<u32>& size,
|
||||
const c8* name=0);
|
||||
|
||||
virtual bool checkDriverReset() {return false;}
|
||||
virtual bool checkDriverReset() _IRR_OVERRIDE_ {return false;}
|
||||
protected:
|
||||
|
||||
//! deletes all textures
|
||||
|
@ -728,14 +728,14 @@ namespace video
|
|||
{
|
||||
SDummyTexture(const io::path& name) : ITexture(name), size(0,0) {};
|
||||
|
||||
virtual void* lock(E_TEXTURE_LOCK_MODE mode=ETLM_READ_WRITE, u32 mipmapLevel=0) { return 0; };
|
||||
virtual void unlock(){}
|
||||
virtual const core::dimension2d<u32>& getOriginalSize() const { return size; }
|
||||
virtual const core::dimension2d<u32>& getSize() const { return size; }
|
||||
virtual E_DRIVER_TYPE getDriverType() const { return video::EDT_NULL; }
|
||||
virtual ECOLOR_FORMAT getColorFormat() const { return video::ECF_A1R5G5B5; };
|
||||
virtual u32 getPitch() const { return 0; }
|
||||
virtual void regenerateMipMapLevels(void* mipmapData=0) {};
|
||||
virtual void* lock(E_TEXTURE_LOCK_MODE mode=ETLM_READ_WRITE, u32 mipmapLevel=0) _IRR_OVERRIDE_ { return 0; };
|
||||
virtual void unlock()_IRR_OVERRIDE_ {}
|
||||
virtual const core::dimension2d<u32>& getOriginalSize() const _IRR_OVERRIDE_ { return size; }
|
||||
virtual const core::dimension2d<u32>& getSize() const _IRR_OVERRIDE_ { return size; }
|
||||
virtual E_DRIVER_TYPE getDriverType() const _IRR_OVERRIDE_ { return video::EDT_NULL; }
|
||||
virtual ECOLOR_FORMAT getColorFormat() const _IRR_OVERRIDE_ { return video::ECF_A1R5G5B5; };
|
||||
virtual u32 getPitch() const _IRR_OVERRIDE_ { return 0; }
|
||||
virtual void regenerateMipMapLevels(void* mipmapData=0) _IRR_OVERRIDE_ {};
|
||||
core::dimension2d<u32> size;
|
||||
};
|
||||
core::array<SSurface> Textures;
|
||||
|
|
|
@ -52,7 +52,7 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_OCTREE; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_OCTREE; }
|
||||
|
||||
//! Sets a new mesh to display
|
||||
virtual void setMesh(IMesh* mesh);
|
||||
|
|
|
@ -399,7 +399,7 @@ namespace video
|
|||
virtual void enableMaterial2D(bool enable=true);
|
||||
|
||||
//! Returns the graphics card vendor name.
|
||||
virtual core::stringc getVendorInfo() {return VendorName;}
|
||||
virtual core::stringc getVendorInfo() _IRR_OVERRIDE_ {return VendorName;}
|
||||
|
||||
//! Returns the maximum texture size supported.
|
||||
virtual core::dimension2du getMaxTextureSize() const;
|
||||
|
|
|
@ -35,7 +35,7 @@ public:
|
|||
//! Returns the render capability of the material.
|
||||
virtual s32 getRenderCapability() const;
|
||||
|
||||
virtual void OnSetMaterial(const SMaterial& material) { }
|
||||
virtual void OnSetMaterial(const SMaterial& material) _IRR_OVERRIDE_ { }
|
||||
virtual void OnSetMaterial(const video::SMaterial& material,
|
||||
const video::SMaterial& lastMaterial,
|
||||
bool resetAllRenderstates, video::IMaterialRendererServices* services);
|
||||
|
|
|
@ -71,9 +71,6 @@ namespace io
|
|||
//! \return Pointer to the created archive. Returns 0 if loading failed.
|
||||
virtual io::IFileArchive* createArchive(io::IReadFile* file, bool ignoreCase, bool ignorePaths) const;
|
||||
|
||||
//! Returns the type of archive created by this loader
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const { return EFAT_PAK; }
|
||||
|
||||
private:
|
||||
io::IFileSystem* FileSystem;
|
||||
};
|
||||
|
@ -105,7 +102,7 @@ namespace io
|
|||
virtual const IFileList* getFileList() const;
|
||||
|
||||
//! get the class Type
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const { return EFAT_PAK; }
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const _IRR_OVERRIDE_ { return EFAT_PAK; }
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -45,87 +45,87 @@ public:
|
|||
virtual void setAnimatedMeshSceneNode( IAnimatedMeshSceneNode* node );
|
||||
|
||||
//! Set whether to use vertex normal for direction, or direction specified
|
||||
virtual void setUseNormalDirection( bool useNormalDirection ) { UseNormalDirection = useNormalDirection; }
|
||||
virtual void setUseNormalDirection( bool useNormalDirection ) _IRR_OVERRIDE_ { UseNormalDirection = useNormalDirection; }
|
||||
|
||||
//! Set direction the emitter emits particles
|
||||
virtual void setDirection( const core::vector3df& newDirection ) { Direction = newDirection; }
|
||||
virtual void setDirection( const core::vector3df& newDirection ) _IRR_OVERRIDE_ { Direction = newDirection; }
|
||||
|
||||
//! Set the amount that the normal is divided by for getting a particles direction
|
||||
virtual void setNormalDirectionModifier( f32 normalDirectionModifier ) { NormalDirectionModifier = normalDirectionModifier; }
|
||||
virtual void setNormalDirectionModifier( f32 normalDirectionModifier ) _IRR_OVERRIDE_ { NormalDirectionModifier = normalDirectionModifier; }
|
||||
|
||||
//! Sets whether to emit min<->max particles for every vertex per second, or to pick
|
||||
//! min<->max vertices every second
|
||||
virtual void setEveryMeshVertex( bool everyMeshVertex ) { EveryMeshVertex = everyMeshVertex; }
|
||||
virtual void setEveryMeshVertex( bool everyMeshVertex ) _IRR_OVERRIDE_ { EveryMeshVertex = everyMeshVertex; }
|
||||
|
||||
//! Set minimum number of particles the emitter emits per second
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) { MinParticlesPerSecond = minPPS; }
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) _IRR_OVERRIDE_ { MinParticlesPerSecond = minPPS; }
|
||||
|
||||
//! Set maximum number of particles the emitter emits per second
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) { MaxParticlesPerSecond = maxPPS; }
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) _IRR_OVERRIDE_ { MaxParticlesPerSecond = maxPPS; }
|
||||
|
||||
//! Set minimum starting color for particles
|
||||
virtual void setMinStartColor( const video::SColor& color ) { MinStartColor = color; }
|
||||
virtual void setMinStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MinStartColor = color; }
|
||||
|
||||
//! Set maximum starting color for particles
|
||||
virtual void setMaxStartColor( const video::SColor& color ) { MaxStartColor = color; }
|
||||
virtual void setMaxStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MaxStartColor = color; }
|
||||
|
||||
//! Set the maximum starting size for particles
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) { MaxStartSize = size; }
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MaxStartSize = size; }
|
||||
|
||||
//! Set the minimum starting size for particles
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) { MinStartSize = size; }
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MinStartSize = size; }
|
||||
|
||||
//! Set the minimum particle life-time in milliseconds
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) { MinLifeTime = lifeTimeMin; }
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) _IRR_OVERRIDE_ { MinLifeTime = lifeTimeMin; }
|
||||
|
||||
//! Set the maximum particle life-time in milliseconds
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) { MaxLifeTime = lifeTimeMax; }
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) _IRR_OVERRIDE_ { MaxLifeTime = lifeTimeMax; }
|
||||
|
||||
//! Maximal random derivation from the direction
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) { MaxAngleDegrees = maxAngleDegrees; }
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) _IRR_OVERRIDE_ { MaxAngleDegrees = maxAngleDegrees; }
|
||||
|
||||
//! Get Mesh we're emitting particles from
|
||||
virtual const IAnimatedMeshSceneNode* getAnimatedMeshSceneNode() const { return Node; }
|
||||
virtual const IAnimatedMeshSceneNode* getAnimatedMeshSceneNode() const _IRR_OVERRIDE_ { return Node; }
|
||||
|
||||
//! Get whether to use vertex normal for direciton, or direction specified
|
||||
virtual bool isUsingNormalDirection() const { return UseNormalDirection; }
|
||||
virtual bool isUsingNormalDirection() const _IRR_OVERRIDE_ { return UseNormalDirection; }
|
||||
|
||||
//! Get direction the emitter emits particles
|
||||
virtual const core::vector3df& getDirection() const { return Direction; }
|
||||
virtual const core::vector3df& getDirection() const _IRR_OVERRIDE_ { return Direction; }
|
||||
|
||||
//! Get the amount that the normal is divided by for getting a particles direction
|
||||
virtual f32 getNormalDirectionModifier() const { return NormalDirectionModifier; }
|
||||
virtual f32 getNormalDirectionModifier() const _IRR_OVERRIDE_ { return NormalDirectionModifier; }
|
||||
|
||||
//! Gets whether to emit min<->max particles for every vertex per second, or to pick
|
||||
//! min<->max vertices every second
|
||||
virtual bool getEveryMeshVertex() const { return EveryMeshVertex; }
|
||||
virtual bool getEveryMeshVertex() const _IRR_OVERRIDE_ { return EveryMeshVertex; }
|
||||
|
||||
//! Get the minimum number of particles the emitter emits per second
|
||||
virtual u32 getMinParticlesPerSecond() const { return MinParticlesPerSecond; }
|
||||
virtual u32 getMinParticlesPerSecond() const _IRR_OVERRIDE_ { return MinParticlesPerSecond; }
|
||||
|
||||
//! Get the maximum number of particles the emitter emits per second
|
||||
virtual u32 getMaxParticlesPerSecond() const { return MaxParticlesPerSecond; }
|
||||
virtual u32 getMaxParticlesPerSecond() const _IRR_OVERRIDE_ { return MaxParticlesPerSecond; }
|
||||
|
||||
//! Get the minimum starting color for particles
|
||||
virtual const video::SColor& getMinStartColor() const { return MinStartColor; }
|
||||
virtual const video::SColor& getMinStartColor() const _IRR_OVERRIDE_ { return MinStartColor; }
|
||||
|
||||
//! Get the maximum starting color for particles
|
||||
virtual const video::SColor& getMaxStartColor() const { return MaxStartColor; }
|
||||
virtual const video::SColor& getMaxStartColor() const _IRR_OVERRIDE_ { return MaxStartColor; }
|
||||
|
||||
//! Get the maximum starting size for particles
|
||||
virtual const core::dimension2df& getMaxStartSize() const { return MaxStartSize; }
|
||||
virtual const core::dimension2df& getMaxStartSize() const _IRR_OVERRIDE_ { return MaxStartSize; }
|
||||
|
||||
//! Get the minimum starting size for particles
|
||||
virtual const core::dimension2df& getMinStartSize() const { return MinStartSize; }
|
||||
virtual const core::dimension2df& getMinStartSize() const _IRR_OVERRIDE_ { return MinStartSize; }
|
||||
|
||||
//! Get the minimum particle life-time in milliseconds
|
||||
virtual u32 getMinLifeTime() const { return MinLifeTime; }
|
||||
virtual u32 getMinLifeTime() const _IRR_OVERRIDE_ { return MinLifeTime; }
|
||||
|
||||
//! Get the maximum particle life-time in milliseconds
|
||||
virtual u32 getMaxLifeTime() const { return MaxLifeTime; }
|
||||
virtual u32 getMaxLifeTime() const _IRR_OVERRIDE_ { return MaxLifeTime; }
|
||||
|
||||
//! Maximal random derivation from the direction
|
||||
virtual s32 getMaxAngleDegrees() const { return MaxAngleDegrees; }
|
||||
virtual s32 getMaxAngleDegrees() const _IRR_OVERRIDE_ { return MaxAngleDegrees; }
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -26,40 +26,40 @@ public:
|
|||
virtual void affect(u32 now, SParticle* particlearray, u32 count);
|
||||
|
||||
//! Set the point that particles will attract to
|
||||
virtual void setPoint( const core::vector3df& point ) { Point = point; }
|
||||
virtual void setPoint( const core::vector3df& point ) _IRR_OVERRIDE_ { Point = point; }
|
||||
|
||||
//! Set the speed, in game units per second that the particles will attract to the specified point
|
||||
virtual void setSpeed( f32 speed ) { Speed = speed; }
|
||||
virtual void setSpeed( f32 speed ) _IRR_OVERRIDE_ { Speed = speed; }
|
||||
|
||||
//! Set whether or not the particles are attracting or detracting
|
||||
virtual void setAttract( bool attract ) { Attract = attract; }
|
||||
virtual void setAttract( bool attract ) _IRR_OVERRIDE_ { Attract = attract; }
|
||||
|
||||
//! Set whether or not this will affect particles in the X direction
|
||||
virtual void setAffectX( bool affect ) { AffectX = affect; }
|
||||
virtual void setAffectX( bool affect ) _IRR_OVERRIDE_ { AffectX = affect; }
|
||||
|
||||
//! Set whether or not this will affect particles in the Y direction
|
||||
virtual void setAffectY( bool affect ) { AffectY = affect; }
|
||||
virtual void setAffectY( bool affect ) _IRR_OVERRIDE_ { AffectY = affect; }
|
||||
|
||||
//! Set whether or not this will affect particles in the Z direction
|
||||
virtual void setAffectZ( bool affect ) { AffectZ = affect; }
|
||||
virtual void setAffectZ( bool affect ) _IRR_OVERRIDE_ { AffectZ = affect; }
|
||||
|
||||
//! Get the point that particles are attracted to
|
||||
virtual const core::vector3df& getPoint() const { return Point; }
|
||||
virtual const core::vector3df& getPoint() const _IRR_OVERRIDE_ { return Point; }
|
||||
|
||||
//! Get the speed that points attract to the specified point
|
||||
virtual f32 getSpeed() const { return Speed; }
|
||||
virtual f32 getSpeed() const _IRR_OVERRIDE_ { return Speed; }
|
||||
|
||||
//! Get whether or not the particles are attracting or detracting
|
||||
virtual bool getAttract() const { return Attract; }
|
||||
virtual bool getAttract() const _IRR_OVERRIDE_ { return Attract; }
|
||||
|
||||
//! Get whether or not the particles X position are affected
|
||||
virtual bool getAffectX() const { return AffectX; }
|
||||
virtual bool getAffectX() const _IRR_OVERRIDE_ { return AffectX; }
|
||||
|
||||
//! Get whether or not the particles Y position are affected
|
||||
virtual bool getAffectY() const { return AffectY; }
|
||||
virtual bool getAffectY() const _IRR_OVERRIDE_ { return AffectY; }
|
||||
|
||||
//! Get whether or not the particles Z position are affected
|
||||
virtual bool getAffectZ() const { return AffectZ; }
|
||||
virtual bool getAffectZ() const _IRR_OVERRIDE_ { return AffectZ; }
|
||||
|
||||
//! Writes attributes of the object.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
|
|
|
@ -39,70 +39,70 @@ public:
|
|||
virtual s32 emitt(u32 now, u32 timeSinceLastCall, SParticle*& outArray);
|
||||
|
||||
//! Set direction the emitter emits particles.
|
||||
virtual void setDirection( const core::vector3df& newDirection ) { Direction = newDirection; }
|
||||
virtual void setDirection( const core::vector3df& newDirection ) _IRR_OVERRIDE_ { Direction = newDirection; }
|
||||
|
||||
//! Set minimum number of particles emitted per second.
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) { MinParticlesPerSecond = minPPS; }
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) _IRR_OVERRIDE_ { MinParticlesPerSecond = minPPS; }
|
||||
|
||||
//! Set maximum number of particles emitted per second.
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) { MaxParticlesPerSecond = maxPPS; }
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) _IRR_OVERRIDE_ { MaxParticlesPerSecond = maxPPS; }
|
||||
|
||||
//! Set minimum start color.
|
||||
virtual void setMinStartColor( const video::SColor& color ) { MinStartColor = color; }
|
||||
virtual void setMinStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MinStartColor = color; }
|
||||
|
||||
//! Set maximum start color.
|
||||
virtual void setMaxStartColor( const video::SColor& color ) { MaxStartColor = color; }
|
||||
virtual void setMaxStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MaxStartColor = color; }
|
||||
|
||||
//! Set the maximum starting size for particles
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) { MaxStartSize = size; };
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MaxStartSize = size; };
|
||||
|
||||
//! Set the minimum starting size for particles
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) { MinStartSize = size; };
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MinStartSize = size; };
|
||||
|
||||
//! Set the minimum particle life-time in milliseconds
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) { MinLifeTime = lifeTimeMin; }
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) _IRR_OVERRIDE_ { MinLifeTime = lifeTimeMin; }
|
||||
|
||||
//! Set the maximum particle life-time in milliseconds
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) { MaxLifeTime = lifeTimeMax; }
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) _IRR_OVERRIDE_ { MaxLifeTime = lifeTimeMax; }
|
||||
|
||||
//! Maximal random derivation from the direction
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) { MaxAngleDegrees = maxAngleDegrees; }
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) _IRR_OVERRIDE_ { MaxAngleDegrees = maxAngleDegrees; }
|
||||
|
||||
//! Set box from which the particles are emitted.
|
||||
virtual void setBox( const core::aabbox3df& box ) { Box = box; }
|
||||
virtual void setBox( const core::aabbox3df& box ) _IRR_OVERRIDE_ { Box = box; }
|
||||
|
||||
//! Gets direction the emitter emits particles.
|
||||
virtual const core::vector3df& getDirection() const { return Direction; }
|
||||
virtual const core::vector3df& getDirection() const _IRR_OVERRIDE_ { return Direction; }
|
||||
|
||||
//! Gets minimum number of particles emitted per second.
|
||||
virtual u32 getMinParticlesPerSecond() const { return MinParticlesPerSecond; }
|
||||
virtual u32 getMinParticlesPerSecond() const _IRR_OVERRIDE_ { return MinParticlesPerSecond; }
|
||||
|
||||
//! Gets maximum number of particles emitted per second.
|
||||
virtual u32 getMaxParticlesPerSecond() const { return MaxParticlesPerSecond; }
|
||||
virtual u32 getMaxParticlesPerSecond() const _IRR_OVERRIDE_ { return MaxParticlesPerSecond; }
|
||||
|
||||
//! Gets minimum start color.
|
||||
virtual const video::SColor& getMinStartColor() const { return MinStartColor; }
|
||||
virtual const video::SColor& getMinStartColor() const _IRR_OVERRIDE_ { return MinStartColor; }
|
||||
|
||||
//! Gets maximum start color.
|
||||
virtual const video::SColor& getMaxStartColor() const { return MaxStartColor; }
|
||||
virtual const video::SColor& getMaxStartColor() const _IRR_OVERRIDE_ { return MaxStartColor; }
|
||||
|
||||
//! Gets the maximum starting size for particles
|
||||
virtual const core::dimension2df& getMaxStartSize() const { return MaxStartSize; }
|
||||
virtual const core::dimension2df& getMaxStartSize() const _IRR_OVERRIDE_ { return MaxStartSize; }
|
||||
|
||||
//! Gets the minimum starting size for particles
|
||||
virtual const core::dimension2df& getMinStartSize() const { return MinStartSize; }
|
||||
virtual const core::dimension2df& getMinStartSize() const _IRR_OVERRIDE_ { return MinStartSize; }
|
||||
|
||||
//! Get the minimum particle life-time in milliseconds
|
||||
virtual u32 getMinLifeTime() const { return MinLifeTime; }
|
||||
virtual u32 getMinLifeTime() const _IRR_OVERRIDE_ { return MinLifeTime; }
|
||||
|
||||
//! Get the maximum particle life-time in milliseconds
|
||||
virtual u32 getMaxLifeTime() const { return MaxLifeTime; }
|
||||
virtual u32 getMaxLifeTime() const _IRR_OVERRIDE_ { return MaxLifeTime; }
|
||||
|
||||
//! Maximal random derivation from the direction
|
||||
virtual s32 getMaxAngleDegrees() const { return MaxAngleDegrees; }
|
||||
virtual s32 getMaxAngleDegrees() const _IRR_OVERRIDE_ { return MaxAngleDegrees; }
|
||||
|
||||
//! Get box from which the particles are emitted.
|
||||
virtual const core::aabbox3df& getBox() const { return Box; }
|
||||
virtual const core::aabbox3df& getBox() const _IRR_OVERRIDE_ { return Box; }
|
||||
|
||||
//! Writes attributes of the object.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
|
|
|
@ -39,94 +39,94 @@ public:
|
|||
virtual s32 emitt(u32 now, u32 timeSinceLastCall, SParticle*& outArray);
|
||||
|
||||
//! Set the center of the radius for the cylinder, at one end of the cylinder
|
||||
virtual void setCenter( const core::vector3df& center ) { Center = center; }
|
||||
virtual void setCenter( const core::vector3df& center ) _IRR_OVERRIDE_ { Center = center; }
|
||||
|
||||
//! Set the normal of the cylinder
|
||||
virtual void setNormal( const core::vector3df& normal ) { Normal = normal; }
|
||||
virtual void setNormal( const core::vector3df& normal ) _IRR_OVERRIDE_ { Normal = normal; }
|
||||
|
||||
//! Set the radius of the cylinder
|
||||
virtual void setRadius( f32 radius ) { Radius = radius; }
|
||||
virtual void setRadius( f32 radius ) _IRR_OVERRIDE_ { Radius = radius; }
|
||||
|
||||
//! Set the length of the cylinder
|
||||
virtual void setLength( f32 length ) { Length = length; }
|
||||
virtual void setLength( f32 length ) _IRR_OVERRIDE_ { Length = length; }
|
||||
|
||||
//! Set whether or not to draw points inside the cylinder
|
||||
virtual void setOutlineOnly( bool outlineOnly ) { OutlineOnly = outlineOnly; }
|
||||
virtual void setOutlineOnly( bool outlineOnly ) _IRR_OVERRIDE_ { OutlineOnly = outlineOnly; }
|
||||
|
||||
//! Set direction the emitter emits particles
|
||||
virtual void setDirection( const core::vector3df& newDirection ) { Direction = newDirection; }
|
||||
virtual void setDirection( const core::vector3df& newDirection ) _IRR_OVERRIDE_ { Direction = newDirection; }
|
||||
|
||||
//! Set direction the emitter emits particles
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) { MinParticlesPerSecond = minPPS; }
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) _IRR_OVERRIDE_ { MinParticlesPerSecond = minPPS; }
|
||||
|
||||
//! Set direction the emitter emits particles
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) { MaxParticlesPerSecond = maxPPS; }
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) _IRR_OVERRIDE_ { MaxParticlesPerSecond = maxPPS; }
|
||||
|
||||
//! Set direction the emitter emits particles
|
||||
virtual void setMinStartColor( const video::SColor& color ) { MinStartColor = color; }
|
||||
virtual void setMinStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MinStartColor = color; }
|
||||
|
||||
//! Set direction the emitter emits particles
|
||||
virtual void setMaxStartColor( const video::SColor& color ) { MaxStartColor = color; }
|
||||
virtual void setMaxStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MaxStartColor = color; }
|
||||
|
||||
//! Set the maximum starting size for particles
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) { MaxStartSize = size; }
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MaxStartSize = size; }
|
||||
|
||||
//! Set the minimum starting size for particles
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) { MinStartSize = size; }
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MinStartSize = size; }
|
||||
|
||||
//! Set the minimum particle life-time in milliseconds
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) { MinLifeTime = lifeTimeMin; }
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) _IRR_OVERRIDE_ { MinLifeTime = lifeTimeMin; }
|
||||
|
||||
//! Set the maximum particle life-time in milliseconds
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) { MaxLifeTime = lifeTimeMax; }
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) _IRR_OVERRIDE_ { MaxLifeTime = lifeTimeMax; }
|
||||
|
||||
//! Maximal random derivation from the direction
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) { MaxAngleDegrees = maxAngleDegrees; }
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) _IRR_OVERRIDE_ { MaxAngleDegrees = maxAngleDegrees; }
|
||||
|
||||
//! Get the center of the cylinder
|
||||
virtual const core::vector3df& getCenter() const { return Center; }
|
||||
virtual const core::vector3df& getCenter() const _IRR_OVERRIDE_ { return Center; }
|
||||
|
||||
//! Get the normal of the cylinder
|
||||
virtual const core::vector3df& getNormal() const { return Normal; }
|
||||
virtual const core::vector3df& getNormal() const _IRR_OVERRIDE_ { return Normal; }
|
||||
|
||||
//! Get the radius of the cylinder
|
||||
virtual f32 getRadius() const { return Radius; }
|
||||
virtual f32 getRadius() const _IRR_OVERRIDE_ { return Radius; }
|
||||
|
||||
//! Get the center of the cylinder
|
||||
virtual f32 getLength() const { return Length; }
|
||||
virtual f32 getLength() const _IRR_OVERRIDE_ { return Length; }
|
||||
|
||||
//! Get whether or not to draw points inside the cylinder
|
||||
virtual bool getOutlineOnly() const { return OutlineOnly; }
|
||||
virtual bool getOutlineOnly() const _IRR_OVERRIDE_ { return OutlineOnly; }
|
||||
|
||||
//! Gets direction the emitter emits particles
|
||||
virtual const core::vector3df& getDirection() const { return Direction; }
|
||||
virtual const core::vector3df& getDirection() const _IRR_OVERRIDE_ { return Direction; }
|
||||
|
||||
//! Gets direction the emitter emits particles
|
||||
virtual u32 getMinParticlesPerSecond() const { return MinParticlesPerSecond; }
|
||||
virtual u32 getMinParticlesPerSecond() const _IRR_OVERRIDE_ { return MinParticlesPerSecond; }
|
||||
|
||||
//! Gets direction the emitter emits particles
|
||||
virtual u32 getMaxParticlesPerSecond() const { return MaxParticlesPerSecond; }
|
||||
virtual u32 getMaxParticlesPerSecond() const _IRR_OVERRIDE_ { return MaxParticlesPerSecond; }
|
||||
|
||||
//! Gets direction the emitter emits particles
|
||||
virtual const video::SColor& getMinStartColor() const { return MinStartColor; }
|
||||
virtual const video::SColor& getMinStartColor() const _IRR_OVERRIDE_ { return MinStartColor; }
|
||||
|
||||
//! Gets direction the emitter emits particles
|
||||
virtual const video::SColor& getMaxStartColor() const { return MaxStartColor; }
|
||||
virtual const video::SColor& getMaxStartColor() const _IRR_OVERRIDE_ { return MaxStartColor; }
|
||||
|
||||
//! Gets the maximum starting size for particles
|
||||
virtual const core::dimension2df& getMaxStartSize() const { return MaxStartSize; }
|
||||
virtual const core::dimension2df& getMaxStartSize() const _IRR_OVERRIDE_ { return MaxStartSize; }
|
||||
|
||||
//! Gets the minimum starting size for particles
|
||||
virtual const core::dimension2df& getMinStartSize() const { return MinStartSize; }
|
||||
virtual const core::dimension2df& getMinStartSize() const _IRR_OVERRIDE_ { return MinStartSize; }
|
||||
|
||||
//! Get the minimum particle life-time in milliseconds
|
||||
virtual u32 getMinLifeTime() const { return MinLifeTime; }
|
||||
virtual u32 getMinLifeTime() const _IRR_OVERRIDE_ { return MinLifeTime; }
|
||||
|
||||
//! Get the maximum particle life-time in milliseconds
|
||||
virtual u32 getMaxLifeTime() const { return MaxLifeTime; }
|
||||
virtual u32 getMaxLifeTime() const _IRR_OVERRIDE_ { return MaxLifeTime; }
|
||||
|
||||
//! Maximal random derivation from the direction
|
||||
virtual s32 getMaxAngleDegrees() const { return MaxAngleDegrees; }
|
||||
virtual s32 getMaxAngleDegrees() const _IRR_OVERRIDE_ { return MaxAngleDegrees; }
|
||||
|
||||
//! Writes attributes of the object.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
|
|
|
@ -25,17 +25,17 @@ public:
|
|||
|
||||
//! Sets the targetColor, i.e. the color the particles will interpolate
|
||||
//! to over time.
|
||||
virtual void setTargetColor( const video::SColor& targetColor ) { TargetColor = targetColor; }
|
||||
virtual void setTargetColor( const video::SColor& targetColor ) _IRR_OVERRIDE_ { TargetColor = targetColor; }
|
||||
|
||||
//! Sets the amount of time it takes for each particle to fade out.
|
||||
virtual void setFadeOutTime( u32 fadeOutTime ) { FadeOutTime = fadeOutTime ? static_cast<f32>(fadeOutTime) : 1.0f; }
|
||||
virtual void setFadeOutTime( u32 fadeOutTime ) _IRR_OVERRIDE_ { FadeOutTime = fadeOutTime ? static_cast<f32>(fadeOutTime) : 1.0f; }
|
||||
|
||||
//! Sets the targetColor, i.e. the color the particles will interpolate
|
||||
//! to over time.
|
||||
virtual const video::SColor& getTargetColor() const { return TargetColor; }
|
||||
virtual const video::SColor& getTargetColor() const _IRR_OVERRIDE_ { return TargetColor; }
|
||||
|
||||
//! Sets the amount of time it takes for each particle to fade out.
|
||||
virtual u32 getFadeOutTime() const { return static_cast<u32>(FadeOutTime); }
|
||||
virtual u32 getFadeOutTime() const _IRR_OVERRIDE_ { return static_cast<u32>(FadeOutTime); }
|
||||
|
||||
//! Writes attributes of the object.
|
||||
//! Implement this to expose the attributes of your scene node animator for
|
||||
|
|
|
@ -27,17 +27,17 @@ public:
|
|||
|
||||
//! Set the time in milliseconds when the gravity force is totally
|
||||
//! lost and the particle does not move any more.
|
||||
virtual void setTimeForceLost( f32 timeForceLost ) { TimeForceLost = timeForceLost; }
|
||||
virtual void setTimeForceLost( f32 timeForceLost ) _IRR_OVERRIDE_ { TimeForceLost = timeForceLost; }
|
||||
|
||||
//! Set the direction and force of gravity.
|
||||
virtual void setGravity( const core::vector3df& gravity ) { Gravity = gravity; }
|
||||
virtual void setGravity( const core::vector3df& gravity ) _IRR_OVERRIDE_ { Gravity = gravity; }
|
||||
|
||||
//! Set the time in milliseconds when the gravity force is totally
|
||||
//! lost and the particle does not move any more.
|
||||
virtual f32 getTimeForceLost() const { return TimeForceLost; }
|
||||
virtual f32 getTimeForceLost() const _IRR_OVERRIDE_ { return TimeForceLost; }
|
||||
|
||||
//! Set the direction and force of gravity.
|
||||
virtual const core::vector3df& getGravity() const { return Gravity; }
|
||||
virtual const core::vector3df& getGravity() const _IRR_OVERRIDE_ { return Gravity; }
|
||||
|
||||
//! Writes attributes of the object.
|
||||
//! Implement this to expose the attributes of your scene node animator for
|
||||
|
|
|
@ -46,87 +46,87 @@ public:
|
|||
virtual void setMesh( IMesh* mesh );
|
||||
|
||||
//! Set whether to use vertex normal for direction, or direction specified
|
||||
virtual void setUseNormalDirection( bool useNormalDirection ) { UseNormalDirection = useNormalDirection; }
|
||||
virtual void setUseNormalDirection( bool useNormalDirection ) _IRR_OVERRIDE_ { UseNormalDirection = useNormalDirection; }
|
||||
|
||||
//! Set direction the emitter emits particles
|
||||
virtual void setDirection( const core::vector3df& newDirection ) { Direction = newDirection; }
|
||||
virtual void setDirection( const core::vector3df& newDirection ) _IRR_OVERRIDE_ { Direction = newDirection; }
|
||||
|
||||
//! Set the amount that the normal is divided by for getting a particles direction
|
||||
virtual void setNormalDirectionModifier( f32 normalDirectionModifier ) { NormalDirectionModifier = normalDirectionModifier; }
|
||||
virtual void setNormalDirectionModifier( f32 normalDirectionModifier ) _IRR_OVERRIDE_ { NormalDirectionModifier = normalDirectionModifier; }
|
||||
|
||||
//! Sets whether to emit min<->max particles for every vertex per second, or to pick
|
||||
//! min<->max vertices every second
|
||||
virtual void setEveryMeshVertex( bool everyMeshVertex ) { EveryMeshVertex = everyMeshVertex; }
|
||||
virtual void setEveryMeshVertex( bool everyMeshVertex ) _IRR_OVERRIDE_ { EveryMeshVertex = everyMeshVertex; }
|
||||
|
||||
//! Set minimum number of particles the emitter emits per second
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) { MinParticlesPerSecond = minPPS; }
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) _IRR_OVERRIDE_ { MinParticlesPerSecond = minPPS; }
|
||||
|
||||
//! Set maximum number of particles the emitter emits per second
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) { MaxParticlesPerSecond = maxPPS; }
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) _IRR_OVERRIDE_ { MaxParticlesPerSecond = maxPPS; }
|
||||
|
||||
//! Set minimum starting color for particles
|
||||
virtual void setMinStartColor( const video::SColor& color ) { MinStartColor = color; }
|
||||
virtual void setMinStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MinStartColor = color; }
|
||||
|
||||
//! Set maximum starting color for particles
|
||||
virtual void setMaxStartColor( const video::SColor& color ) { MaxStartColor = color; }
|
||||
virtual void setMaxStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MaxStartColor = color; }
|
||||
|
||||
//! Set the maximum starting size for particles
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) { MaxStartSize = size; }
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MaxStartSize = size; }
|
||||
|
||||
//! Set the minimum starting size for particles
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) { MinStartSize = size; }
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MinStartSize = size; }
|
||||
|
||||
//! Set the minimum particle life-time in milliseconds
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) { MinLifeTime = lifeTimeMin; }
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) _IRR_OVERRIDE_ { MinLifeTime = lifeTimeMin; }
|
||||
|
||||
//! Set the maximum particle life-time in milliseconds
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) { MaxLifeTime = lifeTimeMax; }
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) _IRR_OVERRIDE_ { MaxLifeTime = lifeTimeMax; }
|
||||
|
||||
//! Set maximal random derivation from the direction
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) { MaxAngleDegrees = maxAngleDegrees; }
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) _IRR_OVERRIDE_ { MaxAngleDegrees = maxAngleDegrees; }
|
||||
|
||||
//! Get Mesh we're emitting particles from
|
||||
virtual const IMesh* getMesh() const { return Mesh; }
|
||||
virtual const IMesh* getMesh() const _IRR_OVERRIDE_ { return Mesh; }
|
||||
|
||||
//! Get whether to use vertex normal for direciton, or direction specified
|
||||
virtual bool isUsingNormalDirection() const { return UseNormalDirection; }
|
||||
virtual bool isUsingNormalDirection() const _IRR_OVERRIDE_ { return UseNormalDirection; }
|
||||
|
||||
//! Get direction the emitter emits particles
|
||||
virtual const core::vector3df& getDirection() const { return Direction; }
|
||||
virtual const core::vector3df& getDirection() const _IRR_OVERRIDE_ { return Direction; }
|
||||
|
||||
//! Get the amount that the normal is divided by for getting a particles direction
|
||||
virtual f32 getNormalDirectionModifier() const { return NormalDirectionModifier; }
|
||||
virtual f32 getNormalDirectionModifier() const _IRR_OVERRIDE_ { return NormalDirectionModifier; }
|
||||
|
||||
//! Gets whether to emit min<->max particles for every vertex per second, or to pick
|
||||
//! min<->max vertices every second
|
||||
virtual bool getEveryMeshVertex() const { return EveryMeshVertex; }
|
||||
virtual bool getEveryMeshVertex() const _IRR_OVERRIDE_ { return EveryMeshVertex; }
|
||||
|
||||
//! Get the minimum number of particles the emitter emits per second
|
||||
virtual u32 getMinParticlesPerSecond() const { return MinParticlesPerSecond; }
|
||||
virtual u32 getMinParticlesPerSecond() const _IRR_OVERRIDE_ { return MinParticlesPerSecond; }
|
||||
|
||||
//! Get the maximum number of particles the emitter emits per second
|
||||
virtual u32 getMaxParticlesPerSecond() const { return MaxParticlesPerSecond; }
|
||||
virtual u32 getMaxParticlesPerSecond() const _IRR_OVERRIDE_ { return MaxParticlesPerSecond; }
|
||||
|
||||
//! Get the minimum starting color for particles
|
||||
virtual const video::SColor& getMinStartColor() const { return MinStartColor; }
|
||||
virtual const video::SColor& getMinStartColor() const _IRR_OVERRIDE_ { return MinStartColor; }
|
||||
|
||||
//! Get the maximum starting color for particles
|
||||
virtual const video::SColor& getMaxStartColor() const { return MaxStartColor; }
|
||||
virtual const video::SColor& getMaxStartColor() const _IRR_OVERRIDE_ { return MaxStartColor; }
|
||||
|
||||
//! Gets the maximum starting size for particles
|
||||
virtual const core::dimension2df& getMaxStartSize() const { return MaxStartSize; }
|
||||
virtual const core::dimension2df& getMaxStartSize() const _IRR_OVERRIDE_ { return MaxStartSize; }
|
||||
|
||||
//! Gets the minimum starting size for particles
|
||||
virtual const core::dimension2df& getMinStartSize() const { return MinStartSize; }
|
||||
virtual const core::dimension2df& getMinStartSize() const _IRR_OVERRIDE_ { return MinStartSize; }
|
||||
|
||||
//! Get the minimum particle life-time in milliseconds
|
||||
virtual u32 getMinLifeTime() const { return MinLifeTime; }
|
||||
virtual u32 getMinLifeTime() const _IRR_OVERRIDE_ { return MinLifeTime; }
|
||||
|
||||
//! Get the maximum particle life-time in milliseconds
|
||||
virtual u32 getMaxLifeTime() const { return MaxLifeTime; }
|
||||
virtual u32 getMaxLifeTime() const _IRR_OVERRIDE_ { return MaxLifeTime; }
|
||||
|
||||
//! Get maximal random derivation from the direction
|
||||
virtual s32 getMaxAngleDegrees() const { return MaxAngleDegrees; }
|
||||
virtual s32 getMaxAngleDegrees() const _IRR_OVERRIDE_ { return MaxAngleDegrees; }
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -36,64 +36,64 @@ public:
|
|||
virtual s32 emitt(u32 now, u32 timeSinceLastCall, SParticle*& outArray);
|
||||
|
||||
//! Set direction the emitter emits particles.
|
||||
virtual void setDirection( const core::vector3df& newDirection ) { Direction = newDirection; }
|
||||
virtual void setDirection( const core::vector3df& newDirection ) _IRR_OVERRIDE_ { Direction = newDirection; }
|
||||
|
||||
//! Set minimum number of particles emitted per second.
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) { MinParticlesPerSecond = minPPS; }
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) _IRR_OVERRIDE_ { MinParticlesPerSecond = minPPS; }
|
||||
|
||||
//! Set maximum number of particles emitted per second.
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) { MaxParticlesPerSecond = maxPPS; }
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) _IRR_OVERRIDE_ { MaxParticlesPerSecond = maxPPS; }
|
||||
|
||||
//! Set minimum start color.
|
||||
virtual void setMinStartColor( const video::SColor& color ) { MinStartColor = color; }
|
||||
virtual void setMinStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MinStartColor = color; }
|
||||
|
||||
//! Set maximum start color.
|
||||
virtual void setMaxStartColor( const video::SColor& color ) { MaxStartColor = color; }
|
||||
virtual void setMaxStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MaxStartColor = color; }
|
||||
|
||||
//! Set the maximum starting size for particles
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) { MaxStartSize = size; }
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MaxStartSize = size; }
|
||||
|
||||
//! Set the minimum starting size for particles
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) { MinStartSize = size; }
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MinStartSize = size; }
|
||||
|
||||
//! Set the minimum particle life-time in milliseconds
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) { MinLifeTime = lifeTimeMin; }
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) _IRR_OVERRIDE_ { MinLifeTime = lifeTimeMin; }
|
||||
|
||||
//! Set the maximum particle life-time in milliseconds
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) { MaxLifeTime = lifeTimeMax; }
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) _IRR_OVERRIDE_ { MaxLifeTime = lifeTimeMax; }
|
||||
|
||||
//! Set maximal random derivation from the direction
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) { MaxAngleDegrees = maxAngleDegrees; }
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) _IRR_OVERRIDE_ { MaxAngleDegrees = maxAngleDegrees; }
|
||||
|
||||
//! Gets direction the emitter emits particles.
|
||||
virtual const core::vector3df& getDirection() const { return Direction; }
|
||||
virtual const core::vector3df& getDirection() const _IRR_OVERRIDE_ { return Direction; }
|
||||
|
||||
//! Gets minimum number of particles emitted per second.
|
||||
virtual u32 getMinParticlesPerSecond() const { return MinParticlesPerSecond; }
|
||||
virtual u32 getMinParticlesPerSecond() const _IRR_OVERRIDE_ { return MinParticlesPerSecond; }
|
||||
|
||||
//! Gets maximum number of particles emitted per second.
|
||||
virtual u32 getMaxParticlesPerSecond() const { return MaxParticlesPerSecond; }
|
||||
virtual u32 getMaxParticlesPerSecond() const _IRR_OVERRIDE_ { return MaxParticlesPerSecond; }
|
||||
|
||||
//! Gets minimum start color.
|
||||
virtual const video::SColor& getMinStartColor() const { return MinStartColor; }
|
||||
virtual const video::SColor& getMinStartColor() const _IRR_OVERRIDE_ { return MinStartColor; }
|
||||
|
||||
//! Gets maximum start color.
|
||||
virtual const video::SColor& getMaxStartColor() const { return MaxStartColor; }
|
||||
virtual const video::SColor& getMaxStartColor() const _IRR_OVERRIDE_ { return MaxStartColor; }
|
||||
|
||||
//! Gets the maximum starting size for particles
|
||||
virtual const core::dimension2df& getMaxStartSize() const { return MaxStartSize; }
|
||||
virtual const core::dimension2df& getMaxStartSize() const _IRR_OVERRIDE_ { return MaxStartSize; }
|
||||
|
||||
//! Gets the minimum starting size for particles
|
||||
virtual const core::dimension2df& getMinStartSize() const { return MinStartSize; }
|
||||
virtual const core::dimension2df& getMinStartSize() const _IRR_OVERRIDE_ { return MinStartSize; }
|
||||
|
||||
//! Get the minimum particle life-time in milliseconds
|
||||
virtual u32 getMinLifeTime() const { return MinLifeTime; }
|
||||
virtual u32 getMinLifeTime() const _IRR_OVERRIDE_ { return MinLifeTime; }
|
||||
|
||||
//! Get the maximum particle life-time in milliseconds
|
||||
virtual u32 getMaxLifeTime() const { return MaxLifeTime; }
|
||||
virtual u32 getMaxLifeTime() const _IRR_OVERRIDE_ { return MaxLifeTime; }
|
||||
|
||||
//! Get maximal random derivation from the direction
|
||||
virtual s32 getMaxAngleDegrees() const { return MaxAngleDegrees; }
|
||||
virtual s32 getMaxAngleDegrees() const _IRR_OVERRIDE_ { return MaxAngleDegrees; }
|
||||
|
||||
//! Writes attributes of the object.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
|
|
|
@ -38,82 +38,82 @@ public:
|
|||
virtual s32 emitt(u32 now, u32 timeSinceLastCall, SParticle*& outArray);
|
||||
|
||||
//! Set direction the emitter emits particles
|
||||
virtual void setDirection( const core::vector3df& newDirection ) { Direction = newDirection; }
|
||||
virtual void setDirection( const core::vector3df& newDirection ) _IRR_OVERRIDE_ { Direction = newDirection; }
|
||||
|
||||
//! Set minimum number of particles the emitter emits per second
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) { MinParticlesPerSecond = minPPS; }
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) _IRR_OVERRIDE_ { MinParticlesPerSecond = minPPS; }
|
||||
|
||||
//! Set maximum number of particles the emitter emits per second
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) { MaxParticlesPerSecond = maxPPS; }
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) _IRR_OVERRIDE_ { MaxParticlesPerSecond = maxPPS; }
|
||||
|
||||
//! Set minimum starting color for particles
|
||||
virtual void setMinStartColor( const video::SColor& color ) { MinStartColor = color; }
|
||||
virtual void setMinStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MinStartColor = color; }
|
||||
|
||||
//! Set maximum starting color for particles
|
||||
virtual void setMaxStartColor( const video::SColor& color ) { MaxStartColor = color; }
|
||||
virtual void setMaxStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MaxStartColor = color; }
|
||||
|
||||
//! Set the maximum starting size for particles
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) { MaxStartSize = size; }
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MaxStartSize = size; }
|
||||
|
||||
//! Set the minimum starting size for particles
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) { MinStartSize = size; }
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MinStartSize = size; }
|
||||
|
||||
//! Set the minimum particle life-time in milliseconds
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) { MinLifeTime = lifeTimeMin; }
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) _IRR_OVERRIDE_ { MinLifeTime = lifeTimeMin; }
|
||||
|
||||
//! Set the maximum particle life-time in milliseconds
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) { MaxLifeTime = lifeTimeMax; }
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) _IRR_OVERRIDE_ { MaxLifeTime = lifeTimeMax; }
|
||||
|
||||
//! Set maximal random derivation from the direction
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) { MaxAngleDegrees = maxAngleDegrees; }
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) _IRR_OVERRIDE_ { MaxAngleDegrees = maxAngleDegrees; }
|
||||
|
||||
//! Set the center of the ring
|
||||
virtual void setCenter( const core::vector3df& center ) { Center = center; }
|
||||
virtual void setCenter( const core::vector3df& center ) _IRR_OVERRIDE_ { Center = center; }
|
||||
|
||||
//! Set the radius of the ring
|
||||
virtual void setRadius( f32 radius ) { Radius = radius; }
|
||||
virtual void setRadius( f32 radius ) _IRR_OVERRIDE_ { Radius = radius; }
|
||||
|
||||
//! Set the thickness of the ring
|
||||
virtual void setRingThickness( f32 ringThickness ) { RingThickness = ringThickness; }
|
||||
virtual void setRingThickness( f32 ringThickness ) _IRR_OVERRIDE_ { RingThickness = ringThickness; }
|
||||
|
||||
//! Gets direction the emitter emits particles
|
||||
virtual const core::vector3df& getDirection() const { return Direction; }
|
||||
virtual const core::vector3df& getDirection() const _IRR_OVERRIDE_ { return Direction; }
|
||||
|
||||
//! Gets the minimum number of particles the emitter emits per second
|
||||
virtual u32 getMinParticlesPerSecond() const { return MinParticlesPerSecond; }
|
||||
virtual u32 getMinParticlesPerSecond() const _IRR_OVERRIDE_ { return MinParticlesPerSecond; }
|
||||
|
||||
//! Gets the maximum number of particles the emitter emits per second
|
||||
virtual u32 getMaxParticlesPerSecond() const { return MaxParticlesPerSecond; }
|
||||
virtual u32 getMaxParticlesPerSecond() const _IRR_OVERRIDE_ { return MaxParticlesPerSecond; }
|
||||
|
||||
//! Gets the minimum starting color for particles
|
||||
virtual const video::SColor& getMinStartColor() const { return MinStartColor; }
|
||||
virtual const video::SColor& getMinStartColor() const _IRR_OVERRIDE_ { return MinStartColor; }
|
||||
|
||||
//! Gets the maximum starting color for particles
|
||||
virtual const video::SColor& getMaxStartColor() const { return MaxStartColor; }
|
||||
virtual const video::SColor& getMaxStartColor() const _IRR_OVERRIDE_ { return MaxStartColor; }
|
||||
|
||||
//! Gets the maximum starting size for particles
|
||||
virtual const core::dimension2df& getMaxStartSize() const { return MaxStartSize; }
|
||||
virtual const core::dimension2df& getMaxStartSize() const _IRR_OVERRIDE_ { return MaxStartSize; }
|
||||
|
||||
//! Gets the minimum starting size for particles
|
||||
virtual const core::dimension2df& getMinStartSize() const { return MinStartSize; }
|
||||
virtual const core::dimension2df& getMinStartSize() const _IRR_OVERRIDE_ { return MinStartSize; }
|
||||
|
||||
//! Get the minimum particle life-time in milliseconds
|
||||
virtual u32 getMinLifeTime() const { return MinLifeTime; }
|
||||
virtual u32 getMinLifeTime() const _IRR_OVERRIDE_ { return MinLifeTime; }
|
||||
|
||||
//! Get the maximum particle life-time in milliseconds
|
||||
virtual u32 getMaxLifeTime() const { return MaxLifeTime; }
|
||||
virtual u32 getMaxLifeTime() const _IRR_OVERRIDE_ { return MaxLifeTime; }
|
||||
|
||||
//! Get maximal random derivation from the direction
|
||||
virtual s32 getMaxAngleDegrees() const { return MaxAngleDegrees; }
|
||||
virtual s32 getMaxAngleDegrees() const _IRR_OVERRIDE_ { return MaxAngleDegrees; }
|
||||
|
||||
//! Get the center of the ring
|
||||
virtual const core::vector3df& getCenter() const { return Center; }
|
||||
virtual const core::vector3df& getCenter() const _IRR_OVERRIDE_ { return Center; }
|
||||
|
||||
//! Get the radius of the ring
|
||||
virtual f32 getRadius() const { return Radius; }
|
||||
virtual f32 getRadius() const _IRR_OVERRIDE_ { return Radius; }
|
||||
|
||||
//! Get the thickness of the ring
|
||||
virtual f32 getRingThickness() const { return RingThickness; }
|
||||
virtual f32 getRingThickness() const _IRR_OVERRIDE_ { return RingThickness; }
|
||||
|
||||
//! Writes attributes of the object.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
|
|
|
@ -24,16 +24,16 @@ public:
|
|||
virtual void affect(u32 now, SParticle* particlearray, u32 count);
|
||||
|
||||
//! Set the point that particles will attract to
|
||||
virtual void setPivotPoint( const core::vector3df& point ) { PivotPoint = point; }
|
||||
virtual void setPivotPoint( const core::vector3df& point ) _IRR_OVERRIDE_ { PivotPoint = point; }
|
||||
|
||||
//! Set the speed in degrees per second
|
||||
virtual void setSpeed( const core::vector3df& speed ) { Speed = speed; }
|
||||
virtual void setSpeed( const core::vector3df& speed ) _IRR_OVERRIDE_ { Speed = speed; }
|
||||
|
||||
//! Get the point that particles are attracted to
|
||||
virtual const core::vector3df& getPivotPoint() const { return PivotPoint; }
|
||||
virtual const core::vector3df& getPivotPoint() const _IRR_OVERRIDE_ { return PivotPoint; }
|
||||
|
||||
//! Get the speed in degrees per second
|
||||
virtual const core::vector3df& getSpeed() const { return Speed; }
|
||||
virtual const core::vector3df& getSpeed() const _IRR_OVERRIDE_ { return Speed; }
|
||||
|
||||
//! Writes attributes of the object.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
|
|
|
@ -38,76 +38,76 @@ public:
|
|||
virtual s32 emitt(u32 now, u32 timeSinceLastCall, SParticle*& outArray);
|
||||
|
||||
//! Set direction the emitter emits particles
|
||||
virtual void setDirection( const core::vector3df& newDirection ) { Direction = newDirection; }
|
||||
virtual void setDirection( const core::vector3df& newDirection ) _IRR_OVERRIDE_ { Direction = newDirection; }
|
||||
|
||||
//! Set minimum number of particles per second.
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) { MinParticlesPerSecond = minPPS; }
|
||||
virtual void setMinParticlesPerSecond( u32 minPPS ) _IRR_OVERRIDE_ { MinParticlesPerSecond = minPPS; }
|
||||
|
||||
//! Set maximum number of particles per second.
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) { MaxParticlesPerSecond = maxPPS; }
|
||||
virtual void setMaxParticlesPerSecond( u32 maxPPS ) _IRR_OVERRIDE_ { MaxParticlesPerSecond = maxPPS; }
|
||||
|
||||
//! Set minimum start color
|
||||
virtual void setMinStartColor( const video::SColor& color ) { MinStartColor = color; }
|
||||
virtual void setMinStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MinStartColor = color; }
|
||||
|
||||
//! Set maximum start color
|
||||
virtual void setMaxStartColor( const video::SColor& color ) { MaxStartColor = color; }
|
||||
virtual void setMaxStartColor( const video::SColor& color ) _IRR_OVERRIDE_ { MaxStartColor = color; }
|
||||
|
||||
//! Set the maximum starting size for particles
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) { MaxStartSize = size; }
|
||||
virtual void setMaxStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MaxStartSize = size; }
|
||||
|
||||
//! Set the minimum starting size for particles
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) { MinStartSize = size; }
|
||||
virtual void setMinStartSize( const core::dimension2df& size ) _IRR_OVERRIDE_ { MinStartSize = size; }
|
||||
|
||||
//! Set the minimum particle life-time in milliseconds
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) { MinLifeTime = lifeTimeMin; }
|
||||
virtual void setMinLifeTime( u32 lifeTimeMin ) _IRR_OVERRIDE_ { MinLifeTime = lifeTimeMin; }
|
||||
|
||||
//! Set the maximum particle life-time in milliseconds
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) { MaxLifeTime = lifeTimeMax; }
|
||||
virtual void setMaxLifeTime( u32 lifeTimeMax ) _IRR_OVERRIDE_ { MaxLifeTime = lifeTimeMax; }
|
||||
|
||||
//! Set maximal random derivation from the direction
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) { MaxAngleDegrees = maxAngleDegrees; }
|
||||
virtual void setMaxAngleDegrees( s32 maxAngleDegrees ) _IRR_OVERRIDE_ { MaxAngleDegrees = maxAngleDegrees; }
|
||||
|
||||
//! Set the center of the sphere for particle emissions
|
||||
virtual void setCenter( const core::vector3df& center ) { Center = center; }
|
||||
virtual void setCenter( const core::vector3df& center ) _IRR_OVERRIDE_ { Center = center; }
|
||||
|
||||
//! Set the radius of the sphere for particle emissions
|
||||
virtual void setRadius( f32 radius ) { Radius = radius; }
|
||||
virtual void setRadius( f32 radius ) _IRR_OVERRIDE_ { Radius = radius; }
|
||||
|
||||
//! Gets direction the emitter emits particles
|
||||
virtual const core::vector3df& getDirection() const { return Direction; }
|
||||
virtual const core::vector3df& getDirection() const _IRR_OVERRIDE_ { return Direction; }
|
||||
|
||||
//! Get minimum number of particles per second.
|
||||
virtual u32 getMinParticlesPerSecond() const { return MinParticlesPerSecond; }
|
||||
virtual u32 getMinParticlesPerSecond() const _IRR_OVERRIDE_ { return MinParticlesPerSecond; }
|
||||
|
||||
//! Get maximum number of particles per second.
|
||||
virtual u32 getMaxParticlesPerSecond() const { return MaxParticlesPerSecond; }
|
||||
virtual u32 getMaxParticlesPerSecond() const _IRR_OVERRIDE_ { return MaxParticlesPerSecond; }
|
||||
|
||||
//! Get minimum start color
|
||||
virtual const video::SColor& getMinStartColor() const { return MinStartColor; }
|
||||
virtual const video::SColor& getMinStartColor() const _IRR_OVERRIDE_ { return MinStartColor; }
|
||||
|
||||
//! Get maximum start color
|
||||
virtual const video::SColor& getMaxStartColor() const { return MaxStartColor; }
|
||||
virtual const video::SColor& getMaxStartColor() const _IRR_OVERRIDE_ { return MaxStartColor; }
|
||||
|
||||
//! Gets the maximum starting size for particles
|
||||
virtual const core::dimension2df& getMaxStartSize() const { return MaxStartSize; }
|
||||
virtual const core::dimension2df& getMaxStartSize() const _IRR_OVERRIDE_ { return MaxStartSize; }
|
||||
|
||||
//! Gets the minimum starting size for particles
|
||||
virtual const core::dimension2df& getMinStartSize() const { return MinStartSize; }
|
||||
virtual const core::dimension2df& getMinStartSize() const _IRR_OVERRIDE_ { return MinStartSize; }
|
||||
|
||||
//! Get the minimum particle life-time in milliseconds
|
||||
virtual u32 getMinLifeTime() const { return MinLifeTime; }
|
||||
virtual u32 getMinLifeTime() const _IRR_OVERRIDE_ { return MinLifeTime; }
|
||||
|
||||
//! Get the maximum particle life-time in milliseconds
|
||||
virtual u32 getMaxLifeTime() const { return MaxLifeTime; }
|
||||
virtual u32 getMaxLifeTime() const _IRR_OVERRIDE_ { return MaxLifeTime; }
|
||||
|
||||
//! Get maximal random derivation from the direction
|
||||
virtual s32 getMaxAngleDegrees() const { return MaxAngleDegrees; }
|
||||
virtual s32 getMaxAngleDegrees() const _IRR_OVERRIDE_ { return MaxAngleDegrees; }
|
||||
|
||||
//! Get the center of the sphere for particle emissions
|
||||
virtual const core::vector3df& getCenter() const { return Center; }
|
||||
virtual const core::vector3df& getCenter() const _IRR_OVERRIDE_ { return Center; }
|
||||
|
||||
//! Get the radius of the sphere for particle emissions
|
||||
virtual f32 getRadius() const { return Radius; }
|
||||
virtual f32 getRadius() const _IRR_OVERRIDE_ { return Radius; }
|
||||
|
||||
//! Writes attributes of the object.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
|
|
|
@ -205,7 +205,7 @@ public:
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_PARTICLE_SYSTEM; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_PARTICLE_SYSTEM; }
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -40,12 +40,12 @@ public:
|
|||
virtual video::SMaterial& getMaterial(u32 i);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_Q3SHADER_SCENE_NODE; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_Q3SHADER_SCENE_NODE; }
|
||||
|
||||
virtual void setMesh(IMesh* mesh){}
|
||||
virtual IMesh* getMesh() { return Mesh; }
|
||||
virtual void setReadOnlyMaterials(bool readonly) {}
|
||||
virtual bool isReadOnlyMaterials() const { return true; }
|
||||
virtual void setMesh(IMesh* mesh)_IRR_OVERRIDE_ {}
|
||||
virtual IMesh* getMesh() _IRR_OVERRIDE_ { return Mesh; }
|
||||
virtual void setReadOnlyMaterials(bool readonly) _IRR_OVERRIDE_ {}
|
||||
virtual bool isReadOnlyMaterials() const _IRR_OVERRIDE_ { return true; }
|
||||
|
||||
//! Creates shadow volume scene node as child of this node
|
||||
//! and returns a pointer to it.
|
||||
|
|
|
@ -188,7 +188,7 @@ CSceneManager::CSceneManager(video::IVideoDriver* driver, io::IFileSystem* fs,
|
|||
: ISceneNode(0, 0), Driver(driver), FileSystem(fs), GUIEnvironment(gui),
|
||||
CursorControl(cursorControl), CollisionManager(0),
|
||||
ActiveCamera(0), ShadowColor(150,0,0,0), AmbientLight(0,0,0,0), Parameters(0),
|
||||
MeshCache(cache), CurrentRendertime(ESNRP_NONE), LightManager(0),
|
||||
MeshCache(cache), CurrentRenderPass(ESNRP_NONE), LightManager(0),
|
||||
IRR_XML_FORMAT_SCENE(L"irr_scene"), IRR_XML_FORMAT_NODE(L"node"), IRR_XML_FORMAT_NODE_ATTR_TYPE(L"type")
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
|
@ -1391,11 +1391,11 @@ void CSceneManager::drawAll()
|
|||
|
||||
//render camera scenes
|
||||
{
|
||||
CurrentRendertime = ESNRP_CAMERA;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRendertime) != 0);
|
||||
CurrentRenderPass = ESNRP_CAMERA;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRenderPass) != 0);
|
||||
|
||||
if (LightManager)
|
||||
LightManager->OnRenderPassPreRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPreRender(CurrentRenderPass);
|
||||
|
||||
for (i=0; i<CameraList.size(); ++i)
|
||||
CameraList[i]->render();
|
||||
|
@ -1403,17 +1403,17 @@ void CSceneManager::drawAll()
|
|||
CameraList.set_used(0);
|
||||
|
||||
if (LightManager)
|
||||
LightManager->OnRenderPassPostRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPostRender(CurrentRenderPass);
|
||||
}
|
||||
|
||||
//render lights scenes
|
||||
{
|
||||
CurrentRendertime = ESNRP_LIGHT;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRendertime) != 0);
|
||||
CurrentRenderPass = ESNRP_LIGHT;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRenderPass) != 0);
|
||||
|
||||
if (LightManager)
|
||||
{
|
||||
LightManager->OnRenderPassPreRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPreRender(CurrentRenderPass);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1447,17 +1447,17 @@ void CSceneManager::drawAll()
|
|||
LightList[i]->render();
|
||||
|
||||
if (LightManager)
|
||||
LightManager->OnRenderPassPostRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPostRender(CurrentRenderPass);
|
||||
}
|
||||
|
||||
// render skyboxes
|
||||
{
|
||||
CurrentRendertime = ESNRP_SKY_BOX;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRendertime) != 0);
|
||||
CurrentRenderPass = ESNRP_SKY_BOX;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRenderPass) != 0);
|
||||
|
||||
if (LightManager)
|
||||
{
|
||||
LightManager->OnRenderPassPreRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPreRender(CurrentRenderPass);
|
||||
for (i=0; i<SkyBoxList.size(); ++i)
|
||||
{
|
||||
ISceneNode* node = SkyBoxList[i];
|
||||
|
@ -1475,20 +1475,20 @@ void CSceneManager::drawAll()
|
|||
SkyBoxList.set_used(0);
|
||||
|
||||
if (LightManager)
|
||||
LightManager->OnRenderPassPostRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPostRender(CurrentRenderPass);
|
||||
}
|
||||
|
||||
|
||||
// render default objects
|
||||
{
|
||||
CurrentRendertime = ESNRP_SOLID;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRendertime) != 0);
|
||||
CurrentRenderPass = ESNRP_SOLID;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRenderPass) != 0);
|
||||
|
||||
SolidNodeList.sort(); // sort by textures
|
||||
|
||||
if (LightManager)
|
||||
{
|
||||
LightManager->OnRenderPassPreRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPreRender(CurrentRenderPass);
|
||||
for (i=0; i<SolidNodeList.size(); ++i)
|
||||
{
|
||||
ISceneNode* node = SolidNodeList[i].Node;
|
||||
|
@ -1507,17 +1507,17 @@ void CSceneManager::drawAll()
|
|||
SolidNodeList.set_used(0);
|
||||
|
||||
if (LightManager)
|
||||
LightManager->OnRenderPassPostRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPostRender(CurrentRenderPass);
|
||||
}
|
||||
|
||||
// render shadows
|
||||
{
|
||||
CurrentRendertime = ESNRP_SHADOW;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRendertime) != 0);
|
||||
CurrentRenderPass = ESNRP_SHADOW;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRenderPass) != 0);
|
||||
|
||||
if (LightManager)
|
||||
{
|
||||
LightManager->OnRenderPassPreRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPreRender(CurrentRenderPass);
|
||||
for (i=0; i<ShadowNodeList.size(); ++i)
|
||||
{
|
||||
ISceneNode* node = ShadowNodeList[i];
|
||||
|
@ -1539,18 +1539,18 @@ void CSceneManager::drawAll()
|
|||
ShadowNodeList.set_used(0);
|
||||
|
||||
if (LightManager)
|
||||
LightManager->OnRenderPassPostRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPostRender(CurrentRenderPass);
|
||||
}
|
||||
|
||||
// render transparent objects.
|
||||
{
|
||||
CurrentRendertime = ESNRP_TRANSPARENT;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRendertime) != 0);
|
||||
CurrentRenderPass = ESNRP_TRANSPARENT;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRenderPass) != 0);
|
||||
|
||||
TransparentNodeList.sort(); // sort by distance from camera
|
||||
if (LightManager)
|
||||
{
|
||||
LightManager->OnRenderPassPreRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPreRender(CurrentRenderPass);
|
||||
|
||||
for (i=0; i<TransparentNodeList.size(); ++i)
|
||||
{
|
||||
|
@ -1570,19 +1570,19 @@ void CSceneManager::drawAll()
|
|||
TransparentNodeList.set_used(0);
|
||||
|
||||
if (LightManager)
|
||||
LightManager->OnRenderPassPostRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPostRender(CurrentRenderPass);
|
||||
}
|
||||
|
||||
// render transparent effect objects.
|
||||
{
|
||||
CurrentRendertime = ESNRP_TRANSPARENT_EFFECT;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRendertime) != 0);
|
||||
CurrentRenderPass = ESNRP_TRANSPARENT_EFFECT;
|
||||
Driver->getOverrideMaterial().Enabled = ((Driver->getOverrideMaterial().EnablePasses & CurrentRenderPass) != 0);
|
||||
|
||||
TransparentEffectNodeList.sort(); // sort by distance from camera
|
||||
|
||||
if (LightManager)
|
||||
{
|
||||
LightManager->OnRenderPassPreRender(CurrentRendertime);
|
||||
LightManager->OnRenderPassPreRender(CurrentRenderPass);
|
||||
|
||||
for (i=0; i<TransparentEffectNodeList.size(); ++i)
|
||||
{
|
||||
|
@ -1608,7 +1608,7 @@ void CSceneManager::drawAll()
|
|||
LightList.set_used(0);
|
||||
clearDeletionList();
|
||||
|
||||
CurrentRendertime = ESNRP_NONE;
|
||||
CurrentRenderPass = ESNRP_NONE;
|
||||
}
|
||||
|
||||
void CSceneManager::setLightManager(ILightManager* lightManager)
|
||||
|
@ -2010,7 +2010,7 @@ io::IAttributes* CSceneManager::getParameters()
|
|||
//! Returns current render pass.
|
||||
E_SCENE_NODE_RENDER_PASS CSceneManager::getSceneNodeRenderPass() const
|
||||
{
|
||||
return CurrentRendertime;
|
||||
return CurrentRenderPass;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -433,7 +433,7 @@ namespace scene
|
|||
virtual ISceneManager* createNewSceneManager(bool cloneContent);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_SCENE_MANAGER; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_SCENE_MANAGER; }
|
||||
|
||||
//! Returns the default scene node factory which can create all built in scene nodes
|
||||
virtual ISceneNodeFactory* getDefaultSceneNodeFactory();
|
||||
|
@ -510,13 +510,13 @@ namespace scene
|
|||
virtual void setLightManager(ILightManager* lightManager);
|
||||
|
||||
//! Get current render time.
|
||||
virtual E_SCENE_NODE_RENDER_PASS getCurrentRendertime() const { return CurrentRendertime; }
|
||||
virtual E_SCENE_NODE_RENDER_PASS getCurrentRenderPass() const _IRR_OVERRIDE_ { return CurrentRenderPass; }
|
||||
|
||||
//! Set current render time.
|
||||
virtual void setCurrentRendertime(E_SCENE_NODE_RENDER_PASS currentRendertime) { CurrentRendertime = currentRendertime; }
|
||||
virtual void setCurrentRenderPass(E_SCENE_NODE_RENDER_PASS nextPass) _IRR_OVERRIDE_ { CurrentRenderPass = nextPass; }
|
||||
|
||||
//! Get an instance of a geometry creator.
|
||||
virtual const IGeometryCreator* getGeometryCreator(void) const { return GeometryCreator; }
|
||||
virtual const IGeometryCreator* getGeometryCreator(void) const _IRR_OVERRIDE_ { return GeometryCreator; }
|
||||
|
||||
//! returns if node is culled
|
||||
virtual bool isCulled(const ISceneNode* node) const;
|
||||
|
@ -636,7 +636,7 @@ namespace scene
|
|||
//! Mesh cache
|
||||
IMeshCache* MeshCache;
|
||||
|
||||
E_SCENE_NODE_RENDER_PASS CurrentRendertime;
|
||||
E_SCENE_NODE_RENDER_PASS CurrentRenderPass;
|
||||
|
||||
//! An optional callbacks manager to allow the user app finer control
|
||||
//! over the scene lighting and rendering.
|
||||
|
|
|
@ -85,7 +85,7 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node animator
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_COLLISION_RESPONSE; }
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const _IRR_OVERRIDE_ { return ESNAT_COLLISION_RESPONSE; }
|
||||
|
||||
//! Creates a clone of this animator.
|
||||
/** Please note that you will have to drop
|
||||
|
@ -94,23 +94,23 @@ namespace scene
|
|||
virtual ISceneNodeAnimator* createClone(ISceneNode* node, ISceneManager* newManager=0);
|
||||
|
||||
//! Set the single node that this animator will act on.
|
||||
virtual void setTargetNode(ISceneNode * node) { setNode(node); }
|
||||
virtual void setTargetNode(ISceneNode * node) _IRR_OVERRIDE_ { setNode(node); }
|
||||
|
||||
//! Gets the single node that this animator is acting on.
|
||||
virtual ISceneNode* getTargetNode(void) const { return Object; }
|
||||
virtual ISceneNode* getTargetNode(void) const _IRR_OVERRIDE_ { return Object; }
|
||||
|
||||
//! Returns true if a collision occurred during the last animateNode()
|
||||
virtual bool collisionOccurred() const { return CollisionOccurred; }
|
||||
virtual bool collisionOccurred() const _IRR_OVERRIDE_ { return CollisionOccurred; }
|
||||
|
||||
//! Returns the last point of collision.
|
||||
virtual const core::vector3df & getCollisionPoint() const { return CollisionPoint; }
|
||||
virtual const core::vector3df & getCollisionPoint() const _IRR_OVERRIDE_ { return CollisionPoint; }
|
||||
|
||||
//! Returns the last triangle that caused a collision.
|
||||
virtual const core::triangle3df & getCollisionTriangle() const { return CollisionTriangle; }
|
||||
virtual const core::triangle3df & getCollisionTriangle() const _IRR_OVERRIDE_ { return CollisionTriangle; }
|
||||
|
||||
virtual const core::vector3df & getCollisionResultPosition(void) const { return CollisionResultPosition; }
|
||||
virtual const core::vector3df & getCollisionResultPosition(void) const _IRR_OVERRIDE_ { return CollisionResultPosition; }
|
||||
|
||||
virtual ISceneNode* getCollisionNode(void) const { return CollisionNode; }
|
||||
virtual ISceneNode* getCollisionNode(void) const _IRR_OVERRIDE_ { return CollisionNode; }
|
||||
|
||||
|
||||
//! Sets a callback interface which will be called if a collision occurs.
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node animator
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FLY_CIRCLE; }
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const _IRR_OVERRIDE_ { return ESNAT_FLY_CIRCLE; }
|
||||
|
||||
//! Creates a clone of this animator.
|
||||
/** Please note that you will have to drop
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node animator
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FLY_STRAIGHT; }
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const _IRR_OVERRIDE_ { return ESNAT_FLY_STRAIGHT; }
|
||||
|
||||
//! Creates a clone of this animator.
|
||||
/** Please note that you will have to drop
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node animator
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_FOLLOW_SPLINE; }
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const _IRR_OVERRIDE_ { return ESNAT_FOLLOW_SPLINE; }
|
||||
|
||||
//! Creates a clone of this animator.
|
||||
/** Please note that you will have to drop
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node animator
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_ROTATION; }
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const _IRR_OVERRIDE_ { return ESNAT_ROTATION; }
|
||||
|
||||
//! Creates a clone of this animator.
|
||||
/** Please note that you will have to drop
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace scene
|
|||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options=0);
|
||||
|
||||
//! Returns type of the scene node animator
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const { return ESNAT_TEXTURE; }
|
||||
virtual ESCENE_NODE_ANIMATOR_TYPE getType() const _IRR_OVERRIDE_ { return ESNAT_TEXTURE; }
|
||||
|
||||
//! Creates a clone of this animator.
|
||||
/** Please note that you will have to drop
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace scene
|
|||
virtual const core::aabbox3d<f32>& getBoundingBox() const;
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_SHADOW_VOLUME; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_SHADOW_VOLUME; }
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ namespace scene
|
|||
virtual u32 getMaterialCount() const;
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_SKY_BOX; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_SKY_BOX; }
|
||||
|
||||
//! Creates a clone of this scene node and its children.
|
||||
virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0);
|
||||
|
|
|
@ -26,7 +26,7 @@ class CSkyDomeSceneNode : public ISceneNode
|
|||
virtual const core::aabbox3d<f32>& getBoundingBox() const;
|
||||
virtual video::SMaterial& getMaterial(u32 i);
|
||||
virtual u32 getMaterialCount() const;
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_SKY_DOME; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_SKY_DOME; }
|
||||
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
|
||||
|
|
|
@ -71,7 +71,7 @@ public:
|
|||
CSoftware2MaterialRenderer_UNSUPPORTED ( video::CBurningVideoDriver* driver )
|
||||
: CSoftware2MaterialRenderer ( driver ) {}
|
||||
|
||||
virtual s32 getRenderCapability() const { return 1; }
|
||||
virtual s32 getRenderCapability() const _IRR_OVERRIDE_ { return 1; }
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -163,12 +163,11 @@ namespace video
|
|||
//! Returns the maximum texture size supported.
|
||||
virtual core::dimension2du getMaxTextureSize() const;
|
||||
|
||||
virtual IDepthBuffer * getDepthBuffer () { return DepthBuffer; }
|
||||
virtual IStencilBuffer * getStencilBuffer () { return StencilBuffer; }
|
||||
IDepthBuffer * getDepthBuffer () { return DepthBuffer; }
|
||||
IStencilBuffer * getStencilBuffer () { return StencilBuffer; }
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
//! sets a render target
|
||||
void setRenderTarget(video::CImage* image);
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace scene
|
|||
virtual u32 getMaterialCount() const;
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_SPHERE; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_SPHERE; }
|
||||
|
||||
//! Writes attributes of the scene node.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
|
||||
|
@ -56,18 +56,18 @@ namespace scene
|
|||
virtual ISceneNode* clone(ISceneNode* newParent=0, ISceneManager* newManager=0);
|
||||
|
||||
//! The mesh cannot be changed
|
||||
virtual void setMesh(IMesh* mesh) {}
|
||||
virtual void setMesh(IMesh* mesh) _IRR_OVERRIDE_ {}
|
||||
|
||||
//! Returns the current mesh
|
||||
virtual IMesh* getMesh() { return Mesh; }
|
||||
virtual IMesh* getMesh() _IRR_OVERRIDE_ { return Mesh; }
|
||||
|
||||
//! Sets if the scene node should not copy the materials of the mesh but use them in a read only style.
|
||||
/* In this way it is possible to change the materials a mesh causing all mesh scene nodes
|
||||
referencing this mesh to change too. */
|
||||
virtual void setReadOnlyMaterials(bool readonly) {}
|
||||
virtual void setReadOnlyMaterials(bool readonly) _IRR_OVERRIDE_ {}
|
||||
|
||||
//! Returns if the scene node should not copy the materials of the mesh but use them in a read only style
|
||||
virtual bool isReadOnlyMaterials() const { return false; }
|
||||
virtual bool isReadOnlyMaterials() const _IRR_OVERRIDE_ { return false; }
|
||||
|
||||
//! Creates shadow volume scene node as child of this node
|
||||
//! and returns a pointer to it.
|
||||
|
|
|
@ -117,7 +117,7 @@ namespace io
|
|||
virtual const IFileList* getFileList() const;
|
||||
|
||||
//! get the class Type
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const { return EFAT_TAR; }
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const _IRR_OVERRIDE_ { return EFAT_TAR; }
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
@ -127,13 +127,13 @@ namespace scene
|
|||
virtual const core::aabbox3d<f32>& getBoundingBox(s32 patchX, s32 patchZ) const;
|
||||
|
||||
//! Return the number of indices currently used to draw the scene node.
|
||||
virtual u32 getIndexCount() const { return IndicesToRender; }
|
||||
virtual u32 getIndexCount() const _IRR_OVERRIDE_ { return IndicesToRender; }
|
||||
|
||||
//! Returns the mesh
|
||||
virtual IMesh* getMesh();
|
||||
|
||||
//! Returns a pointer to the buffer used by the terrain (most users will not need this)
|
||||
virtual IMeshBuffer* getRenderBuffer() { return RenderBuffer; }
|
||||
virtual IMeshBuffer* getRenderBuffer() _IRR_OVERRIDE_ { return RenderBuffer; }
|
||||
|
||||
//! Gets the meshbuffer data based on a specified Level of Detail.
|
||||
//! \param mb: A reference to an IDynamicMeshBuffer object
|
||||
|
@ -189,7 +189,7 @@ namespace scene
|
|||
//! the geomipmap data changes.
|
||||
//! param bVal: Boolean value representing whether or not to update selector dynamically.
|
||||
//! NOTE: Temporarily disabled while working out issues with DynamicSelectorUpdate
|
||||
virtual void setDynamicSelectorUpdate(bool bVal ) { DynamicSelectorUpdate = false; }
|
||||
virtual void setDynamicSelectorUpdate(bool bVal ) _IRR_OVERRIDE_ { DynamicSelectorUpdate = false; }
|
||||
|
||||
//! Override the default generation of distance thresholds for determining the LOD a patch
|
||||
//! is rendered at. If any LOD is overridden, then the scene node will no longer apply
|
||||
|
@ -202,7 +202,7 @@ namespace scene
|
|||
virtual void scaleTexture(f32 scale = 1.0f, f32 scale2 = 0.0f);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const {return ESNT_TERRAIN;}
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ {return ESNT_TERRAIN;}
|
||||
|
||||
//! Writes attributes of the scene node.
|
||||
virtual void serializeAttributes(io::IAttributes* out,
|
||||
|
|
|
@ -46,7 +46,7 @@ namespace scene
|
|||
virtual void setTextColor(video::SColor color);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_TEXT; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_TEXT; }
|
||||
|
||||
private:
|
||||
|
||||
|
@ -99,7 +99,7 @@ namespace scene
|
|||
virtual u32 getMaterialCount() const;
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_TEXT; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_TEXT; }
|
||||
|
||||
//! Set the color of all vertices of the billboard
|
||||
//! \param overallColor: the color to set
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
virtual s32 getTriangleCount() const;
|
||||
|
||||
//! Return the scene node associated with a given triangle.
|
||||
virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const { return SceneNode; }
|
||||
virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const _IRR_OVERRIDE_ { return SceneNode; }
|
||||
|
||||
// Get the number of TriangleSelectors that are part of this one
|
||||
virtual u32 getSelectorCount() const;
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace scene
|
|||
virtual u32 getMaterialCount() const;
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_VOLUME_LIGHT; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_VOLUME_LIGHT; }
|
||||
|
||||
//! Writes attributes of the scene node.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options=0) const;
|
||||
|
@ -58,14 +58,14 @@ namespace scene
|
|||
virtual void setSubDivideU(const u32 inU);
|
||||
virtual void setSubDivideV(const u32 inV);
|
||||
|
||||
virtual u32 getSubDivideU() const { return SubdivideU; }
|
||||
virtual u32 getSubDivideV() const { return SubdivideV; }
|
||||
virtual u32 getSubDivideU() const _IRR_OVERRIDE_ { return SubdivideU; }
|
||||
virtual u32 getSubDivideV() const _IRR_OVERRIDE_ { return SubdivideV; }
|
||||
|
||||
virtual void setFootColor(const video::SColor inColor);
|
||||
virtual void setTailColor(const video::SColor inColor);
|
||||
|
||||
virtual video::SColor getFootColor() const { return FootColor; }
|
||||
virtual video::SColor getTailColor() const { return TailColor; }
|
||||
virtual video::SColor getFootColor() const _IRR_OVERRIDE_ { return FootColor; }
|
||||
virtual video::SColor getTailColor() const _IRR_OVERRIDE_ { return TailColor; }
|
||||
|
||||
private:
|
||||
void constructLight();
|
||||
|
|
|
@ -140,7 +140,7 @@ namespace io
|
|||
virtual const IFileList* getFileList() const;
|
||||
|
||||
//! get the class Type
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const { return EFAT_WAD; }
|
||||
virtual E_FILE_ARCHIVE_TYPE getType() const _IRR_OVERRIDE_ { return EFAT_WAD; }
|
||||
|
||||
|
||||
private:
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace scene
|
|||
virtual void setMesh(IMesh* mesh);
|
||||
|
||||
//! Returns type of the scene node
|
||||
virtual ESCENE_NODE_TYPE getType() const { return ESNT_WATER_SURFACE; }
|
||||
virtual ESCENE_NODE_TYPE getType() const _IRR_OVERRIDE_ { return ESNT_WATER_SURFACE; }
|
||||
|
||||
//! Writes attributes of the scene node.
|
||||
virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const;
|
||||
|
|
Loading…
Reference in New Issue