3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Objects.Fog Class Reference

This object controls the Fog effect. More...

#include <Fog.hpp>

Inheritance diagram for Engine3DRadSpace.Objects.Fog:
Collaboration diagram for Engine3DRadSpace.Objects.Fog:

Public Member Functions

 Fog ()
 Fog (const std::string &name="Fog", bool enabled=true, float begin=200.0f, float end=500.0f, Math::Color color=Math::Colors::White)
 Complete fog constructor.
 Fog (Fog &&)=default
 Default move constructor for Fog.
Fog & operator= (Fog &&)=default
 Default move assignment operator for Fog.
void Initialize () override
 Does nothing.
void Load () override
 Retrieves the fog effect from the graphics device and sets its parameters.
void Load (const std::filesystem::path &path) override
 Same as Load() without arguments.
void Update () override
 Synchronizes the fog effect with the current parameters. This is called every frame.
Reflection::UUID GetUUID () const noexcept override
 Returns the unique identifier for the Fog class.
Gizmos::IGizmo * GetGizmo () const noexcept override
 Returns the gizmo associated with this object.
 ~Fog () override
Public Member Functions inherited from Engine3DRadSpace.Objects.InstIObject
 InstIObject (IntPtr handle)
IObject GetChild (int idx)
int GetChildrenCount ()
void Enable ()
 Enables this object.
void Disable ()
 Disables this object.
bool Switch ()
 Switched the enable/disable state of this object.
void Show ()
 Shows this object.
void Hide ()
 Hides this object.
bool SwitchVisibility ()
 Switches the visibility state of this object.
void Initialize ()
 Initialization method.
void Load ()
 Loads object's assets.
void Load (string path)
override void Dispose ()
Public Member Functions inherited from Engine3DRadSpace.InstIUpdateable
void Update ()
 Update function.
Public Member Functions inherited from Engine3DRadSpace.IUpdateable
void Update ()
virtual ~IUpdateable ()=default
Public Member Functions inherited from Engine3DRadSpace.Objects.IObject
void Enable ()
void Disable ()
bool Switch ()
void Show ()
void Hide ()
bool SwitchVisibility ()
IObject GetChild (int idx)
int GetChildrenCount ()
void InternalInitialize (IGame *game)
 Called by ObjectsList to set the _game Game instance. If there are objects manually managed, this MUST be called before Initialize or EditorInitialize.
Graphics::IGraphicsDevice * GetGraphicsDeviceHandle () const noexcept
 Returns the graphics device handle associated with this object.
IGame * GetGame () const noexcept
 Gets the game that this object belongs to.
IObject * operator[] (size_t idxChild) const
 Returns the idx-th child of this object.
IObject * GetParent () const noexcept
 Returns the parent of this object.
void SetParent (IObject *newParent) noexcept
 Sets the parent of this object.
bool HasParent () const noexcept
 Checks if this object has a parent.
size_t GetChildrenCount () const noexcept
 Returns the number of children of this object.
void Uninitialize () override
 Called before the object has the destructor called.
virtual ~IObject ()
Public Member Functions inherited from Engine3DRadSpace.IInitializable
void Initialize ()
virtual ~IInitializable ()=default
Public Member Functions inherited from Engine3DRadSpace.ILoadable
void Load ()
void Load (string path)
virtual ~ILoadable ()=default

Public Attributes

Math::Color FogColor
 Fog color.
Public Attributes inherited from Engine3DRadSpace.Objects.IObject
std::string Name
 Name of the object.
ChildObjectCollection Children
 Children of this object.

Protected Attributes

::Engine3DRadSpace::Graphics::Rendering::LinearPixelFogEffect * _effect
Protected Attributes inherited from Engine3DRadSpace.NatPtrWrapper
IntPtr _handle
bool _disposed
Protected Attributes inherited from Engine3DRadSpace.Objects.IObject
IGame * _game = nullptr
Graphics::IGraphicsDevice * _device = nullptr
IObject * _parent = nullptr

Properties

float FogBegin [get, set]
 Fog start distance in meters.
float FogEnd [get, set]
 Fog end distance in meters.
unsafe Color FogColor [get, set]
Properties inherited from Engine3DRadSpace.Objects.InstIObject
IObject? Parent [get, set]
string Name [get, set]
bool Enabled [get, set]
bool Visible [get, set]
Reflection.UUID UUID [get]
IGame Game [get]
IGraphicsDevice GraphicsDevice [get]
IGizmo Gizmo [get]
ObjectCollection Children [get]
Properties inherited from Engine3DRadSpace.NatPtrWrapper
IntPtr Handle [get]
Properties inherited from Engine3DRadSpace.Objects.IObject
string Name [get, set]
bool Enabled [get, set]
 Is this object enabled?
bool Visible [get, set]
 Is this object visible?
Reflection.UUID UUID [get]
IGame Game [get]
IGraphicsDevice GraphicsDevice [get]
IGizmo Gizmo [get]
ObjectCollection Children [get]
IObject Parent [get, set]

