OGRE-Next
4.0.0unstable
Object-Oriented Graphics Rendering Engine
|
#include <OgreLightProfiles.h>
Public Member Functions | |
LightProfiles (HlmsPbs *hlmsPbs, TextureGpuManager *textureGpuManager) | |
~LightProfiles () | |
void | assignProfile (IdString profileName, Light *light) |
Assigns the given profile to the light. More... | |
void | build () |
After you're done with all your loadIesProfile calls, call this function to generate the texture required for rendering. More... | |
const IesLoader * | getProfile (IdString profileName) const |
Returns the profile associated with the name. Nullptr if not found. More... | |
const IesLoader * | getProfile (Light *light) const |
Returns the profile associated with the light. More... | |
const String & | getProfileName (Light *light) const |
Returns the name of the profile associated with the light. More... | |
void | loadIesProfile (const String &filename, const String &resourceGroup, bool throwOnDuplicate=true) |
Loads an IES (Illuminating Engineering Society) profile to memory. More... | |
Ogre::LightProfiles::LightProfiles | ( | HlmsPbs * | hlmsPbs, |
TextureGpuManager * | textureGpuManager | ||
) |
Ogre::LightProfiles::~LightProfiles | ( | ) |
Assigns the given profile to the light.
Use either:
To unset any profile
void Ogre::LightProfiles::build | ( | ) |
After you're done with all your loadIesProfile calls, call this function to generate the texture required for rendering.
You can call LightProfiles::assignProfile before calling build
Returns the profile associated with the name. Nullptr if not found.
Returns the profile associated with the light.
Nullptr if none Assumes the light's profile was created by 'this'
Returns the name of the profile associated with the light.
Empty if none Assumes the light's profile was created by 'this'
void Ogre::LightProfiles::loadIesProfile | ( | const String & | filename, |
const String & | resourceGroup, | ||
bool | throwOnDuplicate = true |
||
) |
Loads an IES (Illuminating Engineering Society) profile to memory.
When trying to load an IES file that is already loaded, if throwOnDuplicate = false then this function does nothing