libvisual  0.5.0
Public Member Functions | Static Public Member Functions | List of all members
LV::System Class Reference
Inheritance diagram for LV::System:
Inheritance graph
[legend]
Collaboration diagram for LV::System:
Collaboration graph
[legend]

Public Member Functions

 System (System const &)=delete
 
std::string get_version () const
 Returns the Libvisual version. More...
 
int get_api_version () const
 Returns the Libvisual API verison. More...
 
ParamListget_params () const
 Returns the system-wide parameter list. More...
 
RandomContextget_rng () const
 Returns the system-wide random number generator.
 
void set_rng_seed (RandomSeed seed)
 Sets the seed for the system-wide random number generator. More...
 
- Public Member Functions inherited from LV::Singleton< System >
 Singleton (Singleton const &)=delete
 
Singleton const & operator= (Singleton const &)=delete
 
virtual ~Singleton ()
 Destructor.
 

Static Public Member Functions

static void init (int &argc, char **&argv)
 Initializes Libvisual. More...
 
- Static Public Member Functions inherited from LV::Singleton< System >
static Systeminstance ()
 Returns the singleton instance. More...
 
static void destroy ()
 Destroys the singleton instance.
 

Additional Inherited Members

- Static Protected Attributes inherited from LV::Singleton< System >
static Systemm_instance
 

Detailed Description

Definition at line 44 of file lv_libvisual.h.

Member Function Documentation

int LV::System::get_api_version ( ) const

Returns the Libvisual API verison.

Returns
API version

Definition at line 118 of file lv_libvisual.cpp.

ParamList & LV::System::get_params ( ) const

Returns the system-wide parameter list.

Returns
Parameter list

Definition at line 123 of file lv_libvisual.cpp.

Referenced by LV::SongInfo::set_cover().

std::string LV::System::get_version ( ) const

Returns the Libvisual version.

Returns
version string

Definition at line 113 of file lv_libvisual.cpp.

void LV::System::init ( int &  argc,
char **&  argv 
)
static

Initializes Libvisual.

Parameters
argcNumber of arguments
argvArgument strings

Definition at line 103 of file lv_libvisual.cpp.

void LV::System::set_rng_seed ( RandomSeed  seed)

Sets the seed for the system-wide random number generator.

Parameters
seedseed

Definition at line 133 of file lv_libvisual.cpp.


The documentation for this class was generated from the following files: