载入中...
搜索中...
未找到
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 Light2D * | createLight (const std::string &type="point") |
详细描述
Declarative 2D light. Collected by RenderSystem (max 8 per canvas/frame). type: "point" | "dir" (≤15 chars).
成员函数说明
◆ createLight()
|
static |
◆ getDirX()
◆ getDirY()
◆ getRadius()
◆ getType()
◆ getVolumetric()
◆ getVolumetricIntensity()
◆ getX()
◆ getY()
◆ isEnabled()
◆ release()
◆ setCanvas()
| void eve::graphics::Light2D::setCanvas | ( | Canvas * | canvas | ) |
◆ setColor()
| void eve::graphics::Light2D::setColor | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float | intensity = 1.f |
||
| ) |
◆ setDirection()
◆ setEnabled()
| void eve::graphics::Light2D::setEnabled | ( | bool | enabled | ) |
◆ setPosition()
| void eve::graphics::Light2D::setPosition | ( | float | x, |
| float | y | ||
| ) |
◆ setRadius()
| void eve::graphics::Light2D::setRadius | ( | float | radius | ) |
◆ setType()
| void eve::graphics::Light2D::setType | ( | const std::string & | type | ) |
◆ setVolumetric()
| void eve::graphics::Light2D::setVolumetric | ( | bool | enabled | ) |
◆ setVolumetricIntensity()
| void eve::graphics::Light2D::setVolumetricIntensity | ( | float | intensity | ) |
该类的文档由以下文件生成: