NSUNI/NSLAR Library a250670
Loading...
Searching...
No Matches
lit.hpp File Reference

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

#include <array>
#include "NNL/common/fixed_type.hpp"
#include "NNL/common/io.hpp"
#include "NNL/simple_asset/sasset3d.hpp"
#include "NNL/utility/data.hpp"

Go to the source code of this file.

Classes

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

Namespaces

namespace  nnl
namespace  nnl::lit
 Contains structures and functions for working with light source configs.

Functions

std::vector< nnl::SLightnnl::lit::Convert (const Lit &lit)
 Converts a light config to a more generic representation that is more suitable for exporting into other formats.
Lit nnl::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 nnl::lit::IsOfType (BufferView buffer)
 Tests if the provided file is a light source config.
Lit nnl::lit::Import (BufferView buffer)
 Parses a binary file and converts it to a Lit struct.
Buffer nnl::lit::Export (const Lit &lit)
 Converts a light config to a binary file representation.

Variables

constexpr u32 nnl::lit::raw::kMagicBytes = utl::data::FourCC("LIT!")
 Magic bytes.

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