Xinf API Reference
Back | Index
class xinf.inity.Texture
extends ImageData
strictly any neko ImageData is already a texture. This class manages the texture though, ImageData only stores some values for direct access by the GLGraphicsContext
function new( ) :Void
function initialize( w:Int, stride:Int, h:Int, cspace:ColorSpace ) :Void
function setData( data:Dynamic, pos:{ y : Int, x : Int}, size:{ y : Int, x : Int}, stride:Int, ?cspace:ColorSpace ) :Void
static var cache :Hash<Texture>
static function newByName( url:String ) :Texture
static function newFromPixbuf( pixbuf:Pixbuf ) :Texture
Back | Index