Adding modding folder with a hacked build.

This commit is contained in:
ml
2026-09-26 08:53:08 +02:00
parent cdb960dc71
commit c91080aba7
755 changed files with 50424 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
package gui
import "github.com/inkyblackness/imgui-go/v3"
// ImageType is an identifier how an image is to be rendered.
type ImageType byte
const (
// ImageTypeSimpleTexture identifies textures that use the image key as OpenGL texture handle.
ImageTypeSimpleTexture ImageType = 0
// ImageTypeBitmapTexture identifies bitmap textures.
ImageTypeBitmapTexture ImageType = 1
// ImageTypeColorTexture identifies textures with own color information.
ImageTypeColorTexture ImageType = 2
)
// TextureIDForSimpleTexture returns a TextureID with ImageTypeSimpleTexture.
func TextureIDForSimpleTexture(handle uint32) imgui.TextureID {
return imgui.TextureID(ImageTypeSimpleTexture)<<56 | imgui.TextureID(handle)
}
// TextureIDForColorTexture returns a TextureID with ImageTypeSimpleTexture.
func TextureIDForColorTexture(handle uint32) imgui.TextureID {
return imgui.TextureID(ImageTypeColorTexture)<<56 | imgui.TextureID(handle)
}
// ImageTypeFromID returns the image type the given texture ID specifies.
func ImageTypeFromID(id imgui.TextureID) ImageType {
return ImageType(id >> 56)
}