Texture is a class that handles OpenGL textures . Depending on the hardware, some OpenGL capabilities might not be available (BGRA support, NPOT support, etc.) You cannot instantiate this class yourself. You must use the function Texture.create() to create a new texture: texture = Texture.