MercuryWindow Class Reference

#include <MercuryWindow.h>

Inheritance diagram for MercuryWindow:

Inheritance graph
[legend]
Collaboration diagram for MercuryWindow:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~MercuryWindow ()
 MercuryWindow (int width, int height, bool fullscreenflag)
virtual bool MakeWindow (const char *title, int width, int height, int bits, bool fullscreenflag)=0
void SetDemensions (int width, int height)
void SetFullscreen (bool fullscreen)
bool IsMinimized () const
virtual void DestroyWindow ()=0
virtual bool RestoreDevice ()=0
virtual bool MakeRenderCurrent ()=0
virtual bool MakeRender (const char *title, int width, int height, int bits, bool fullscreenflag, RendererType brt)=0
virtual void DestroyWindowAndRender ()=0
void SwapBuffers ()
int GetWidth ()
int GetHeight ()
virtual bool Update (const float dTime)=0
void SetTitle (const char *title)
char * GetTitle ()
virtual bool HasFocus ()
virtual void Message (int Message, PStack &data, const MString &name)
 Receive message (When subscribing to messages, you receive them via this command).
virtual unsigned char * GetBackDirectBuffer ()

Public Attributes

void * m_hWnd

Protected Member Functions

virtual void SwapBuffersInternal ()=0

Protected Attributes

int m_width
int m_height
double m_aspect
bool m_fullscreen
bool m_minimized
int m_bits
unsigned int m_pixelFormat
bool m_alt_held
MercuryTimer m_lastSwap_t

Private Member Functions

void ClearTitle ()

Private Attributes

char * m_title
MercuryTimer m_tFrameTimer
bool m_bEnableFrameTimer
float m_fSimFramerate

Detailed Description

Definition at line 16 of file MercuryWindow.h.


Constructor & Destructor Documentation

MercuryWindow::~MercuryWindow (  )  [virtual]

Definition at line 31 of file MercuryWindow.cpp.

MercuryWindow::MercuryWindow ( int  width,
int  height,
bool  fullscreenflag 
)

Definition at line 16 of file MercuryWindow.cpp.


Member Function Documentation

virtual bool MercuryWindow::MakeWindow ( const char *  title,
int  width,
int  height,
int  bits,
bool  fullscreenflag 
) [pure virtual]

Implemented in MercuryWindowEE, MercuryWindowFB, MercuryWindowSDL, and Win32Window.

void MercuryWindow::SetDemensions ( int  width,
int  height 
)

Definition at line 36 of file MercuryWindow.cpp.

void MercuryWindow::SetFullscreen ( bool  fullscreen  )  [inline]

Definition at line 22 of file MercuryWindow.h.

bool MercuryWindow::IsMinimized (  )  const [inline]

Definition at line 23 of file MercuryWindow.h.

virtual void MercuryWindow::DestroyWindow (  )  [pure virtual]

Implemented in MercuryWindowEE, MercuryWindowFB, MercuryWindowSDL, and Win32Window.

virtual bool MercuryWindow::RestoreDevice (  )  [pure virtual]

Implemented in MercuryWindowEE, MercuryWindowFB, MercuryWindowSDL, and Win32Window.

virtual bool MercuryWindow::MakeRenderCurrent (  )  [pure virtual]

Implemented in MercuryWindowEE, MercuryWindowFB, MercuryWindowSDL, and Win32Window.

virtual bool MercuryWindow::MakeRender ( const char *  title,
int  width,
int  height,
int  bits,
bool  fullscreenflag,
RendererType  brt 
) [pure virtual]

Implemented in MercuryWindowEE, MercuryWindowFB, MercuryWindowSDL, and Win32Window.

virtual void MercuryWindow::DestroyWindowAndRender (  )  [pure virtual]

Implemented in MercuryWindowEE, MercuryWindowFB, MercuryWindowSDL, and Win32Window.

void MercuryWindow::SwapBuffers (  ) 

Reimplemented in MercuryWindowEE.

Definition at line 63 of file MercuryWindow.cpp.

int MercuryWindow::GetWidth (  )  [inline]

Definition at line 33 of file MercuryWindow.h.

int MercuryWindow::GetHeight (  )  [inline]

Definition at line 34 of file MercuryWindow.h.

virtual bool MercuryWindow::Update ( const float  dTime  )  [pure virtual]

Implemented in MercuryWindowEE, MercuryWindowFB, MercuryWindowSDL, and Win32Window.

void MercuryWindow::SetTitle ( const char *  title  ) 

Definition at line 42 of file MercuryWindow.cpp.

char* MercuryWindow::GetTitle (  )  [inline]

Definition at line 37 of file MercuryWindow.h.

virtual bool MercuryWindow::HasFocus (  )  [inline, virtual]

Reimplemented in MercuryWindowEE, MercuryWindowFB, MercuryWindowSDL, and Win32Window.

Definition at line 38 of file MercuryWindow.h.

void MercuryWindow::Message ( int  Message,
PStack data,
const MString name 
) [virtual]

Receive message (When subscribing to messages, you receive them via this command).

Reimplemented from MercuryMessageHandler.

Definition at line 77 of file MercuryWindow.cpp.

virtual unsigned char* MercuryWindow::GetBackDirectBuffer (  )  [inline, virtual]

Reimplemented in MercuryWindowFB, MercuryWindowSDL, and Win32Window.

Definition at line 41 of file MercuryWindow.h.

virtual void MercuryWindow::SwapBuffersInternal (  )  [protected, pure virtual]

Implemented in MercuryWindowEE, MercuryWindowFB, MercuryWindowSDL, and Win32Window.

void MercuryWindow::ClearTitle (  )  [private]

Definition at line 53 of file MercuryWindow.cpp.


Member Data Documentation

void* MercuryWindow::m_hWnd

Definition at line 44 of file MercuryWindow.h.

int MercuryWindow::m_width [protected]

Definition at line 48 of file MercuryWindow.h.

int MercuryWindow::m_height [protected]

Definition at line 49 of file MercuryWindow.h.

double MercuryWindow::m_aspect [protected]

Definition at line 50 of file MercuryWindow.h.

bool MercuryWindow::m_fullscreen [protected]

Definition at line 51 of file MercuryWindow.h.

bool MercuryWindow::m_minimized [protected]

Definition at line 52 of file MercuryWindow.h.

int MercuryWindow::m_bits [protected]

Definition at line 53 of file MercuryWindow.h.

unsigned int MercuryWindow::m_pixelFormat [protected]

Definition at line 54 of file MercuryWindow.h.

bool MercuryWindow::m_alt_held [protected]

Definition at line 56 of file MercuryWindow.h.

MercuryTimer MercuryWindow::m_lastSwap_t [protected]

Definition at line 58 of file MercuryWindow.h.

char* MercuryWindow::m_title [private]

Definition at line 61 of file MercuryWindow.h.

MercuryTimer MercuryWindow::m_tFrameTimer [private]

Definition at line 63 of file MercuryWindow.h.

bool MercuryWindow::m_bEnableFrameTimer [private]

Definition at line 64 of file MercuryWindow.h.

float MercuryWindow::m_fSimFramerate [private]

Definition at line 65 of file MercuryWindow.h.


The documentation for this class was generated from the following files:
Hosted by SourceForge.net Logo