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

Sound Class Reference

A short sound that can be loaded from a file. More...

#include <header.hpp>

List of all members.

Public Member Functions

 Sound ()
 Constructor.
nil LoadFromFile (string Filename)
 Load a sound from a file.

Detailed Description

A short sound that can be loaded from a file.

Note: a sound should not be used to load musics ( > 1 min) since the whole file is loaded into memory.


Constructor & Destructor Documentation

Sound::Sound ( )

Constructor.


Member Function Documentation

nil Sound::LoadFromFile ( string  Filename)

Load a sound 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