wgl_window_management.cpp File Reference

#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include "wgl_window_management.h"

Include dependency graph for wgl_window_management.cpp:

Go to the source code of this file.

Defines

#define WM_TOGGLEFULLSCREEN   (WM_USER+1)

Functions

void TerminateApplication (GL_Window *window)
void ToggleFullscreen (GL_Window *window)
void ReshapeGL (int width, int height)
BOOL ChangeScreenResolution (int width, int height, int bitsPerPixel)
BOOL CreateWindowGL (GL_Window *window)
BOOL DestroyWindowGL (GL_Window *window)
LRESULT CALLBACK WindowProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
BOOL RegisterWindowClass (Application *application)
int wgl_init (GL_Window *window, Application *application, Keys *keys, int res_image_width, int res_image_height)
void wgl_deinit (GL_Window *window, Application *application, Keys *keys)

Variables

static BOOL g_isProgramLooping
static BOOL g_createFullScreen


Define Documentation

#define WM_TOGGLEFULLSCREEN   (WM_USER+1)

Definition at line 16 of file wgl_window_management.cpp.

Referenced by ToggleFullscreen().


Function Documentation

BOOL ChangeScreenResolution ( int  width,
int  height,
int  bitsPerPixel 
)

Definition at line 43 of file wgl_window_management.cpp.

Referenced by CreateWindowGL().

Here is the caller graph for this function:

BOOL CreateWindowGL ( GL_Window window  ) 

Definition at line 59 of file wgl_window_management.cpp.

References GL_WindowInit::application, GL_WindowInit::bitsPerPixel, ChangeScreenResolution(), Application::className, GL_Window::hDC, GL_WindowInit::height, Application::hInstance, GL_Window::hRC, GL_Window::hWnd, GL_Window::init, GL_WindowInit::isFullScreen, ReshapeGL(), GL_WindowInit::title, and GL_WindowInit::width.

Referenced by wgl_init().

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL DestroyWindowGL ( GL_Window window  ) 

Definition at line 195 of file wgl_window_management.cpp.

References GL_Window::hDC, GL_Window::hRC, GL_Window::hWnd, GL_Window::init, GL_WindowInit::isFullScreen, and NULL.

Referenced by wgl_deinit().

Here is the caller graph for this function:

BOOL RegisterWindowClass ( Application application  ) 

Definition at line 229 of file wgl_window_management.cpp.

References Application::className, Application::hInstance, NULL, and WindowProc().

Referenced by wgl_init().

Here is the call graph for this function:

Here is the caller graph for this function:

void ReshapeGL ( int  width,
int  height 
)

Definition at line 32 of file wgl_window_management.cpp.

Referenced by CreateWindowGL().

Here is the caller graph for this function:

void TerminateApplication ( GL_Window window  ) 

Definition at line 21 of file wgl_window_management.cpp.

References g_isProgramLooping, and GL_Window::hWnd.

void ToggleFullscreen ( GL_Window window  ) 

Definition at line 27 of file wgl_window_management.cpp.

References GL_Window::hWnd, and WM_TOGGLEFULLSCREEN.

void wgl_deinit ( GL_Window window,
Application application,
Keys keys 
)

Definition at line 299 of file wgl_window_management.cpp.

References Application::className, DestroyWindowGL(), and Application::hInstance.

Referenced by OmniGCardConverter::check_for_3d_gcard_availability(), and OmniGCardConverter::~OmniGCardConverter().

Here is the call graph for this function:

Here is the caller graph for this function:

int wgl_init ( GL_Window window,
Application application,
Keys keys,
int  res_image_width,
int  res_image_height 
)

Definition at line 250 of file wgl_window_management.cpp.

References GL_WindowInit::application, GL_WindowInit::bitsPerPixel, Application::className, CreateWindowGL(), g_createFullScreen, g_isProgramLooping, GL_WindowInit::height, Application::hInstance, GL_Window::init, GL_WindowInit::isFullScreen, GL_Window::keys, NULL, RegisterWindowClass(), GL_WindowInit::title, and GL_WindowInit::width.

Referenced by OmniGCardConverter::check_for_3d_gcard_availability(), and OmniGCardConverter::OmniGCardConverter().

Here is the call graph for this function:

Here is the caller graph for this function:

LRESULT CALLBACK WindowProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 224 of file wgl_window_management.cpp.

Referenced by RegisterWindowClass().

Here is the caller graph for this function:


Variable Documentation

BOOL g_createFullScreen [static]

Definition at line 19 of file wgl_window_management.cpp.

Referenced by wgl_init().

BOOL g_isProgramLooping [static]

Definition at line 18 of file wgl_window_management.cpp.

Referenced by TerminateApplication(), and wgl_init().


Generated on Tue Dec 26 10:35:09 2006 for Omnimeeting by  doxygen 1.4.7