Documentation ¶
Index ¶
- type OpenGL2
- func (renderer *OpenGL2) Dispose()
- func (renderer *OpenGL2) PreRender(clearColor [3]float32)
- func (renderer *OpenGL2) Render(displaySize [2]float32, framebufferSize [2]float32, drawData imgui.DrawData)
- func (renderer *OpenGL2) RenderDrawList(displaySize [2]float32, framebufferSize [2]float32, commandList imgui.DrawList)
- type OpenGL2s
- type OpenGL3
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 ¶
NewOpenGL2 attempts to initialize a renderer. An OpenGL context has to be established before calling this function.
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 ¶
NewOpenGL2s attempts to initialize a renderer. An OpenGL context has to be established before calling this function.
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 ¶
NewOpenGL3 attempts to initialize a renderer. An OpenGL context has to be established before calling this function.