Candy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Static Public Member Functions | List of all members
HVR::OpenAL Class Reference

This class provide pointers to some OpenAL EFX functions that are used by HVR. More...

Public Member Functions

 DECLARE_ALFUNCTION (alGenEffects, LPALGENEFFECTS)
 
 DECLARE_ALFUNCTION (alDeleteEffects, LPALDELETEEFFECTS)
 
 DECLARE_ALFUNCTION (alIsEffect, LPALISEFFECT)
 
 DECLARE_ALFUNCTION (alEffecti, LPALEFFECTI)
 
 DECLARE_ALFUNCTION (alEffectf, LPALEFFECTF)
 
 DECLARE_ALFUNCTION (alEffectfv, LPALEFFECTFV)
 
 DECLARE_ALFUNCTION (alGenFilters, LPALGENFILTERS)
 
 DECLARE_ALFUNCTION (alDeleteFilters, LPALDELETEFILTERS)
 
 DECLARE_ALFUNCTION (alIsFilter, LPALISFILTER)
 
 DECLARE_ALFUNCTION (alFilteri, LPALFILTERI)
 
 DECLARE_ALFUNCTION (alFilterf, LPALFILTERF)
 
 DECLARE_ALFUNCTION (alGenAuxiliaryEffectSlots, LPALGENAUXILIARYEFFECTSLOTS)
 
 DECLARE_ALFUNCTION (alDeleteAuxiliaryEffectSlots, LPALDELETEAUXILIARYEFFECTSLOTS)
 
 DECLARE_ALFUNCTION (alAuxiliaryEffectSloti, LPALAUXILIARYEFFECTSLOTI)
 

Static Public Member Functions

static bool init ()
 This function sets all function pointers, which are NULL until it has returned true. More...
 
static bool checkForError (const std::string name, const std::string message)
 Checks if the OpenAL error flag is set and in that case prints the message (if set) as a runtime warning and returns true. More...
 

Detailed Description

This class provide pointers to some OpenAL EFX functions that are used by HVR.

All functions are null until the init() function has been called with a true return value.

Member Function Documentation

static bool HVR::OpenAL::checkForError ( const std::string  name,
const std::string  message 
)
static

Checks if the OpenAL error flag is set and in that case prints the message (if set) as a runtime warning and returns true.

Returns false if no error was detected.

static bool HVR::OpenAL::init ( )
static

This function sets all function pointers, which are NULL until it has returned true.