OpenGothic
Open source reimplementation of Gothic I and II
Loading...
Searching...
No Matches
LightSource Class Referencefinal

#include <lightsource.h>

Public Member Functions

 LightSource ()
 
Tempest::Vec3 dir () const
 
void setDir (const Tempest::Vec3 &d)
 
void setDir (float x, float y, float z)
 
const Tempest::Vec3 & color () const
 
void setColor (const Tempest::Vec3 &cl)
 
void setColor (const std::vector< uint32_t > &cl, float fps, bool smooth)
 
void setColor (const std::vector< zenkit::Color > &cl, float fps, bool smooth)
 
void setColor (const std::vector< Tempest::Vec3 > &cl, float fps, bool smooth)
 
void setPosition (const Tempest::Vec3 &p)
 
const Tempest::Vec3 & position () const
 
float range () const
 
void setRange (float r)
 
void setRange (const std::vector< float > &rangeAniScale, float base, float fps, bool smooth)
 
void setEnabled (bool e)
 
void update (uint64_t time)
 
bool isDynamic () const
 
bool isEnabled () const
 
float currentRange () const
 
const Tempest::Vec3 & currentColor () const
 
void setTimeOffset (uint64_t t)
 
uint64_t effectPrefferedTime () const
 
void setDebugName (std::string_view hint)
 
std::string_view debugName () const
 

Detailed Description

Definition at line 8 of file lightsource.h.

Constructor & Destructor Documentation

◆ LightSource()

LightSource::LightSource ( )

Definition at line 13 of file lightsource.cpp.

Member Function Documentation

◆ color()

const Tempest::Vec3 & LightSource::color ( ) const
inline

Definition at line 16 of file lightsource.h.

◆ currentColor()

const Tempest::Vec3 & LightSource::currentColor ( ) const
inline

Definition at line 35 of file lightsource.h.

◆ currentRange()

float LightSource::currentRange ( ) const
inline

Definition at line 34 of file lightsource.h.

◆ debugName()

std::string_view LightSource::debugName ( ) const

Definition at line 165 of file lightsource.cpp.

◆ dir()

Tempest::Vec3 LightSource::dir ( ) const
inline

Definition at line 12 of file lightsource.h.

◆ effectPrefferedTime()

uint64_t LightSource::effectPrefferedTime ( ) const

Definition at line 151 of file lightsource.cpp.

◆ isDynamic()

bool LightSource::isDynamic ( ) const

Definition at line 139 of file lightsource.cpp.

◆ isEnabled()

bool LightSource::isEnabled ( ) const

Definition at line 143 of file lightsource.cpp.

◆ position()

const Tempest::Vec3 & LightSource::position ( ) const
inline

Definition at line 23 of file lightsource.h.

◆ range()

float LightSource::range ( ) const
inline

Definition at line 25 of file lightsource.h.

◆ setColor() [1/4]

void LightSource::setColor ( const std::vector< Tempest::Vec3 > &  cl,
float  fps,
bool  smooth 
)

◆ setColor() [2/4]

void LightSource::setColor ( const std::vector< uint32_t > &  cl,
float  fps,
bool  smooth 
)

Definition at line 35 of file lightsource.cpp.

◆ setColor() [3/4]

void LightSource::setColor ( const std::vector< zenkit::Color > &  cl,
float  fps,
bool  smooth 
)

Definition at line 49 of file lightsource.cpp.

◆ setColor() [4/4]

void LightSource::setColor ( const Tempest::Vec3 &  cl)

◆ setDebugName()

void LightSource::setDebugName ( std::string_view  hint)

Definition at line 157 of file lightsource.cpp.

◆ setDir() [1/2]

void LightSource::setDir ( const Tempest::Vec3 &  d)

Definition at line 16 of file lightsource.cpp.

◆ setDir() [2/2]

void LightSource::setDir ( float  x,
float  y,
float  z 
)

Definition at line 25 of file lightsource.cpp.

◆ setEnabled()

void LightSource::setEnabled ( bool  e)

Definition at line 103 of file lightsource.cpp.

◆ setPosition()

void LightSource::setPosition ( const Tempest::Vec3 &  p)
inline

Definition at line 22 of file lightsource.h.

◆ setRange() [1/2]

void LightSource::setRange ( const std::vector< float > &  rangeAniScale,
float  base,
float  fps,
bool  smooth 
)

Definition at line 85 of file lightsource.cpp.

◆ setRange() [2/2]

void LightSource::setRange ( float  r)

Definition at line 79 of file lightsource.cpp.

◆ setTimeOffset()

void LightSource::setTimeOffset ( uint64_t  t)

Definition at line 147 of file lightsource.cpp.

◆ update()

void LightSource::update ( uint64_t  time)

Definition at line 107 of file lightsource.cpp.


The documentation for this class was generated from the following files: