dummygc

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: BSL-1.0 Imports: 3 Imported by: 0

README

dummygc

GoDoc

About

dummygc is a Go package to create an OpenGL 1.1 graphic context on Windows systems. It is published on https://github.com/vbsw/dummygc.

Copyright 2021, Vitali Baumtrok (vbsw@mailbox.org).

dummygc is distributed under the Boost Software License, version 1.0. (See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)

dummygc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Boost Software License for more details.

References

Documentation

Overview

dummygc creates an OpenGL 1.0 graphic context on Windows systems.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGetInst   error
	ErrRegCls    error
	ErrCreateWin error
	ErrGetDC     error
	ErrCPF       error
	ErrSPF       error
	ErrCreateRC  error
	ErrAlloc     error
	ErrMakeCurr  error
)

Functions

This section is empty.

Types

type GC

type GC struct {

	// HDC
	DCPtr unsafe.Pointer
	// HGLRC
	RCPtr unsafe.Pointer
	// contains filtered or unexported fields
}

func New

func New() (*GC, error)

// New creates a new instance of GC and returns it.

func (*GC) Destroy

func (gc *GC) Destroy()

Destroy releases all memory associated with the context.

func (*GC) MakeCurrent

func (gc *GC) MakeCurrent() error

MakeCurrent makes the graphic context current.

Jump to

Keyboard shortcuts

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