Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkWGLExtensions Class Reference

#include <SkWGL.h>

Public Member Functions

 SkWGLExtensions ()
 
bool hasExtension (HDC dc, const char *ext) const
 
const char * getExtensionsString (HDC hdc) const
 
BOOL choosePixelFormat (HDC hdc, const int *, const FLOAT *, UINT, int *, UINT *) const
 
BOOL getPixelFormatAttribiv (HDC, int, int, UINT, const int *, int *) const
 
BOOL getPixelFormatAttribfv (HDC hdc, int, int, UINT, const int *, FLOAT *) const
 
HGLRC createContextAttribs (HDC, HGLRC, const int *) const
 
BOOL swapInterval (int interval) const
 
HPBUFFER createPbuffer (HDC, int, int, int, const int *) const
 
HDC getPbufferDC (HPBUFFER) const
 
int releasePbufferDC (HPBUFFER, HDC) const
 
BOOL destroyPbuffer (HPBUFFER) const
 
int selectFormat (const int formats[], int formatCount, HDC dc, int desiredSampleCount) const
 

Detailed Description

Definition at line 53 of file SkWGL.h.

Constructor & Destructor Documentation

◆ SkWGLExtensions()

SkWGLExtensions::SkWGLExtensions ( )

Member Function Documentation

◆ choosePixelFormat()

BOOL SkWGLExtensions::choosePixelFormat ( HDC  hdc,
const int ,
const FLOAT *  ,
UINT  ,
int ,
UINT  
) const

◆ createContextAttribs()

HGLRC SkWGLExtensions::createContextAttribs ( HDC  ,
HGLRC  ,
const int  
) const

◆ createPbuffer()

HPBUFFER SkWGLExtensions::createPbuffer ( HDC  ,
int  ,
int  ,
int  ,
const int  
) const

◆ destroyPbuffer()

BOOL SkWGLExtensions::destroyPbuffer ( HPBUFFER  ) const

◆ getExtensionsString()

const char * SkWGLExtensions::getExtensionsString ( HDC  hdc) const

◆ getPbufferDC()

HDC SkWGLExtensions::getPbufferDC ( HPBUFFER  ) const

◆ getPixelFormatAttribfv()

BOOL SkWGLExtensions::getPixelFormatAttribfv ( HDC  hdc,
int  ,
int  ,
UINT  ,
const int ,
FLOAT *   
) const

◆ getPixelFormatAttribiv()

BOOL SkWGLExtensions::getPixelFormatAttribiv ( HDC  ,
int  ,
int  ,
UINT  ,
const int ,
int  
) const

◆ hasExtension()

bool SkWGLExtensions::hasExtension ( HDC  dc,
const char *  ext 
) const

Determines if an extensions is available for a given DC. WGL_extensions_string is considered a prerequisite for all other extensions. It is necessary to check this before calling other class functions.

◆ releasePbufferDC()

int SkWGLExtensions::releasePbufferDC ( HPBUFFER  ,
HDC   
) const

◆ selectFormat()

int SkWGLExtensions::selectFormat ( const int  formats[],
int  formatCount,
HDC  dc,
int  desiredSampleCount 
) const

WGL doesn't have precise rules for the ordering of formats returned by wglChoosePixelFormat. This function helps choose among the set of formats returned by wglChoosePixelFormat. The rules in decreasing priority are:

  • Choose formats with the smallest sample count that is >= desiredSampleCount (or the largest sample count if all formats have fewer samples than desiredSampleCount.) If desiredSampleCount is 1 then all msaa formats are excluded from consideration.
  • Choose formats with the fewest color samples when coverage sampling is available.
  • If the above rules leave multiple formats, choose the one that appears first in the formats array parameter.

◆ swapInterval()

BOOL SkWGLExtensions::swapInterval ( int  interval) const

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