ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

wgl.c File Reference
#include <windows.h>
#include "config.h"
#include "glapi.h"
#include "GL/wmesa.h"

Go to the source code of this file.

Data Structures

struct  __pixelformat__
struct  MesaWglCtx

Defines

#define _GDI32_
#define MESAWGL_CTX_MAX_COUNT   20
#define VERIFY(a)   a
#define WGL_NUMBER_PIXEL_FORMATS_ARB   0x2000
#define WGL_DRAW_TO_WINDOW_ARB   0x2001
#define WGL_DRAW_TO_BITMAP_ARB   0x2002
#define WGL_ACCELERATION_ARB   0x2003
#define WGL_NEED_PALETTE_ARB   0x2004
#define WGL_NEED_SYSTEM_PALETTE_ARB   0x2005
#define WGL_SWAP_LAYER_BUFFERS_ARB   0x2006
#define WGL_SWAP_METHOD_ARB   0x2007
#define WGL_NUMBER_UNDERLAYS_ARB   0x2009
#define WGL_TRANSPARENT_ARB   0x200A
#define WGL_SHARE_DEPTH_ARB   0x200C
#define WGL_SHARE_ACCUM_ARB   0x200E
#define WGL_SUPPORT_GDI_ARB   0x200F
#define WGL_SUPPORT_OPENGL_ARB   0x2010
#define WGL_DOUBLE_BUFFER_ARB   0x2011
#define WGL_STEREO_ARB   0x2012
#define WGL_PIXEL_TYPE_ARB   0x2013
#define WGL_COLOR_BITS_ARB   0x2014
#define WGL_RED_BITS_ARB   0x2015
#define WGL_RED_SHIFT_ARB   0x2016
#define WGL_GREEN_BITS_ARB   0x2017
#define WGL_GREEN_SHIFT_ARB   0x2018
#define WGL_BLUE_BITS_ARB   0x2019
#define WGL_BLUE_SHIFT_ARB   0x201A
#define WGL_ALPHA_BITS_ARB   0x201B
#define WGL_ALPHA_SHIFT_ARB   0x201C
#define WGL_ACCUM_BITS_ARB   0x201D
#define WGL_ACCUM_RED_BITS_ARB   0x201E
#define WGL_ACCUM_GREEN_BITS_ARB   0x201F
#define WGL_ACCUM_BLUE_BITS_ARB   0x2020
#define WGL_ACCUM_ALPHA_BITS_ARB   0x2021
#define WGL_DEPTH_BITS_ARB   0x2022
#define WGL_STENCIL_BITS_ARB   0x2023
#define WGL_AUX_BUFFERS_ARB   0x2024
#define WGL_NO_ACCELERATION_ARB   0x2025
#define WGL_GENERIC_ACCELERATION_ARB   0x2026
#define WGL_FULL_ACCELERATION_ARB   0x2027
#define WGL_DRAW_TO_PBUFFER_ARB   0x202D
#define WGL_MAX_PBUFFER_PIXELS_ARB   0x202E
#define WGL_MAX_PBUFFER_WIDTH_ARB   0x202F
#define WGL_MAX_PBUFFER_HEIGHT_ARB   0x2030
#define WGL_SAMPLE_BUFFERS_ARB   0x2041
#define WGL_SAMPLES_ARB   0x2042

Typedefs

typedef voidHPBUFFERARB

Functions

