└>Geo::IGeoSerialisable
└>Geo::IGeoReleasable
A class representing a cube map object which the run-time can generate dynamically.
Name | Description |
---|---|
Create() | Create a new empty IPrecompInputCubeMap. |
GetBuildParameters() | Edit the build parameters for this cube map. |
GetBuildParameters() | Read only access to the build parameters for this cube map. |
GetFaceWidth() | Get the width and length of face in the cube map. |
GetId() | Return the unique ID of this cube map. |
GetLocation() | Get the world space location of the cube map. |
GetName() | Get the full name. |
Load(IGeoInputStream &, Geo::u32) | Load an instance of this class from an IGeoInputStream. |
Release() | Free this object that was created within the Enlighten libraries. |
Save(IGeoStream &, Geo::u32) | Save an instance of this class to an IGeoStream. |
SetFaceWidth(Geo::s32) | Set the width and length of face in the cube map. |
SetId(Geo::GeoGuid) | Set the unique ID of this cube map. |
SetLocation(const Geo::Matrix &) | Set the world space position and orientation of the cube map. |
SetName(const char *) | Set a globally unique name. |
public: IPrecompInputCubeMap * Create()
Create a new empty IPrecompInputCubeMap.
public: IPrecompCubeMapBuildParameters * GetBuildParameters()
Edit the build parameters for this cube map.
public: const IPrecompCubeMapBuildParameters * GetBuildParameters() const
Read only access to the build parameters for this cube map.
public: Geo::s32 GetFaceWidth() const
Get the width and length of face in the cube map.
public: Geo::GeoGuid GetId() const
Return the unique ID of this cube map.
public: const Geo::Matrix & GetLocation() const
Get the world space location of the cube map.
The current location, or the identity matrix if it has not been set yet.
public: const char * GetName() const
Get the full name.
public: bool Load
(
IGeoInputStream & stream,
Geo::u32 section
)
Load an instance of this class from an IGeoInputStream.
The stream must be ready to read from. You can load sections of an object by passing a bitmask representing the desired sections rather than Iff::AllSectionsMask, which will load all sections. It is also safe to call this method on an object multiple times with different section arguments to load multiple parts.
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)'
public: bool Save
(
IGeoStream & stream,
Geo::u32 section
) const
Save an instance of this class to an IGeoStream.
The stream must be ready to write to. You can save sections of an object by passing a bitmask representing the desired sections rather than Iff::AllSectionsMask, which will save all sections that are available.
public: bool SetFaceWidth
(
Geo::s32 faceWidth
)
Set the width and length of face in the cube map.
Cube map faces are always square and their width must be a power of two. The minimum face width is 2. The maximum this function will allow is set to 4096, but in practice this size is impractical and is unlikely to successfully precompute. A maximum width of 256 is a more practical limit for the regular cube map solution due to the precompute time involved. The default is 16 - a 16x16x6 pixel map.
True, if the value was correctly set. False if faceWidth is not a valid face width.
public: void SetId
(
Geo::GeoGuid id
)
Set the unique ID of this cube map.
public: bool SetLocation
(
const Geo::Matrix & location
)
Set the world space position and orientation of the cube map.
[in] | location | The world space location as a matrix encoding rotation and position only. Scale/skew is not supported. |
True if operation succeeded, false if the value cannot be used (e.g. infs, nans, non-orthogonal, scaled)
public: void SetName
(
const char * name
)
Set a globally unique name.