NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
nnl::lit Namespace Reference

Contains structures and functions for working with light source configs. More...

Classes

struct  Light
 Represents a directional light in the scene. This structure represents a directional light source that affects dynamically lit materials. More...
struct  Lit
 Represents a lighting configuration for a scene. More...

Functions

std::vector< nnl::SLightConvert (const Lit &lit)
 Converts a light config to a more generic representation that is more suitable for exporting into other formats.
Lit Convert (const std::vector< nnl::SLight > &slights, glm::vec3 ambient=glm::vec3(0), bool enable_specular=true, float character_brightness=1.0f)
 Converts a vector of lights to a light config.
bool IsOfType (BufferView buffer)
 Tests if the provided file is a light source config.
Lit Import (BufferView buffer)
 Parses a binary file and converts it to a Lit struct.
Buffer Export (const Lit &lit)
 Converts a light config to a binary file representation.

Detailed Description

Contains structures and functions for working with light source configs.

See also
nnl::lit::Lit
nnl::lit::IsOfType
nnl::lit::Import
nnl::lit::Export
nnl::lit::Convert