Class: SDC::Texture
- Inherits:
-
Object
- Object
- SDC::Texture
- 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
-
#size ⇒ Coordinates
Size vector of the texture.
Instance Method Summary collapse
-
#initialize ⇒ Texture
constructor
Creates an empty texture.
-
#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.
Constructor Details
#initialize ⇒ Texture
Creates an empty texture
|
# File 'engine_docs/automatic_doc_Texture.rb', line 9
|
Instance Attribute Details
#size ⇒ Coordinates
Size vector of the texture
|
# 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.
|
# File 'engine_docs/automatic_doc_Texture.rb', line 18
|