WINGDIAPI HGLRC GLAPIENTRY wglCreateContext (HDC hdc)
WINGDIAPI BOOL GLAPIENTRY wglDeleteContext (HGLRC hglrc)
WINGDIAPI HGLRC GLAPIENTRY wglGetCurrentContext (VOID)
WINGDIAPI HDC GLAPIENTRY wglGetCurrentDC (VOID)
WINGDIAPI BOOL GLAPIENTRY wglMakeCurrent (HDC hdc, HGLRC hglrc)
WINGDIAPI int GLAPIENTRY wglChoosePixelFormat (HDC hdc, CONST PIXELFORMATDESCRIPTOR *ppfd)
WINGDIAPI int GLAPIENTRY wglDescribePixelFormat (HDC hdc, int iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd)
WINGDIAPI PROC GLAPIENTRY wglGetProcAddress (LPCSTR lpszProc)
WINGDIAPI int GLAPIENTRY wglGetPixelFormat (HDC hdc)
WINGDIAPI BOOL GLAPIENTRY wglSetPixelFormat (HDC hdc, int iPixelFormat, const PIXELFORMATDESCRIPTOR *ppfd)
WINGDIAPI BOOL GLAPIENTRY wglSwapBuffers (HDC hdc)
static FIXED FixedFromDouble (double d)
static BOOL wglUseFontBitmaps_FX (HDC fontDevice, DWORD firstChar, DWORD numChars, DWORD listBase)
WINGDIAPI BOOL GLAPIENTRY wglUseFontBitmapsA (HDC hdc, DWORD first, DWORD count, DWORD listBase)
WINGDIAPI BOOL GLAPIENTRY wglShareLists (HGLRC hglrc1, HGLRC hglrc2)
WINGDIAPI BOOL GLAPIENTRY wglCopyContext (HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask)
WINGDIAPI HGLRC GLAPIENTRY wglCreateLayerContext (HDC hdc, int iLayerPlane)
WINGDIAPI BOOL GLAPIENTRY wglUseFontBitmapsW (HDC hdc, DWORD first, DWORD count, DWORD listBase)
WINGDIAPI BOOL GLAPIENTRY wglUseFontOutlinesA (HDC hdc, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf)
WINGDIAPI BOOL GLAPIENTRY wglUseFontOutlinesW (HDC hdc, DWORD first, DWORD count, DWORD listBase, FLOAT deviation, FLOAT extrusion, int format, LPGLYPHMETRICSFLOAT lpgmf)
WINGDIAPI BOOL GLAPIENTRY wglDescribeLayerPlane (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nBytes, LPLAYERPLANEDESCRIPTOR plpd)
WINGDIAPI int GLAPIENTRY wglSetLayerPaletteEntries (HDC hdc, int iLayerPlane, int iStart, int cEntries, CONST COLORREF *pcr)
WINGDIAPI int GLAPIENTRY wglGetLayerPaletteEntries (HDC hdc, int iLayerPlane, int iStart, int cEntries, COLORREF *pcr)
WINGDIAPI BOOL GLAPIENTRY wglRealizeLayerPalette (HDC hdc, int iLayerPlane, BOOL bRealize)
WINGDIAPI BOOL GLAPIENTRY wglSwapLayerBuffers (HDC hdc, UINT fuPlanes)
WINGDIAPI const char *GLAPIENTRY wglGetExtensionsStringARB (HDC hdc)
GLAPI const char *GLAPIENTRY wglGetExtensionsStringEXT (void)
GLAPI BOOL GLAPIENTRY wglChoosePixelFormatARB (HDC hdc, const int *piAttribIList, const FLOAT *pfAttribFList, UINT nMaxFormats, int *piFormats, UINT *nNumFormats)
GLAPI BOOL GLAPIENTRY wglSwapIntervalEXT (int interval)
GLAPI int GLAPIENTRY wglGetSwapIntervalEXT (void)
GLAPI BOOL GLAPIENTRY wglGetPixelFormatAttribivARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, int *piValues)
GLAPI BOOL GLAPIENTRY wglGetPixelFormatAttribfvARB (HDC hdc, int iPixelFormat, int iLayerPlane, UINT nAttributes, int *piAttributes, FLOAT *pfValues)
GLAPI BOOL GLAPIENTRY wglMakeContextCurrentARB (HDC hDrawDC, HDC hReadDC, HGLRC hglrc)
GLAPI HANDLE GLAPIENTRY wglGetCurrentReadDCARB (void)
GLAPI HPBUFFERARB GLAPIENTRY wglCreatePbufferARB (HDC hDC, int iPixelFormat, int iWidth, int iHeight, const int *piAttribList)
GLAPI HDC GLAPIENTRY wglGetPbufferDCARB (HPBUFFERARB hPbuffer)
GLAPI int GLAPIENTRY wglReleasePbufferDCARB (HPBUFFERARB hPbuffer, HDC hDC)
GLAPI BOOL GLAPIENTRY wglDestroyPbufferARB (HPBUFFERARB hPbuffer)
GLAPI BOOL GLAPIENTRY wglQueryPbufferARB (HPBUFFERARB hPbuffer, int iAttribute, int *piValue)
GLAPI HANDLE GLAPIENTRY wglCreateBufferRegionARB (HDC hDC, int iLayerPlane, UINT uType)
GLAPI VOID GLAPIENTRY wglDeleteBufferRegionARB (HANDLE hRegion)
GLAPI BOOL GLAPIENTRY wglSaveBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height)
GLAPI BOOL GLAPIENTRY wglRestoreBufferRegionARB (HANDLE hRegion, int x, int y, int width, int height, int xSrc, int ySrc)
GLAPI BOOL GLAPIENTRY wglSetPbufferAttribARB (HPBUFFERARB hPbuffer, const int *piAttribList)
GLAPI BOOL GLAPIENTRY wglBindTexImageARB (HPBUFFERARB hPbuffer, int iBuffer)
GLAPI BOOL GLAPIENTRY wglReleaseTexImageARB (HPBUFFERARB hPbuffer, int iBuffer)

Variables

struct __pixelformat__ pfd []
int npfd = sizeof(pfd) / sizeof(pfd[0])
static MesaWglCtx wgl_ctx [MESAWGL_CTX_MAX_COUNT]
static unsigned ctx_count = 0
static int ctx_current = -1
static unsigned curPFD = 0
static HDC CurrentHDC = 0

Generated on Sun May 27 2012 04:55:44 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.