opengl32

package
v0.0.0-...-fe889e0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	WGL_SWAP_MAIN_PLANE = (1 << 0)
	WGL_SWAP_OVERLAY1   = (1 << 1)
	WGL_SWAP_OVERLAY2   = (1 << 2)
	WGL_SWAP_OVERLAY3   = (1 << 3)
	WGL_SWAP_OVERLAY4   = (1 << 4)
	WGL_SWAP_OVERLAY5   = (1 << 5)
	WGL_SWAP_OVERLAY6   = (1 << 6)
	WGL_SWAP_OVERLAY7   = (1 << 7)
	WGL_SWAP_OVERLAY8   = (1 << 8)
	WGL_SWAP_OVERLAY9   = (1 << 9)
	WGL_SWAP_OVERLAY10  = (1 << 10)
	WGL_SWAP_OVERLAY11  = (1 << 11)
	WGL_SWAP_OVERLAY12  = (1 << 12)
	WGL_SWAP_OVERLAY13  = (1 << 13)
	WGL_SWAP_OVERLAY14  = (1 << 14)
	WGL_SWAP_OVERLAY15  = (1 << 15)
	WGL_SWAP_UNDERLAY1  = (1 << 16)
	WGL_SWAP_UNDERLAY2  = (1 << 17)
	WGL_SWAP_UNDERLAY3  = (1 << 18)
	WGL_SWAP_UNDERLAY4  = (1 << 19)
	WGL_SWAP_UNDERLAY5  = (1 << 20)
	WGL_SWAP_UNDERLAY6  = (1 << 21)
	WGL_SWAP_UNDERLAY7  = (1 << 22)
	WGL_SWAP_UNDERLAY8  = (1 << 23)
	WGL_SWAP_UNDERLAY9  = (1 << 24)
	WGL_SWAP_UNDERLAY10 = (1 << 25)
	WGL_SWAP_UNDERLAY11 = (1 << 26)
	WGL_SWAP_UNDERLAY12 = (1 << 27)
	WGL_SWAP_UNDERLAY13 = (1 << 28)
	WGL_SWAP_UNDERLAY14 = (1 << 29)
	WGL_SWAP_UNDERLAY15 = (1 << 30)
)

for second parameter of WglSwapLayerBuffers

Variables

This section is empty.

Functions

func WglCopyContext

func WglCopyContext(hglrcSrc, hglrcDst HGLRC, mask uint) bool

func WglDeleteContext

func WglDeleteContext(hglrc HGLRC) bool

func WglDescribeLayerPlane

func WglDescribeLayerPlane(hdc gdi32.HDC, iPixelFormat, iLayerPlane int, nBytes uint8, plpd *LAYERPLANEDESCRIPTOR) bool

func WglGetCurrentDC

func WglGetCurrentDC() gdi32.HDC

func WglGetLayerPaletteEntries

func WglGetLayerPaletteEntries(hdc gdi32.HDC, iLayerPlane, iStart, cEntries int, pcr *gdi32.COLORREF) int

func WglGetProcAddress

func WglGetProcAddress(lpszProc *byte) uintptr

func WglMakeCurrent

func WglMakeCurrent(hdc gdi32.HDC, hglrc HGLRC) bool

func WglRealizeLayerPalette

func WglRealizeLayerPalette(hdc gdi32.HDC, iLayerPlane int, bRealize bool) bool

func WglSetLayerPaletteEntries

func WglSetLayerPaletteEntries(hdc gdi32.HDC, iLayerPlane, iStart, cEntries int, pcr *gdi32.COLORREF) int

func WglShareLists

func WglShareLists(hglrc1, hglrc2 HGLRC) bool

func WglSwapLayerBuffers

func WglSwapLayerBuffers(hdc gdi32.HDC, fuPlanes uint) bool

func WglUseFontBitmaps

func WglUseFontBitmaps(hdc gdi32.HDC, first, count, listbase uint32) bool

func WglUseFontOutlines

func WglUseFontOutlines(hdc gdi32.HDC, first, count, listbase uint32, deviation, extrusion float32, format int, pgmf *GLYPHMETRICSFLOAT) bool

Types

type GLYPHMETRICSFLOAT

type GLYPHMETRICSFLOAT struct {
	GmfBlackBoxX     float32
	GmfBlackBoxY     float32
	GmfptGlyphOrigin POINTFLOAT
	GmfCellIncX      float32
	GmfCellIncY      float32
}

type HGLRC

type HGLRC handle.HANDLE

func WglCreateContext

func WglCreateContext(hdc gdi32.HDC) HGLRC

func WglCreateLayerContext

func WglCreateLayerContext(hdc gdi32.HDC, iLayerPlane int) HGLRC

func WglGetCurrentContext

func WglGetCurrentContext() HGLRC

type LAYERPLANEDESCRIPTOR

type LAYERPLANEDESCRIPTOR struct {
	NSize           uint16
	NVersion        uint16
	DwFlags         uint32
	IPixelType      uint8
	CColorBits      uint8
	CRedBits        uint8
	CRedShift       uint8
	CGreenBits      uint8
	CGreenShift     uint8
	CBlueBits       uint8
	CBlueShift      uint8
	CAlphaBits      uint8
	CAlphaShift     uint8
	CAccumBits      uint8
	CAccumRedBits   uint8
	CAccumGreenBits uint8
	CAccumBlueBits  uint8
	CAccumAlphaBits uint8
	CDepthBits      uint8
	CStencilBits    uint8
	CAuxBuffers     uint8
	ILayerType      uint8
	BReserved       uint8
	CrTransparent   gdi32.COLORREF
}

type POINTFLOAT

type POINTFLOAT struct {
	X, Y float32
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL