Bottle 2D - Lua API 1.0.0
All you need to create games using bottle2D.
Public Member Functions

Texture Class Reference

A texture (an image) that can be loaded from a file. More...

#include <header.hpp>

List of all members.

Public Member Functions

 Texture ()
 Constructor.
number GetWidth ()
 Return the width of the image.
number GetHeight ()
 Return the height of the image.
Vector2D GetSize ()
 Return the size of the image.
nil LoadFromFile (string Filename)
 Load a texture from a file.

Detailed Description

A texture (an image) that can be loaded from a file.


Constructor & Destructor Documentation

Texture::Texture ( )

Constructor.


Member Function Documentation

number Texture::GetHeight ( )

Return the height of the image.

Vector2D Texture::GetSize ( )

Return the size of the image.

number Texture::GetWidth ( )

Return the width of the image.

nil Texture::LoadFromFile ( string  Filename)

Load a texture from a file.

Note: the working directory is the mode's root directory.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables