Skip to content

Commit

Permalink
refact: make pixel format compile time choosable
Browse files Browse the repository at this point in the history
  • Loading branch information
stergiotis committed Feb 6, 2024
1 parent e952f6f commit 3683997
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 0 additions & 2 deletions public/imzero/imgui/color.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package imgui

const ImguiUsesBGRAColorFormat = true

func ColorU32(rgba uint32) (c uint32) {
//return bits.Reverse32(rgba)
return Color32U8(uint8(rgba>>24),
Expand Down
5 changes: 5 additions & 0 deletions public/imzero/imgui/color_bgra.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//go:build imzero_color_bgra

package imgui

const ImguiUsesBGRAColorFormat = true
5 changes: 5 additions & 0 deletions public/imzero/imgui/color_rgba.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//go:build !imzero_color_bgra

package imgui

const ImguiUsesBGRAColorFormat = true

0 comments on commit 3683997

Please sign in to comment.