Class: SDC::Texture

Inherits:
Object
  • Object
show all
Defined in:
engine_docs/automatic_doc_Texture.rb,
engine_docs/automatic_doc_Texture.rb

Overview

Texture objects which can be referenced by sprites

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTexture

Creates an empty texture



# File 'engine_docs/automatic_doc_Texture.rb', line 9

Instance Attribute Details

#sizeCoordinates

Size vector of the texture

Returns:



# File 'engine_docs/automatic_doc_Texture.rb', line 14

Instance Method Details

#load_from_file(filename, rectangle = nil) ⇒ Boolean

Loads the texture (entirely or with given rectangle) from file, returning true if loading was successful, else false.

Parameters:

  • filename (String)
  • rectangle (IntRect|nil) (defaults to: nil)

Returns:

  • (Boolean)


# File 'engine_docs/automatic_doc_Texture.rb', line 18