Skip to content

Commit

Permalink
context: remove imgui.platform and renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
gucio321 committed Apr 13, 2023
1 parent f2d7443 commit b42ec3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 1 addition & 14 deletions Context.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ type context struct {
// see https://github.com/faiface/mainthread/pull/4
isRunning bool

renderer imgui.Renderer
platform imgui.Platform

widgetIndexCounter int

// Indicate whether current application is running
Expand All @@ -51,10 +48,8 @@ type context struct {
cssStylesheet cssStylesheet
}

func CreateContext(p imgui.Platform, r imgui.Renderer) *context {
func CreateContext() *context {
result := context{
platform: p,
renderer: r,
cssStylesheet: make(cssStylesheet),
}

Expand All @@ -73,14 +68,6 @@ func CreateContext(p imgui.Platform, r imgui.Renderer) *context {
return &result
}

func (c *context) GetRenderer() imgui.Renderer {
return c.renderer
}

func (c *context) GetPlatform() imgui.Platform {
return c.platform
}

func (c *context) IO() imgui.IO {
return imgui.CurrentIO()
}
Expand Down
2 changes: 0 additions & 2 deletions MasterWindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ type MasterWindow struct {
height int
clearColor [4]float32
title string
platform imgui.Platform
renderer imgui.Renderer
context *imgui.Context
io *imgui.IO
updateFunc func()
Expand Down

0 comments on commit b42ec3d

Please sign in to comment.