#include <MagicFlower.h>

Public Member Functions | |
| CMagicFlower () | |
| Standard constructor. | |
| ~CMagicFlower () | |
| Standard destructor. | |
| bool | Load (HWND hWnd, LPDIRECT3DDEVICE9 pd3dDevice, WCHAR *strFilePath, WCHAR *strFileName, D3DCOLOR color) |
| Loads static flower model and particle flame. | |
| void | OnLostDevice () |
| Its important to call this function BEFORE device is reset, like when switching to/from fullscreen mode. | |
| void | OnResetDevice (LPDIRECT3DDEVICE9 pd3dDevice) |
| Its important to call this function AFTER device is reset, like when switching to/from fullscreen mode. | |
| void | OnRender (LPDIRECT3DDEVICE9 pd3dDevice) |
| Render function renders static flower model. | |
| void | OnFrameMove (LPDIRECT3DDEVICE9 pd3dDevice, float elapsed) |
| Move function rotates flower model to the left and right. It also animates particle flame. | |
Magic flowers are static models with particle flame above them.
| CMagicFlower::CMagicFlower | ( | ) |
Standard constructor.
| CMagicFlower::~CMagicFlower | ( | ) |
Standard destructor.
| bool CMagicFlower::Load | ( | HWND | hWnd, | |
| LPDIRECT3DDEVICE9 | pd3dDevice, | |||
| WCHAR * | strFilePath, | |||
| WCHAR * | strFileName, | |||
| D3DCOLOR | color | |||
| ) |
Loads static flower model and particle flame.
| color | - color of magic flame above flower |
| void CMagicFlower::OnLostDevice | ( | ) |
Its important to call this function BEFORE device is reset, like when switching to/from fullscreen mode.
| void CMagicFlower::OnResetDevice | ( | LPDIRECT3DDEVICE9 | pd3dDevice | ) |
Its important to call this function AFTER device is reset, like when switching to/from fullscreen mode.
| void CMagicFlower::OnRender | ( | LPDIRECT3DDEVICE9 | pd3dDevice | ) |
Render function renders static flower model.
| void CMagicFlower::OnFrameMove | ( | LPDIRECT3DDEVICE9 | pd3dDevice, | |
| float | elapsed | |||
| ) |
Move function rotates flower model to the left and right. It also animates particle flame.
1.5.3