Otclient 1.0  14/8/2020
LightView Class Reference

#include <lightview.h>

Inheritance diagram for LightView:
Collaboration diagram for LightView:

Public Member Functions

 LightView ()
 
void reset ()
 
void setGlobalLight (const Light &light)
 
void addLightSource (const Point &center, float scaleFactor, const Light &light)
 
void resize (const Size &size)
 
void draw (const Rect &dest, const Rect &src)
 
void setBlendEquation (Painter::BlendEquation blendEquation)
 
void requestDrawing (const bool force)
 
bool isDark () const
 
- Public Member Functions inherited from LuaObject
 LuaObject ()
 
virtual ~LuaObject ()
 
template<typename T >
void connectLuaField (const std::string &field, const std::function< T > &f, bool pushFront=false)
 
template<typename... T>
int luaCallLuaField (const std::string &field, const T &... args)
 
template<typename R , typename... T>
callLuaField (const std::string &field, const T &... args)
 
template<typename... T>
void callLuaField (const std::string &field, const T &... args)
 
bool hasLuaField (const std::string &field)
 Returns true if the lua field exists. More...
 
template<typename T >
void setLuaField (const std::string &key, const T &value)
 Sets a field in this lua object. More...
 
template<typename T >
getLuaField (const std::string &key)
 Gets a field from this lua object. More...
 
void releaseLuaFieldsTable ()
 Release fields table reference. More...
 
void luaSetField (const std::string &key)
 Sets a field from this lua object, the value must be on the stack. More...
 
void luaGetField (const std::string &key)
 Gets a field from this lua object, the result is pushed onto the stack. More...
 
void luaGetMetatable ()
 Get object's metatable. More...
 
void luaGetFieldsTable ()
 Gets the table containing all stored fields of this lua object, the result is pushed onto the stack. More...
 
int getUseCount ()
 
std::string getClassName ()
 Returns the derived class name, its the same name used in Lua. More...
 
LuaObjectPtr asLuaObject ()
 
void operator= (const LuaObject &)
 
- Public Member Functions inherited from stdext::shared_object
 shared_object ()
 
virtual ~shared_object ()
 
void add_ref ()
 
void dec_ref ()
 
refcount_t ref_count ()
 
template<typename T >
stdext::shared_object_ptr< T > static_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > dynamic_self_cast ()
 
template<typename T >
stdext::shared_object_ptr< T > const_self_cast ()
 

Detailed Description

Definition at line 37 of file lightview.h.

Constructor & Destructor Documentation

◆ LightView()

LightView::LightView ( )

Definition at line 35 of file lightview.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ addLightSource()

void LightView::addLightSource ( const Point center,
float  scaleFactor,
const Light light 
)

Definition at line 80 of file lightview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ draw()

void LightView::draw ( const Rect dest,
const Rect src 
)

Definition at line 134 of file lightview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isDark()

bool LightView::isDark ( ) const
inline

Definition at line 51 of file lightview.h.

Here is the caller graph for this function:

◆ requestDrawing()

void LightView::requestDrawing ( const bool  force)
inline

Definition at line 49 of file lightview.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reset()

void LightView::reset ( )

Definition at line 70 of file lightview.cpp.

Here is the caller graph for this function:

◆ resize()

void LightView::resize ( const Size size)

Definition at line 129 of file lightview.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setBlendEquation()

void LightView::setBlendEquation ( Painter::BlendEquation  blendEquation)
inline

Definition at line 48 of file lightview.h.

Here is the caller graph for this function:

◆ setGlobalLight()

void LightView::setGlobalLight ( const Light light)

Definition at line 75 of file lightview.cpp.

Here is the caller graph for this function:

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