Rise
The Vieneo Province
Loading...
Searching...
No Matches
Rendering::Window11 Class Reference

#include <Window11.h>

Collaboration diagram for Rendering::Window11:
[legend]

Classes

struct  Callbacks

Public Member Functions

HRESULT Create (const WindowOptions11 &options, Callbacks callbacks)
int Run ()
HRESULT Frame ()
HRESULT Resize (UINT width, UINT height)
HRESULT RecreateDevice ()
HRESULT SetFullscreen (bool value)
HRESULT SetSamples (UINT samples)
void SetVSync (bool value)
bool VSync () const
void Close (int result=0)
void StopCallbacksAndWindow ()
void Destroy ()
 ~Window11 ()
HWND Handle () const
Device11 & Device ()
DrawContext11 & Draws ()
bool Fullscreen () const
bool Recovering () const
bool Suspended () const
double Time () const
void ResetFrameClock ()
void ResetClock ()
float FPS () const
const std::string & Status () const

Private Member Functions

LRESULT Message (HWND, UINT, WPARAM, LPARAM)
HRESULT CreateDevice ()
HRESULT Failure (const char *operation, HRESULT result)

Static Private Member Functions

static LRESULT CALLBACK Procedure (HWND, UINT, WPARAM, LPARAM)

Private Attributes

WindowOptions11 options
Callbacks callbacks
HWND window =nullptr
Device11 device
DrawContext11 draws
LARGE_INTEGER frequency {}
LARGE_INTEGER started {}
LARGE_INTEGER previous {}
double fpsStart =0
unsigned frames =0
float fps =0
UINT width =0
UINT height =0
int exitCode =0
bool initialized =false
bool running =false
bool minimized =false
bool fullscreen =false
bool creating =false
bool inFrame =false
bool occluded =false
bool callbacksLive =false
bool recovering =false
std::string status

Detailed Description

Definition at line 18 of file Window11.h.

Constructor & Destructor Documentation

◆ ~Window11()

Rendering::Window11::~Window11 ( )
inline

Definition at line 49 of file Window11.h.

Here is the call graph for this function:

Member Function Documentation

◆ Close()

void Rendering::Window11::Close ( int result = 0)

Definition at line 216 of file Window11.cpp.

Here is the caller graph for this function:

◆ Create()

HRESULT Rendering::Window11::Create ( const WindowOptions11 & options,
Callbacks callbacks )

Definition at line 24 of file Window11.cpp.

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

◆ CreateDevice()

HRESULT Rendering::Window11::CreateDevice ( )
private

Definition at line 61 of file Window11.cpp.

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

◆ Destroy()

void Rendering::Window11::Destroy ( )

Definition at line 234 of file Window11.cpp.

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

◆ Device()

Device11 & Rendering::Window11::Device ( )
inline

Definition at line 51 of file Window11.h.

◆ Draws()

DrawContext11 & Rendering::Window11::Draws ( )
inline

Definition at line 52 of file Window11.h.

Here is the caller graph for this function:

◆ Failure()

HRESULT Rendering::Window11::Failure ( const char * operation,
HRESULT result )
private

Definition at line 13 of file Window11.cpp.

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

◆ FPS()

float Rendering::Window11::FPS ( ) const
inline

Definition at line 59 of file Window11.h.

◆ Frame()

HRESULT Rendering::Window11::Frame ( )

Definition at line 129 of file Window11.cpp.

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

◆ Fullscreen()

bool Rendering::Window11::Fullscreen ( ) const
inline

Definition at line 53 of file Window11.h.

◆ Handle()

HWND Rendering::Window11::Handle ( ) const
inline

Definition at line 50 of file Window11.h.

Here is the caller graph for this function:

◆ Message()

LRESULT Rendering::Window11::Message ( HWND handle,
UINT message,
WPARAM wParam,
LPARAM lParam )
private

Definition at line 253 of file Window11.cpp.

Here is the call graph for this function:

◆ Procedure()

LRESULT CALLBACK Rendering::Window11::Procedure ( HWND handle,
UINT message,
WPARAM wParam,
LPARAM lParam )
staticprivate

Definition at line 238 of file Window11.cpp.

Here is the caller graph for this function:

◆ Recovering()

bool Rendering::Window11::Recovering ( ) const
inline

Definition at line 54 of file Window11.h.

Here is the caller graph for this function:

◆ RecreateDevice()

HRESULT Rendering::Window11::RecreateDevice ( )

Definition at line 105 of file Window11.cpp.

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

◆ ResetClock()

void Rendering::Window11::ResetClock ( )
inline

Definition at line 58 of file Window11.h.

Here is the caller graph for this function:

◆ ResetFrameClock()

void Rendering::Window11::ResetFrameClock ( )
inline

Definition at line 57 of file Window11.h.

Here is the caller graph for this function:

◆ Resize()

HRESULT Rendering::Window11::Resize ( UINT width,
UINT height )

Definition at line 74 of file Window11.cpp.

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

◆ Run()

int Rendering::Window11::Run ( )

Definition at line 199 of file Window11.cpp.

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

◆ SetFullscreen()

HRESULT Rendering::Window11::SetFullscreen ( bool value)

Definition at line 120 of file Window11.cpp.

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

◆ SetSamples()

HRESULT Rendering::Window11::SetSamples ( UINT samples)

Definition at line 90 of file Window11.cpp.

Here is the call graph for this function:

◆ SetVSync()

void Rendering::Window11::SetVSync ( bool value)
inline

Definition at line 42 of file Window11.h.

◆ Status()

const std::string & Rendering::Window11::Status ( ) const
inline

Definition at line 60 of file Window11.h.

◆ StopCallbacksAndWindow()

void Rendering::Window11::StopCallbacksAndWindow ( )

Definition at line 220 of file Window11.cpp.

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

◆ Suspended()

bool Rendering::Window11::Suspended ( ) const
inline

Definition at line 55 of file Window11.h.

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

◆ Time()

double Rendering::Window11::Time ( ) const

Definition at line 19 of file Window11.cpp.

Here is the caller graph for this function:

◆ VSync()

bool Rendering::Window11::VSync ( ) const
inline

Definition at line 43 of file Window11.h.

Member Data Documentation

◆ callbacks

Callbacks Rendering::Window11::callbacks
private

Definition at line 67 of file Window11.h.

◆ callbacksLive

bool Rendering::Window11::callbacksLive =false
private

Definition at line 78 of file Window11.h.

◆ creating

bool Rendering::Window11::creating =false
private

Definition at line 77 of file Window11.h.

◆ device

Device11 Rendering::Window11::device
private

Definition at line 69 of file Window11.h.

◆ draws

DrawContext11 Rendering::Window11::draws
private

Definition at line 70 of file Window11.h.

◆ exitCode

int Rendering::Window11::exitCode =0
private

Definition at line 76 of file Window11.h.

◆ fps

float Rendering::Window11::fps =0
private

Definition at line 74 of file Window11.h.

◆ fpsStart

double Rendering::Window11::fpsStart =0
private

Definition at line 72 of file Window11.h.

◆ frames

unsigned Rendering::Window11::frames =0
private

Definition at line 73 of file Window11.h.

◆ frequency

LARGE_INTEGER Rendering::Window11::frequency {}
private

Definition at line 71 of file Window11.h.

◆ fullscreen

bool Rendering::Window11::fullscreen =false
private

Definition at line 77 of file Window11.h.

◆ height

UINT Rendering::Window11::height =0
private

Definition at line 75 of file Window11.h.

◆ inFrame

bool Rendering::Window11::inFrame =false
private

Definition at line 77 of file Window11.h.

◆ initialized

bool Rendering::Window11::initialized =false
private

Definition at line 77 of file Window11.h.

◆ minimized

bool Rendering::Window11::minimized =false
private

Definition at line 77 of file Window11.h.

◆ occluded

bool Rendering::Window11::occluded =false
private

Definition at line 77 of file Window11.h.

◆ options

WindowOptions11 Rendering::Window11::options
private

Definition at line 66 of file Window11.h.

◆ previous

LARGE_INTEGER Rendering::Window11::previous {}
private

Definition at line 71 of file Window11.h.

◆ recovering

bool Rendering::Window11::recovering =false
private

Definition at line 78 of file Window11.h.

◆ running

bool Rendering::Window11::running =false
private

Definition at line 77 of file Window11.h.

◆ started

LARGE_INTEGER Rendering::Window11::started {}
private

Definition at line 71 of file Window11.h.

◆ status

std::string Rendering::Window11::status
private

Definition at line 79 of file Window11.h.

◆ width

UINT Rendering::Window11::width =0
private

Definition at line 75 of file Window11.h.

◆ window

HWND Rendering::Window11::window =nullptr
private

Definition at line 68 of file Window11.h.


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