A context that is made current right after construction. More...
#include </home/chochlik/devel/oglplus/include/oalplus/context.hpp>
Public Member Functions | |
CurrentContext (const Device &device) | |
Creates a new context and makes it current. More... | |
CurrentContext (const Device &device, const FinishedContextAttribs &attribs) | |
Creates a new context and makes it current. More... | |
CurrentContext (CurrentContext &&tmp) | |
CurrentContext is move-constructible. More... | |
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< String > | Extensions (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... | |
A context that is made current right after construction.
oalplus::CurrentContext::CurrentContext | ( | const Device & | device | ) |
Creates a new context and makes it current.
alcCreateContext
alcMakeContextCurrent
References oalplus::ContextOps::MakeCurrent().
oalplus::CurrentContext::CurrentContext | ( | const Device & | device, |
const FinishedContextAttribs & | attribs | ||
) |
Creates a new context and makes it current.
alcCreateContext
alcMakeContextCurrent
References oalplus::ContextOps::MakeCurrent().
oalplus::CurrentContext::CurrentContext | ( | CurrentContext && | tmp | ) |
CurrentContext is move-constructible.
alcMakeContextCurrent
References oalplus::ContextOps::MakeCurrent().
|
staticinherited |
Returns the current OpenAL context.
alcGetCurrentContext
alcGetContextsDevice
|
staticinherited |
Sets the distance model to be used by the current context.
alDistanceModel
References oalplus::ContextOps::DistanceModel().
|
staticinherited |
Returns the distance model used by the current context.
alGetIntegerv
AL_DISTANCE_MODEL
Referenced by oalplus::ContextOps::DistanceModel().
|
staticinherited |
Sets the doppler factor for the current context.
alDopplerFactor
References oalplus::ContextOps::DopplerFactor().
|
staticinherited |
Returns the doppler factor used by the current context.
alGetFloatv
AL_DOPPLER_FACTOR
Referenced by oalplus::ContextOps::DopplerFactor().
|
staticinherited |
Returns a range of extension strings.
alGetString
AL_EXTENSIONS
|
staticinherited |
Queries a string from the current OpenAL context.
alGetString
Referenced by oalplus::ContextOps::Renderer(), oalplus::ContextOps::Vendor(), and oalplus::ContextOps::Version().
|
inherited |
Makes this context current.
alcMakeContextCurrent
Referenced by CurrentContext().
|
inherited |
Processes this context.
alcProcessContext
|
staticinherited |
Returns the renderer name.
alGetString
AL_RENDERER
References oalplus::ContextOps::GetString(), and oalplus::Renderer.
|
staticinherited |
Sets the value of speed of sound for the current context.
alSpeedOfSound
References oalplus::ContextOps::SpeedOfSound().
|
staticinherited |
Returns the value of speed of sound used by the current context.
alGetFloatv
AL_SPEED_OF_SOUND
Referenced by oalplus::ContextOps::SpeedOfSound().
|
inherited |
Suspends this context.
alcSuspendContext
|
staticinherited |
Returns the vendor name.
alGetString
AL_VENDOR
References oalplus::ContextOps::GetString(), and oalplus::Vendor.
|
staticinherited |
Returns the version string.
alGetString
AL_VERSION
References oalplus::ContextOps::GetString(), and oalplus::Version.