Rise
The Vieneo Province
Loading...
Searching...
No Matches
ExteriorRain11.h
Go to the documentation of this file.
1#pragma once
2#include "CloudRenderer11.h"
4
5namespace Rendering
6{
8 {
9 public:
10 using Vector=DirectX::XMFLOAT3;
11 using Color=DirectX::XMFLOAT4;
12 using Matrix=DirectX::XMFLOAT4X4;
14 HRESULT Initialize(ID3D11Device* device,const std::filesystem::path& shaderDirectory={});
15 void Reset();
16 bool Ready() const {return vertices && indices;}
17 void Update(float elapsed,const Parameters& parameters,const Matrix& localToWorld);
18 HRESULT Render(ID3D11DeviceContext* context,ID3D11RenderTargetView* scene,const SceneDepth11& depth,
19 const D3D11_VIEWPORT& viewport,const Matrix& view,const Matrix& projection,CloudRenderer11* clouds=nullptr);
20 unsigned DropCount() const {return count;}
21 const Color* Offsets() const {return offsets;}
22 private:
24 Microsoft::WRL::ComPtr<ID3D11Buffer> vertices,indices;
26 double phases[4][3]{};
28 unsigned count=0;
29 };
30}
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
Microsoft::WRL::ComPtr< ID3D11Buffer > vertices
unsigned DropCount() const
DirectX::XMFLOAT4 Color
HRESULT Initialize(ID3D11Device *device, const std::filesystem::path &shaderDirectory={})
Microsoft::WRL::ComPtr< ID3D11Buffer > indices
ExteriorRain::BasicParameters< Vector, Color > Parameters
HRESULT Render(ID3D11DeviceContext *context, ID3D11RenderTargetView *scene, const SceneDepth11 &depth, const D3D11_VIEWPORT &viewport, const Matrix &view, const Matrix &projection, CloudRenderer11 *clouds=nullptr)
DirectX::XMFLOAT3 Vector
DirectX::XMFLOAT4X4 Matrix
const Color * Offsets() const
void Update(float elapsed, const Parameters &parameters, const Matrix &localToWorld)
DirectX::XMFLOAT4X4 Matrix
Definition Math11.h:9