OALplus (0.52.0) a C++ wrapper for OpenAL

Base wrapper for OpenAL context operations. More...

#include </home/chochlik/devel/oglplus/include/oalplus/context.hpp>

Inheritance diagram for oalplus::ContextOps:

Public Member Functions

DeviceOps< tag::Playback > ContextsDevice (void) const
 Returns the device of this context.
 
bool MakeCurrent (void)
 Makes this context current. More...
 
void Process (void)
 Processes this context. More...
 
void Suspend (void)
 Suspends this context. More...
 

Static Public Member Functions

static ContextOps Current (void)
 Returns the current OpenAL context. More...
 
static const ALchar * GetString (StringQuery query)
 Queries a string from the current OpenAL context. More...
 
static const char * Vendor (void)
 Returns the vendor name. More...
 
static const char * Version (void)
 Returns the version string. More...
 
static const char * Renderer (void)
 Returns the renderer name. More...
 
static Range< StringExtensions (void)
 Returns a range of extension strings. More...
 
static void DistanceModel (oalplus::DistanceModel dist_model)
 Sets the distance model to be used by the current context. More...
 
static oalplus::DistanceModel DistanceModel (void)
 Returns the distance model used by the current context. More...
 
static void DopplerFactor (ALfloat doppler_factor)
 Sets the doppler factor for the current context. More...
 
static ALfloat DopplerFactor (void)
 Returns the doppler factor used by the current context. More...
 
static void SpeedOfSound (ALfloat speed_of_sound)
 Sets the value of speed of sound for the current context. More...
 
static ALfloat SpeedOfSound (void)
 Returns the value of speed of sound used by the current context. More...
 

Detailed Description

Base wrapper for OpenAL context operations.

Note
Do not use this class directly, use Context instead
See Also
Context

Member Function Documentation

static ContextOps oalplus::ContextOps::Current ( void  )
static

Returns the current OpenAL context.

Related OpenAL symbols:
alcGetCurrentContext alcGetContextsDevice
static void oalplus::ContextOps::DistanceModel ( oalplus::DistanceModel  dist_model)
static

Sets the distance model to be used by the current context.

Related OpenAL symbols:
alDistanceModel

References DistanceModel().

static oalplus::DistanceModel oalplus::ContextOps::DistanceModel ( void  )
static

Returns the distance model used by the current context.

Related OpenAL symbols:
alGetIntegerv AL_DISTANCE_MODEL

Referenced by DistanceModel().

static void oalplus::ContextOps::DopplerFactor ( ALfloat  doppler_factor)
static

Sets the doppler factor for the current context.

Related OpenAL symbols:
alDopplerFactor

References DopplerFactor().

static ALfloat oalplus::ContextOps::DopplerFactor ( void  )
static

Returns the doppler factor used by the current context.

Related OpenAL symbols:
alGetFloatv AL_DOPPLER_FACTOR

Referenced by DopplerFactor().

static Range<String> oalplus::ContextOps::Extensions ( void  )
static

Returns a range of extension strings.

Related OpenAL symbols:
alGetString AL_EXTENSIONS
Examples:
oalplus/001_info.cpp.
static const ALchar* oalplus::ContextOps::GetString ( StringQuery  query)
static

Queries a string from the current OpenAL context.

Related OpenAL symbols:
alGetString

Referenced by Renderer(), Vendor(), and Version().

bool oalplus::ContextOps::MakeCurrent ( void  )

Makes this context current.

Related OpenAL symbols:
alcMakeContextCurrent

Referenced by oalplus::CurrentContext::CurrentContext().

void oalplus::ContextOps::Process ( void  )

Processes this context.

Related OpenAL symbols:
alcProcessContext
static const char* oalplus::ContextOps::Renderer ( void  )
static

Returns the renderer name.

Related OpenAL symbols:
alGetString AL_RENDERER
Examples:
oalplus/001_info.cpp.

References GetString(), and oalplus::Renderer.

static void oalplus::ContextOps::SpeedOfSound ( ALfloat  speed_of_sound)
static

Sets the value of speed of sound for the current context.

Related OpenAL symbols:
alSpeedOfSound

References SpeedOfSound().

static ALfloat oalplus::ContextOps::SpeedOfSound ( void  )
static

Returns the value of speed of sound used by the current context.

Related OpenAL symbols:
alGetFloatv AL_SPEED_OF_SOUND

Referenced by SpeedOfSound().

void oalplus::ContextOps::Suspend ( void  )

Suspends this context.

Related OpenAL symbols:
alcSuspendContext
static const char* oalplus::ContextOps::Vendor ( void  )
static

Returns the vendor name.

Related OpenAL symbols:
alGetString AL_VENDOR
Examples:
oalplus/001_info.cpp.

References GetString(), and oalplus::Vendor.

static const char* oalplus::ContextOps::Version ( void  )
static

Returns the version string.

Related OpenAL symbols:
alGetString AL_VERSION
Examples:
oalplus/001_info.cpp.

References GetString(), and oalplus::Version.


The documentation for this class was generated from the following file:
  • /home/chochlik/devel/oglplus/include/oalplus/context.hpp

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).