This is the documentation for Enlighten.

namespace Enlighten InputLightingValidation

Enlighten::InputLightingValidation

Static checking functionality.

Validates that the light types are correctly formed.

Classes

Name Description
Enlighten::InputLightingValidation::CheckForMalformedLightTypes

Template class to ensure that the light classes are correctly formed.

Enlighten::InputLightingValidation::CheckForMalformedLightTypes< LIGHT_TYPE_INVALID >

Check for malformed light types.

Enlighten::InputLightingValidation::Host

Host.

Enlighten::InputLightingValidation::InheritsFromInputLightBase

Check that a light type inherits from InputLightBase.

Enlighten::InputLightingValidation::IsBaseOf

Checks for inheritance.

Enlighten::InputLightingValidation::IsMultipleOf16

Check that a light type size is a multiple of 16.

Typedefs

Name Description
char(& no)[2]

No.

char(& yes)[1]

Yes.

Variables

Name Description
const bool isValid = CheckForMalformedLightTypes<LIGHT_TYPE_NUM_TYPES-1>::Check()

We want to verify at compile-time that all the light classes are correctly formed, so thats what we do here.