Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

class Enlighten::CpuEnvironment

    └>Enlighten::BaseEnvironment
        └>Geo::IGeoReleasable

Class used by the CPU and console update managers to represent an environment map.

In particular, it allows the application to update the environment map in a thread-safe manner.

Variables

NameDescription
InputLightingBuffer * m_EmissiveEnvironment

The underlying Enlighten object.

PrecisionHint::Value m_InputLightingPrecisionHint

Precision hint of the input lighting buffer.

Geo::s32 m_Resolution

Power-of-two face resolution of the environment cube map.

Geo::v128 * m_Values

The application-settable base values.

Functions

NameDescription
BaseEnvironment(Geo::s32, PrecisionHint::Value)

Constructs an environment object of the given resolution.

Clone()

Creates a copy of the CPU environment and its data values.

CpuEnvironment(Geo::s32, PrecisionHint::Value)

Constructs a CPU environment of the given resolution.

Create()

Creates a CPU environment of (default) resolution 2. Used in GeoMobileDemo.

CreateInputLightingBuffer()

Creates the input lighting buffer.

GetInputLightingPrecisionHint()

Gets the precision hint of the input lighting buffer.

Load(Geo::IGeoInputStream &, Geo::u32)

Deserialises a CPU environment from a stream.

NonCopyable(NonCopyable &&)

Defaulted to allow move.

operator=(NonCopyable &&)

Defaulted to allow move.

Release()

Free this object that was created within the Enlighten libraries.

Release()

Free this object that was created within the Enlighten libraries.

Save(Geo::IGeoStream &, Geo::u32)

Serialises a CPU environment to a stream.

UpdateEnvironmentInputLighting()

Updates the input lighting buffer.

UpdateEnvironmentInputLighting()

Updates the input lighting buffer.


Anchor
a8bfefd9df26486b5e510112a75e7d209
a8bfefd9df26486b5e510112a75e7d209

Enlighten::BaseEnvironment::BaseEnvironment

...

public: BaseEnvironment
(
    Geo::s32 resolution,
    PrecisionHint::Value precision
)

...

Constructs an environment object of the given resolution.


Anchor
a33ee792e794cc0f46fbf9ed5be2e89f8
a33ee792e794cc0f46fbf9ed5be2e89f8

CpuEnvironment* Enlighten::CpuEnvironment::Clone

...

public: CpuEnvironment * Clone() const

...

Creates a copy of the CPU environment and its data values.


Anchor
a4c70afe03650646c7730337727f874a9
a4c70afe03650646c7730337727f874a9

Enlighten::CpuEnvironment::CpuEnvironment

...

public: CpuEnvironment
(
    Geo::s32 resolution,
    PrecisionHint::Value precision
)

...

Constructs a CPU environment of the given resolution.


Anchor
ae9af0e75d4de351fcceaecc785485eec
ae9af0e75d4de351fcceaecc785485eec

static CpuEnvironment* Enlighten::CpuEnvironment::Create

...

public: CpuEnvironment * Create()

...

Creates a CPU environment of (default) resolution 2. Used in GeoMobileDemo.


Anchor
a4ca073f6ec3e71f43c846630eab97a58
a4ca073f6ec3e71f43c846630eab97a58

virtual void Enlighten::BaseEnvironment::CreateInputLightingBuffer

...

public: virtual void CreateInputLightingBuffer()

...

Creates the input lighting buffer.


Anchor
a191f0cee4b3910ade3af3749f576ac11
a191f0cee4b3910ade3af3749f576ac11

PrecisionHint::Value Enlighten::BaseEnvironment::GetInputLightingPrecisionHint

...

public: PrecisionHint::Value GetInputLightingPrecisionHint() const

...

Gets the precision hint of the input lighting buffer.


Anchor
a86687a6e744c1e3e918805193aa93e1b
a86687a6e744c1e3e918805193aa93e1b

bool Enlighten::CpuEnvironment::Load

...

public: bool Load
(
    Geo::IGeoInputStream & stream,
    Geo::u32 section
)

...

Deserialises a CPU environment from a stream.


Anchor
adaed81b4c59f263dcb4e78c4126f4683
adaed81b4c59f263dcb4e78c4126f4683

Geo::NonCopyable::NonCopyable

...

public: NonCopyable
(
    NonCopyable &&
)

...

Defaulted to allow move.


Anchor
a6abc781e23b8f4864e0b868806e0acbf
a6abc781e23b8f4864e0b868806e0acbf

NonCopyable& Geo::NonCopyable::operator=

...

public: NonCopyable & operator=
(
    NonCopyable &&
)

...

Defaulted to allow move.


Anchor
afa3b7f87ea5a68fd87901780bf4c53d2
afa3b7f87ea5a68fd87901780bf4c53d2

virtual void Enlighten::BaseEnvironment::Release

...

public: virtual void Release()

...

Free this object that was created within the Enlighten libraries.

Expect this to behave in a similar way to calling 'delete(this)'


Anchor
af6bdf30b42adde386c428e9dc2821eb9
af6bdf30b42adde386c428e9dc2821eb9

virtual void Geo::IGeoReleasable::Release

...

public: void Release()

...

Free this object that was created within the Enlighten libraries.

Expect this to behave in a similar way to calling 'delete(this)'


Anchor
a87e85de368e52eea62396a4b35dc9fc8
a87e85de368e52eea62396a4b35dc9fc8

bool Enlighten::CpuEnvironment::Save

...

public: bool Save
(
    Geo::IGeoStream & stream,
    Geo::u32 section
) const

...

Serialises a CPU environment to a stream.


Anchor
a741cd6060dc830d5758de45230d8223d
a741cd6060dc830d5758de45230d8223d

virtual void Enlighten::CpuEnvironment::UpdateEnvironmentInputLighting

...

public: virtual void UpdateEnvironmentInputLighting()

...

Updates the input lighting buffer.


Anchor
a06b556793ea0cc6974d6f19683e4c602
a06b556793ea0cc6974d6f19683e4c602

virtual void Enlighten::BaseEnvironment::UpdateEnvironmentInputLighting

...

public: void UpdateEnvironmentInputLighting()

...

Updates the input lighting buffer.