texture

package
v0.0.0-...-c5d59ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component = Texture2D // Component is an alias to Texture2D

type ComponentFactory

type ComponentFactory struct {
	*akara.ComponentFactory
}

ComponentFactory is a wrapper for the generic component factory.

func (*ComponentFactory) Add

func (m *ComponentFactory) Add(id akara.EID) *Texture2D

Add adds a Texture2D component to the given entity and returns it

func (*ComponentFactory) ExportToLua

func (m *ComponentFactory) ExportToLua(state *lua.LState, table *lua.LTable) *lua.LTable

func (*ComponentFactory) Get

func (m *ComponentFactory) Get(id akara.EID) (*Texture2D, bool)

Get returns the Texture2D component for the given entity, and a bool for whether or not it exists

type Texture2D

type Texture2D struct {
	*rl.Texture2D
}

Texture2D is a wrapper for a raylib texture

func (*Texture2D) ExportToLua

func (d *Texture2D) ExportToLua(state *lua.LState, table *lua.LTable) *lua.LTable

ExportToLua exports the component into the given table, using the given lua state machine.

func (*Texture2D) New

func (*Texture2D) New() akara.Component

New creates a new raylib texture

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL