Table of Contents

Class PieGlContext

Namespace
Pie.OpenGL
Assembly
Pie.dll

As OpenGL does not provide a graphics device, it is down to the windowing backend to handle proc addresses and presenting. As pie does not work like this, you must provide a Pie context so that it can work as expected.

public sealed class PieGlContext
Inheritance
PieGlContext
Inherited Members

Constructors

PieGlContext(Func<string, nint>, Action<int>)

Create a new PieGlContext.

public PieGlContext(Func<string, nint> getProcAddress, Action<int> present)

Parameters

getProcAddress Func<string, nint>

The GetProcAddress function pointer.

present Action<int>

The presentation function pointer.

Fields

GetProcFunc

The GetProcAddress function pointer.

public Func<string, nint> GetProcFunc

Field Value

Func<string, nint>
As OpenGL does not provide a graphics device, it is down to the windowing backend to handle proc addresses and presenting. As pie does not work like this, you must provide a Pie context so that it can work as expected.

PresentFunc

The presentation function pointer.

public Action<int> PresentFunc

Field Value

Action<int>
As OpenGL does not provide a graphics device, it is down to the windowing backend to handle proc addresses and presenting. As pie does not work like this, you must provide a Pie context so that it can work as expected.

Methods

GetProcAddress(string)

Get the proc address with the given name.

public nint GetProcAddress(string name)

Parameters

name string

The name to get.

Returns

nint

The found proc address.

Present(int)

Present to the screen.

public void Present(int swapInterval)

Parameters

swapInterval int

The swap interval to use.