MCPcopy
hub / github.com/EngoEngine/engo / Texture

Struct Texture

common/render_filetype.go:188–193  ·  view source on GitHub ↗

Texture represents a texture loaded in the GPU RAM (by using OpenGL), which defined dimensions and viewport

Source from the content-addressed store, hash-verified

186
187// Texture represents a texture loaded in the GPU RAM (by using OpenGL), which defined dimensions and viewport
188type Texture struct {
189 id *gl.Texture
190 width float32
191 height float32
192 viewport engo.AABB
193}
194
195// Width returns the width of the texture.
196func (t Texture) Width() float32 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected