载入中...
搜索中...
未找到
eve::graphics::Light2D类 参考

Declarative 2D light. Collected by RenderSystem (max 8 per canvas/frame). type: "point" | "dir" (≤15 chars). 更多...

#include <Light.h>

类 eve::graphics::Light2D 继承关系图:

struct  Data
 

Public 成员函数

void release () override
 
void setType (const std::string &type)
 
std::string getType ()
 
void setPosition (float x, float y)
 
float getX ()
 
float getY ()
 
void setDirection (float dx, float dy)
 
float getDirX ()
 
float getDirY ()
 
void setColor (float r, float g, float b, float intensity=1.f)
 
void setRadius (float radius)
 
float getRadius ()
 
void setEnabled (bool enabled)
 
bool isEnabled ()
 
void setVolumetric (bool enabled)
 
bool getVolumetric ()
 
void setVolumetricIntensity (float intensity)
 
float getVolumetricIntensity ()
 
void setCanvas (Canvas *canvas)
 

静态 Public 成员函数

static Light2DcreateLight (const std::string &type="point")
 

详细描述

Declarative 2D light. Collected by RenderSystem (max 8 per canvas/frame). type: "point" | "dir" (≤15 chars).

在文件 Light.h31 行定义.

成员函数说明

◆ createLight()

Light2D * eve::graphics::Light2D::createLight ( const std::string &  type = "point")
static

在文件 Light.cpp5 行定义.

引用了 setType() , 以及 type.

被这些函数引用 eve::particles::ParticleLightSystem::update().

◆ getDirX()

float eve::graphics::Light2D::getDirX ( )

在文件 Light.cpp36 行定义.

引用了 data.

◆ getDirY()

float eve::graphics::Light2D::getDirY ( )

在文件 Light.cpp37 行定义.

引用了 data.

◆ getRadius()

float eve::graphics::Light2D::getRadius ( )

在文件 Light.cpp48 行定义.

引用了 data.

◆ getType()

std::string eve::graphics::Light2D::getType ( )

在文件 Light.cpp21 行定义.

引用了 data.

◆ getVolumetric()

bool eve::graphics::Light2D::getVolumetric ( )

在文件 Light.cpp54 行定义.

引用了 data.

◆ getVolumetricIntensity()

float eve::graphics::Light2D::getVolumetricIntensity ( )

在文件 Light.cpp59 行定义.

引用了 data.

◆ getX()

float eve::graphics::Light2D::getX ( )

在文件 Light.cpp28 行定义.

引用了 data.

◆ getY()

float eve::graphics::Light2D::getY ( )

在文件 Light.cpp29 行定义.

引用了 data.

◆ isEnabled()

bool eve::graphics::Light2D::isEnabled ( )

在文件 Light.cpp51 行定义.

引用了 data.

◆ release()

void eve::graphics::Light2D::release ( )
inlineoverride

在文件 Light.h35 行定义.

◆ setCanvas()

void eve::graphics::Light2D::setCanvas ( Canvas canvas)

在文件 Light.cpp61 行定义.

引用了 data.

被这些函数引用 eve::particles::ParticleLightSystem::update().

◆ setColor()

void eve::graphics::Light2D::setColor ( float  r,
float  g,
float  b,
float  intensity = 1.f 
)

在文件 Light.cpp39 行定义.

引用了 b, d , 以及 data.

被这些函数引用 eve::particles::ParticleLightSystem::update().

◆ setDirection()

void eve::graphics::Light2D::setDirection ( float  dx,
float  dy 
)

在文件 Light.cpp31 行定义.

引用了 data.

◆ setEnabled()

void eve::graphics::Light2D::setEnabled ( bool  enabled)

在文件 Light.cpp50 行定义.

引用了 data , 以及 enabled.

被这些函数引用 eve::particles::ParticleLightSystem::update().

◆ setPosition()

void eve::graphics::Light2D::setPosition ( float  x,
float  y 
)

在文件 Light.cpp23 行定义.

引用了 data, x , 以及 y.

被这些函数引用 eve::particles::ParticleLightSystem::update().

◆ setRadius()

void eve::graphics::Light2D::setRadius ( float  radius)

在文件 Light.cpp47 行定义.

引用了 data.

被这些函数引用 eve::particles::ParticleLightSystem::update().

◆ setType()

void eve::graphics::Light2D::setType ( const std::string &  type)

在文件 Light.cpp13 行定义.

引用了 d, data , 以及 type.

被这些函数引用 createLight().

◆ setVolumetric()

void eve::graphics::Light2D::setVolumetric ( bool  enabled)

在文件 Light.cpp53 行定义.

引用了 data , 以及 enabled.

◆ setVolumetricIntensity()

void eve::graphics::Light2D::setVolumetricIntensity ( float  intensity)

在文件 Light.cpp56 行定义.

引用了 data.


该类的文档由以下文件生成: