Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Win32OpenGLDisplayDevice.C File Reference

OpenGLRenderer subclass managing Win32/Win64 window and input state, OpenGL WGL context, and framebuffer management. More...

#include <windows.h>
#include <winuser.h>
#include "VMDApp.h"
#include "OpenGLDisplayDevice.h"
#include "Inform.h"
#include "utilities.h"
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <GL/gl.h>
#include "../msvc/winvmd/res/resource.h"
#include <GL/glext.h>
#include <GL/wglext.h>

Go to the source code of this file.

Defines

#define _WIN32_WINNT   0x0400

Functions

 __declspec (dllexport) DWORD AmdPowerXpressRequestHighPerformance=1
LRESULT WINAPI vmdWindowProc (HWND, UINT, WPARAM, LPARAM)
int OpenWin32Connection (wgldata *glwsrv)
int PFDHasStereo (int ID, HDC hDC)
HGLRC SetupOpenGL (wgldata *glwsrv)
int myCreateWindow (OpenGLDisplayDevice *ogldispdev, int xpos, int ypos, int xs, int ys)
void vmd_transwin32mouse (OpenGLDisplayDevice *d, LPARAM l)

Variables

const char * glStereoNameStr [OPENGL_STEREO_MODES]
const char * glRenderNameStr [OPENGL_RENDER_MODES]
const char * glCacheNameStr [OPENGL_CACHE_MODES]
char szAppName [] = "VMD"
char szAppTitle [] = "VMD " VMDVERSION " OpenGL Display"


Detailed Description

OpenGLRenderer subclass managing Win32/Win64 window and input state, OpenGL WGL context, and framebuffer management.

Renders drawing commands into a single window.

Definition in file Win32OpenGLDisplayDevice.C.


Define Documentation

#define _WIN32_WINNT   0x0400
 

Definition at line 25 of file Win32OpenGLDisplayDevice.C.


Function Documentation

__declspec dllexport   
 

int myCreateWindow OpenGLDisplayDevice   ogldispdev,
int    xpos,
int    ypos,
int    xs,
int    ys
[static]
 

Definition at line 258 of file Win32OpenGLDisplayDevice.C.

References NULL, szAppName, and szAppTitle.

int OpenWin32Connection wgldata *    glwsrv [static]
 

Definition at line 92 of file Win32OpenGLDisplayDevice.C.

References NULL, szAppName, and vmdWindowProc.

int PFDHasStereo int    ID,
HDC    hDC
[static]
 

Definition at line 131 of file Win32OpenGLDisplayDevice.C.

Referenced by SetupOpenGL.

HGLRC SetupOpenGL wgldata *    glwsrv [static]
 

Definition at line 203 of file Win32OpenGLDisplayDevice.C.

References NULL, and PFDHasStereo.

Referenced by vmdWindowProc.

void vmd_transwin32mouse OpenGLDisplayDevice   d,
LPARAM    l
[static]
 

Definition at line 292 of file Win32OpenGLDisplayDevice.C.

References DisplayDevice::ySize.

Referenced by vmdWindowProc.

LRESULT WINAPI vmdWindowProc HWND   ,
UINT   ,
WPARAM   ,
LPARAM   
 

Definition at line 378 of file Win32OpenGLDisplayDevice.C.

References VMDApp::molecule_load, NULL, OpenGLDisplayDevice::reshape, OpenGLDisplayDevice::set_cursor, SetupOpenGL, vmd_transwin32mouse, DisplayDevice::vmdapp, DisplayDevice::xSize, and DisplayDevice::ySize.

Referenced by OpenWin32Connection.


Variable Documentation

const char* glCacheNameStr[OPENGL_CACHE_MODES] [static]
 

Initial value:

 
{ "Off",
  "On" }

Definition at line 83 of file Win32OpenGLDisplayDevice.C.

const char* glRenderNameStr[OPENGL_RENDER_MODES] [static]
 

Initial value:

{ "Normal",
  "GLSL",
  "Acrobat3D" }

Definition at line 78 of file Win32OpenGLDisplayDevice.C.

const char* glStereoNameStr[OPENGL_STEREO_MODES] [static]
 

Initial value:

 
 { "Off", 
   "QuadBuffered", 
   "HDTV SideBySide",
   "Checkerboard",
   "ColumnInterleaved",
   "RowInterleaved",
   "Anaglyph",
   "SideBySide", 
   "AboveBelow",
   "Left", 
   "Right" }

Definition at line 65 of file Win32OpenGLDisplayDevice.C.

char szAppName[] = "VMD" [static]
 

Definition at line 87 of file Win32OpenGLDisplayDevice.C.

Referenced by myCreateWindow, and OpenWin32Connection.

char szAppTitle[] = "VMD " VMDVERSION " OpenGL Display" [static]
 

Definition at line 88 of file Win32OpenGLDisplayDevice.C.

Referenced by myCreateWindow.


Generated on Fri Mar 29 02:46:57 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002