gl

package
v0.0.0-...-8062b39 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenGL2

type OpenGL2 struct {
	// contains filtered or unexported fields
}

OpenGL2 implements a renderer based on github.com/go-gl/gl (v2.1).

func NewOpenGL2

func NewOpenGL2(io imgui.IO) (*OpenGL2, error)

NewOpenGL2 attempts to initialize a renderer. An OpenGL context has to be established before calling this function.

func (*OpenGL2) Dispose

func (renderer *OpenGL2) Dispose()

Dispose cleans up the resources.

func (*OpenGL2) PreRender

func (renderer *OpenGL2) PreRender(clearColor [3]float32)

PreRender clears the framebuffer.

func (*OpenGL2) Render

func (renderer *OpenGL2) Render(displaySize [2]float32, framebufferSize [2]float32, drawData imgui.DrawData)

Render translates the ImGui draw data to OpenGL3 commands.

func (*OpenGL2) RenderDrawList

func (renderer *OpenGL2) RenderDrawList(displaySize [2]float32, framebufferSize [2]float32, commandList imgui.DrawList)

Render translates the ImGui draw data to OpenGL3 commands.

type OpenGL2s

type OpenGL2s struct {
	// contains filtered or unexported fields
}

OpenGL2 implements a renderer based on github.com/go-gl/gl (v2.1).

func NewOpenGL2s

func NewOpenGL2s(io imgui.IO) (*OpenGL2s, error)

NewOpenGL2s attempts to initialize a renderer. An OpenGL context has to be established before calling this function.

func (*OpenGL2s) Dispose

func (renderer *OpenGL2s) Dispose()

Dispose cleans up the resources.

func (*OpenGL2s) PreRender

func (renderer *OpenGL2s) PreRender(clearColor [3]float32)

PreRender clears the framebuffer.

func (*OpenGL2s) Render

func (renderer *OpenGL2s) Render(displaySize [2]float32, framebufferSize [2]float32, drawData imgui.DrawData)

Render translates the ImGui draw data to OpenGL3 commands.

type OpenGL3

type OpenGL3 struct {
	// contains filtered or unexported fields
}

OpenGL3 implements a renderer based on github.com/go-gl/gl (v3.2-core).

func NewOpenGL3

func NewOpenGL3(io imgui.IO) (*OpenGL3, error)

NewOpenGL3 attempts to initialize a renderer. An OpenGL context has to be established before calling this function.

func (*OpenGL3) Dispose

func (renderer *OpenGL3) Dispose()

Dispose cleans up the resources.

func (*OpenGL3) PreRender

func (renderer *OpenGL3) PreRender(clearColor [3]float32)

PreRender clears the framebuffer.

func (*OpenGL3) Render

func (renderer *OpenGL3) Render(displaySize [2]float32, framebufferSize [2]float32, drawData imgui.DrawData)

Render translates the ImGui draw data to OpenGL3 commands.

Jump to

Keyboard shortcuts

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