Rise
The Vieneo Province
Loading...
Searching...
No Matches
RunwayLights11.h
Go to the documentation of this file.
1#pragma once
2#include "DrawContext11.h"
3#include <vector>
4
5namespace Rendering
6{
7 // Positions are relative to the player's origin, in the same kilometers
8 // as the scene. Intensity includes night fade, fog and cloud transmission.
10 {
11 DirectX::XMFLOAT3 position;
13 };
14
16 {
17 public:
18 void Reset();
19 HRESULT Draw(DrawContext11& draws,ID3D11ShaderResourceView* groundLightTexture,
20 const std::vector<RunwayLightInstance11>& lights);
21 private:
22 HRESULT Initialize(ID3D11Device* native);
23 Microsoft::WRL::ComPtr<ID3D11Device> device;
24 Microsoft::WRL::ComPtr<ID3D11Buffer> instances;
25 Microsoft::WRL::ComPtr<ID3D11SamplerState> sampler;
28 UINT capacity=0;
29 };
30}
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
HRESULT Initialize(ID3D11Device *native)
Microsoft::WRL::ComPtr< ID3D11Device > device
Microsoft::WRL::ComPtr< ID3D11SamplerState > sampler
HRESULT Draw(DrawContext11 &draws, ID3D11ShaderResourceView *groundLightTexture, const std::vector< RunwayLightInstance11 > &lights)
Microsoft::WRL::ComPtr< ID3D11Buffer > instances