|
NSUNI/NSLAR Library a250670
|
Classes | |
| struct | nnl::fog::Fog |
| Defines settings for depth-based environmental fog. More... | |
Functions | |
| bool | nnl::fog::IsOfType (BufferView buffer) |
| Tests if the provided file is a fog config. | |
| Fog | nnl::fog::Import (BufferView buffer) |
| Parses a binary file and converts it to a Fog struct. | |
| Buffer | nnl::fog::Export (const Fog &fog) |
| Converts a fog config to a binary file representation. | |
| struct nnl::fog::Fog |
Defines settings for depth-based environmental fog.
Public Attributes | |
| f32 | near_ = 0.0f |
| Distance where the fog starts to cover objects. | |
| f32 | far_ = 0.0f |
| Distance where the fog fully covers objects. | |
| u32 | color = 0xFF'00'00'00 |
| u32 nnl::fog::Fog::color = 0xFF'00'00'00 |
Color of the fog in the ABGR format (alpha is ignored)
| f32 nnl::fog::Fog::far_ = 0.0f |
Distance where the fog fully covers objects.
| f32 nnl::fog::Fog::near_ = 0.0f |
Distance where the fog starts to cover objects.
Converts a fog config to a binary file representation.
This function takes a Fog object and converts it into a Buffer, which represents the binary format of the fog config.
| fog | The Fog object to be converted into a binary format. |
| Fog nnl::fog::Import | ( | BufferView | buffer | ) |
Parses a binary file and converts it to a Fog struct.
This function takes a binary representation of a fog config, parses its contents, and converts them into a Fog struct for easier access and manipulation.
| buffer | The binary data to be processed. |
| bool nnl::fog::IsOfType | ( | BufferView | buffer | ) |
Tests if the provided file is a fog config.
This function takes data representing a file and checks whether it corresponds to the in-game fog config format.
| buffer | The data to be tested. |