Additional Inherited Members

Protected Member Functions inherited from Engine3DRadSpace.InstIUpdateable
 InstIUpdateable (IntPtr handle, bool ownsHandle)
Protected Member Functions inherited from Engine3DRadSpace.NatPtrWrapper
 NatPtrWrapper (IntPtr handle, Action< IntPtr > fnDestroy)
 NatPtrWrapper (Action< IntPtr > fnDestroy)
void Reset (IntPtr newObj)
void Dispose (bool disposing)
Protected Member Functions inherited from Engine3DRadSpace.IUpdateable
 IUpdateable ()=default
 IUpdateable (const IUpdateable &) noexcept=default
IUpdateable & operator= (const IUpdateable &) noexcept=default
 IUpdateable (IUpdateable &&) noexcept=default
IUpdateable & operator= (IUpdateable &&) noexcept=default
Protected Member Functions inherited from Engine3DRadSpace.Objects.IObject
 IObject (const std::string &name="Empty", bool enabled=false, bool visible=false)
 Default constructor used for reflection. Objects created with this constructor are initially invalid, until internalInitialize() is called.
 IObject (const IObject &) noexcept=delete
IObject & operator= (const IObject &) noexcept=delete
 IObject (IObject &&) noexcept=default
IObject & operator= (IObject &&) noexcept=default
Protected Member Functions inherited from Engine3DRadSpace.IInitializable
 IInitializable ()=default
 IInitializable (const IInitializable &) noexcept=default
IInitializable & operator= (const IInitializable &) noexcept=default
 IInitializable (IInitializable &&) noexcept=default
IInitializable & operator= (IInitializable &&) noexcept=default
Protected Member Functions inherited from Engine3DRadSpace.ILoadable
 ILoadable ()=default
 ILoadable (const ILoadable &) noexcept=default
ILoadable & operator= (const ILoadable &) noexcept=default
 ILoadable (ILoadable &&) noexcept=default
ILoadable & operator= (ILoadable &&) noexcept=default

Detailed Description

This object controls the Fog effect.

Constructor & Destructor Documentation

◆ Fog() [1/3]

Engine3DRadSpace.Objects.Fog.Fog ( )
inline

◆ Fog() [2/3]

Engine3DRadSpace.Objects.Fog.Fog ( const std::string & name = "Fog",
bool enabled = true,
float begin = 200.0f,
float end = 500.0f,
Math::Color color = Math::Colors::White )

Complete fog constructor.

Parameters
nameObject name
enabledIs the fog enabled
beginFog start distance
endFog end distance
colorFog color

◆ Fog() [3/3]

Default move constructor for Fog.

◆ ~Fog()

Fog::~Fog ( )
override

Member Function Documentation

◆ GetGizmo()

Gizmos::IGizmo * Fog::GetGizmo ( ) const
overridevirtualnoexcept

Returns the gizmo associated with this object.

Returns

Implements Engine3DRadSpace.Objects.IObject.

◆ GetUUID()

Reflection::UUID Fog::GetUUID ( ) const
overridevirtualnoexcept

Returns the unique identifier for the Fog class.

Returns
{57299A03-31EA-43D2-A58E-C1F865E1EF85}

Implements Engine3DRadSpace.Objects.IObject.

◆ Initialize()

void Fog::Initialize ( )
overridevirtual

Does nothing.

Implements Engine3DRadSpace.IInitializable.

◆ Load() [1/2]

void Fog::Load ( )
overridevirtual

Retrieves the fog effect from the graphics device and sets its parameters.

Implements Engine3DRadSpace.ILoadable.

◆ Load() [2/2]

void Fog::Load ( const std::filesystem::path & path)
overridevirtual

Same as Load() without arguments.

Parameters
pathunused.

Implements Engine3DRadSpace.ILoadable.

◆ operator=()

Fog & Engine3DRadSpace.Objects.Fog.operator= ( Fog && )
default

Default move assignment operator for Fog.

Returns

◆ Update()

void Fog::Update ( )
overridevirtual

Synchronizes the fog effect with the current parameters. This is called every frame.

Implements Engine3DRadSpace.IUpdateable.

Member Data Documentation

◆ _effect

::Engine3DRadSpace::Graphics::Rendering::LinearPixelFogEffect* Engine3DRadSpace.Objects.Fog._effect
protected

◆ FogColor

Property Documentation

◆ FogBegin

float Engine3DRadSpace.Objects.Fog.FogBegin
getset

Fog start distance in meters.

◆ FogColor

unsafe Color Engine3DRadSpace.Objects.Fog.FogColor
getset

◆ FogEnd

float Engine3DRadSpace.Objects.Fog.FogEnd
getset

Fog end distance in meters.


The documentation for this class was generated from the following files:
  • E:/3DRadSpace/3DRadSpace_CSharp/Objects/Fog.cs
  • E:/3DRadSpace/Engine3DRadSpace/Objects/Impl/Fog.hpp
  • E:/3DRadSpace/Engine3DRadSpace/Objects/Impl/Fog.cpp