![]() |
CMGDK r49-rc2
|
下雨效果模拟类 更多...
#include <Rain.h>
组合类型 | |
struct | RainParticle |
公有成员 | |
Rain (int=300, float=50, float=-0.5, float=5, float=5) | |
本类构造函数 | |
~Rain () | |
本类析构函数 | |
void | Start () |
开始下雨 | |
void | End (bool=false) |
停止下雨 | |
void | Clear () |
清除雨点 | |
void | Draw () |
绘制雨 | |
公有属性 | |
RectScope2f | Scope |
显示范围 | |
int | RainMax |
雨量 | |
float | RainLength |
雨滴线长 | |
int | Speed |
落体速度 | |
Vertex2f | Wind |
风力 | |
Color4f | Color [2] |
雨的颜色 |
下雨效果模拟类
非写实效果的简单下雨模拟
hgl::GraphicsEffect::Rain::Rain | ( | int | rain_max = 300 , |
float | rain_length = 50 , |
||
float | ws_x = -0.5 , |
||
float | ws_y = 5 , |
||
float | speed = 5 |
||
) |
本类构造函数
本类构造函数
rain_max | 最大雨量 rain_length 雨滴线长 |
ws_x,ws_y | 风吹动会引起的偏移方向 |
speed | 落体速度 |
hgl::GraphicsEffect::Rain::~Rain | ( | ) |
本类析构函数
void hgl::GraphicsEffect::Rain::Clear | ( | ) |
清除雨点
void hgl::GraphicsEffect::Rain::Draw | ( | ) | [virtual] |
绘制雨
void hgl::GraphicsEffect::Rain::End | ( | bool | ad = false | ) |
停止下雨
结束下雨
ad | 下完后是否自动销毁 |
void hgl::GraphicsEffect::Rain::Start | ( | ) |
开始下雨
雨滴线长