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

TexturedArea Class Reference

A TexturedArea is used to render a texture. More...

#include <header.hpp>

Inheritance diagram for TexturedArea:
Sprite Drawable Object

List of all members.

Public Member Functions

Vector2D GetAreaSize ()
 Get the current size of the textured area.
nil SetAreaSize (Vector2D newSize)
 Set the current size of the area.
nil SetTextureSpeed (Vector2D speed)
 Set the texture speed.
Vector2D GetTextureSpeed ()
 Get the texture speed.
nil SetTextureOffset (Vector2D offset)
 Set the offset of the texture.
Vector2D GetTextureOffset ()
 Get the offset of the texture.

Public Attributes

Vector2D size
 Change the area size.
Vector2D textureSpeed
 Change the area size.
Vector2D textureOffset
 Change the offset of the texture.

Detailed Description

A TexturedArea is used to render a texture.

It can be resised. To create a Shape, you should use Group::CreateShape.


Member Function Documentation

Vector2D TexturedArea::GetAreaSize ( )

Get the current size of the textured area.

Vector2D TexturedArea::GetTextureOffset ( )

Get the offset of the texture.

Vector2D TexturedArea::GetTextureSpeed ( )

Get the texture speed.

This could be used to easily animate a textured aread.

nil TexturedArea::SetAreaSize ( Vector2D  newSize)

Set the current size of the area.

nil TexturedArea::SetTextureOffset ( Vector2D  offset)

Set the offset of the texture.

nil TexturedArea::SetTextureSpeed ( Vector2D  speed)

Set the texture speed.

This could be used to easily animate a textured aread.


Member Data Documentation

Change the area size.

Reimplemented from Sprite.

Change the offset of the texture.

Change the area size.


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