Rise
The Vieneo Province
Toggle main menu visibility
Loading...
Searching...
No Matches
cockpit.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <WinSock2.h>
4
#include <WS2tcpip.h>
5
#include <Windows.h>
6
#include "
../Rendering/ClientRuntime11.h
"
7
#include "
../Logger.h
"
8
#include "
../PropAudio.h
"
9
#include "
CockpitLightning.h
"
10
#include <memory>
11
#include <vector>
12
13
class
Viewscreen
;
14
namespace
SparkoProp
{
class
Controller
;
class
TraceFile
; }
15
16
class
cockpit
17
{
18
public
:
19
cockpit
(
Viewscreen
* ptr);
20
~cockpit
();
21
22
void
Load
(
unsigned
char
newType)
const
;
23
void
RefreshExternalCameras
()
const
;
24
void
CacheEngineSounds
(
bool
useExteriorModel)
const
;
25
bool
UsesParentExternalCameras
()
const
{
return
externalCameraUsesParent
; }
26
void
FrameMove
(
float
fElapsedTime)
const
;
27
void
ResetProps
(
const
char
* reason)
const
;
28
void
FrameMovePropSounds
(
float
elapsedTime)
const
;
29
// excludes !visible and windshield type and HUD type
30
void
Render
(
Rendering::RenderDevice
* pd3dDevice,
const
LocalLightning::Frame
& strike = {})
const
;
31
void
OnLostDevice
()
const
;
32
HRESULT
OnResetDevice
(Rendering::RenderDevice* pd3dDevice)
const
;
33
void
ResetHelp
()
const
;
34
35
private
:
36
Viewscreen
*
viewscreen
;
37
Logger
*
logger
;
38
mutable
CockpitLightning::Apertures
lightningWindows
;
39
struct
DisplayDraw
{ UINT
startvertex
,
primitives
; DirectX::XMFLOAT4
bounds
; };
40
mutable
std::vector<std::vector<DisplayDraw>>
displayDraws
;
41
mutable
std::unique_ptr<SparkoProp::Controller>
sparkoProp
;
42
mutable
PropAudio::State
propAudio
;
43
// Define SparkoPhysicsLog project-wide to enable local per-frame CSV capture.
44
#ifdef SparkoPhysicsLog
45
mutable
std::unique_ptr<SparkoProp::TraceFile> sparkoTrace;
46
#endif
47
mutable
unsigned
char
externalCameraVehicleType
= 0;
48
mutable
bool
externalCameraUsesParent
=
false
;
49
50
RiseMath::Matrix
ComputeSimulatorMotion
(
unsigned
char
ordinal,
float
fElapsedTime)
const
;
51
};
ClientRuntime11.h
CockpitLightning.h
HRESULT
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
Logger.h
PropAudio.h
CockpitLightning::Apertures
Definition
CockpitLightning.h:21
Logger
Definition
Logger.h:11
PropAudio::State
Definition
PropAudio.h:15
Rendering::RenderDevice
Definition
ClientRenderer11.h:92
SparkoProp::Controller
Definition
SparkoProp.h:27
SparkoProp::TraceFile
Definition
SparkoTrace.h:18
Viewscreen
Definition
Viewscreen.h:48
cockpit::ResetHelp
void ResetHelp() const
Definition
cockpit.cpp:4664
cockpit::externalCameraUsesParent
bool externalCameraUsesParent
Definition
cockpit.h:48
cockpit::sparkoProp
std::unique_ptr< SparkoProp::Controller > sparkoProp
Definition
cockpit.h:41
cockpit::displayDraws
std::vector< std::vector< DisplayDraw > > displayDraws
Definition
cockpit.h:40
cockpit::Load
void Load(unsigned char newType) const
Definition
cockpit.cpp:216
cockpit::Render
void Render(Rendering::RenderDevice *pd3dDevice, const LocalLightning::Frame &strike={}) const
Definition
cockpit.cpp:2586
cockpit::logger
Logger * logger
Definition
cockpit.h:37
cockpit::~cockpit
~cockpit()
cockpit::ResetProps
void ResetProps(const char *reason) const
Definition
cockpit.cpp:25
cockpit::viewscreen
Viewscreen * viewscreen
Definition
cockpit.h:36
cockpit::UsesParentExternalCameras
bool UsesParentExternalCameras() const
Definition
cockpit.h:25
cockpit::ComputeSimulatorMotion
RiseMath::Matrix ComputeSimulatorMotion(unsigned char ordinal, float fElapsedTime) const
Definition
cockpit.cpp:4839
cockpit::externalCameraVehicleType
unsigned char externalCameraVehicleType
Definition
cockpit.h:47
cockpit::cockpit
cockpit(Viewscreen *ptr)
Definition
cockpit.cpp:17
cockpit::FrameMovePropSounds
void FrameMovePropSounds(float elapsedTime) const
Definition
cockpit.cpp:36
cockpit::RefreshExternalCameras
void RefreshExternalCameras() const
Definition
cockpit.cpp:65
cockpit::FrameMove
void FrameMove(float fElapsedTime) const
Definition
cockpit.cpp:2202
cockpit::OnResetDevice
HRESULT OnResetDevice(Rendering::RenderDevice *pd3dDevice) const
Definition
cockpit.cpp:3545
cockpit::CacheEngineSounds
void CacheEngineSounds(bool useExteriorModel) const
Definition
cockpit.cpp:189
cockpit::lightningWindows
CockpitLightning::Apertures lightningWindows
Definition
cockpit.h:38
cockpit::OnLostDevice
void OnLostDevice() const
Definition
cockpit.cpp:3457
cockpit::propAudio
PropAudio::State propAudio
Definition
cockpit.h:42
SparkoProp
Definition
SparkoProp.h:7
LocalLightning::Frame
Definition
LocalLightning.h:26
RiseMath::Matrix
Definition
ClientMath.h:80
cockpit::DisplayDraw
Definition
cockpit.h:39
cockpit::DisplayDraw::startvertex
UINT startvertex
Definition
cockpit.h:39
cockpit::DisplayDraw::bounds
DirectX::XMFLOAT4 bounds
Definition
cockpit.h:39
cockpit::DisplayDraw::primitives
UINT primitives
Definition
cockpit.h:39
Viewscreen
cockpit.h
Generated on
for Rise by
1.18.0