Avionics
Dropship Simulator
Screen Class Reference

#include <Screen.h>

Collaboration diagram for Screen:
[legend]

Public Member Functions

void Initialize (Logger *, WINDOW_OBJECT *, ID3DX10Font *)
 
void Render (float fElapsed)
 
void Present () const
 
void DestroyDevice ()
 

Public Attributes

int currentPage = 0
 
std::vector< Pagepages
 
D3DXMATRIX matProjection
 
D3DXMATRIX matView
 
bool initialized = false
 
std::string name
 config items More...
 
UINT adapter
 
UINT window
 
bool flip = false
 

Private Attributes

Loggerlogger = nullptr
 
D3D10_VIEWPORT viewport
 
WINDOW_OBJECTpWindow = nullptr
 
ID3DX10Font * pFont = nullptr
 
ID3D10RasterizerState * state = nullptr
 

Detailed Description

Definition at line 6 of file Screen.h.

Member Function Documentation

◆ DestroyDevice()

void Screen::DestroyDevice ( )
inline

Definition at line 35 of file Screen.h.

◆ Initialize()

void Screen::Initialize ( Logger prmLogger,
WINDOW_OBJECT prmpWindow,
ID3DX10Font *  prmFont 
)

Definition at line 3 of file Screen.cpp.

◆ Present()

void Screen::Present ( ) const
inline

Definition at line 30 of file Screen.h.

Here is the caller graph for this function:

◆ Render()

void Screen::Render ( float  fElapsed)
Todo:
probably need to read command stream from bus here in a FrameMove method to change pages

Send the sprites to the hardware if we are using buffered drawing

Finish up

Definition at line 52 of file Screen.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ adapter

UINT Screen::adapter

Definition at line 24 of file Screen.h.

◆ currentPage

int Screen::currentPage = 0

Definition at line 16 of file Screen.h.

◆ flip

bool Screen::flip = false

Definition at line 25 of file Screen.h.

◆ initialized

bool Screen::initialized = false

Definition at line 20 of file Screen.h.

◆ logger

Logger* Screen::logger = nullptr
private

Definition at line 9 of file Screen.h.

◆ matProjection

D3DXMATRIX Screen::matProjection

Definition at line 18 of file Screen.h.

◆ matView

D3DXMATRIX Screen::matView

Definition at line 19 of file Screen.h.

◆ name

std::string Screen::name

config items

Definition at line 23 of file Screen.h.

◆ pages

std::vector<Page> Screen::pages

Definition at line 17 of file Screen.h.

◆ pFont

ID3DX10Font* Screen::pFont = nullptr
private

Definition at line 12 of file Screen.h.

◆ pWindow

WINDOW_OBJECT* Screen::pWindow = nullptr
private

Definition at line 11 of file Screen.h.

◆ state

ID3D10RasterizerState* Screen::state = nullptr
private

Definition at line 13 of file Screen.h.

◆ viewport

D3D10_VIEWPORT Screen::viewport
private

Definition at line 10 of file Screen.h.

◆ window

UINT Screen::window

Definition at line 24 of file Screen.h.


The documentation for this class was generated from the following files: