C++ Game Framework  2013-06-04
CGF is a DirectX 11 game framework, built in C++ and DirectX 11. This is used to contain many to the DirectX functionality and wrap them into a framework to make game development easier.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
CGF::Window Class Reference

#include <Window.h>

Public Member Functions

 Window ()
 
 ~Window ()
 
bool Initialize (const int width, const int height, const bool isFullscreen)
 
bool Shutdown ()
 
LRESULT CALLBACK MessageHandler (HWND, UINT, WPARAM, LPARAM)
 
HWND * GetWindowHandlePtr ()
 
HWND GetWindowHandle ()
 
void SetMouseVisible (const bool isVisible)
 
HINSTANCE * GetHInstancePtr ()
 
HINSTANCE GetHInstance ()
 

Static Public Member Functions

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

Constructor & Destructor Documentation

Window::Window ( )

Create an instance of the Window

Window::~Window ( )

Deconstructor of the Window

Member Function Documentation

HINSTANCE CGF::Window::GetHInstance ( )
inline
HINSTANCE* CGF::Window::GetHInstancePtr ( )
inline
HWND CGF::Window::GetWindowHandle ( )
inline
HWND* CGF::Window::GetWindowHandlePtr ( )
inline
bool Window::Initialize ( const int  width,
const int  height,
const bool  isFullscreen 
)

Initialize the WindowManager

Parameters
widthWidth of the window.
heightHeight of the window
isFullscreenIs the window fullscreen? (ignores the above values if it is)
LRESULT CALLBACK Window::MessageHandler ( HWND  hwnd,
UINT  umsg,
WPARAM  wparam,
LPARAM  lparam 
)

Handle the data sent back from WndProcecure

void CGF::Window::SetMouseVisible ( const bool  isVisible)
inline
bool Window::Shutdown ( )
LRESULT CALLBACK Window::WindowProcecure ( HWND  hwnd,
UINT  umessage,
WPARAM  wparam,
LPARAM  lparam 
)
static

This function handles the many messages that an application receives from the operating system


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