Skip to content

Commit 07c7063

Browse files
committed
texture; add comment over texture type
1 parent ae7f2e1 commit 07c7063

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

backend/texture.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ import (
1212
"github.com/AllenDang/cimgui-go/imgui"
1313
)
1414

15+
// Texture implements a simple texture loader. It wraps backend's methods to allow creating textures easily.
16+
// IMPORTANT: as the texture is mainly handled by C OpenGL, it is not covered by Garbae Collector (GC).
17+
//
18+
// Remember to call (*Texture).Release when you no longer need it.
1519
type Texture struct {
1620
ID imgui.TextureID
1721
Width int

0 commit comments

Comments
 (0)