#include
<oalplus/context.hpp>
typedef AttributeList<ContextAttrib, ...> ContextAttribs;typedef FinishedAttributeList<ContextAttrib, ...> FinishedContextAttribs;
![]()
ContextOps
is a base wrapper for OpenAL context operations.
![]() |
Note |
---|---|
Do not use this class directly, use Context instead. |
class ContextOps { public: static ContextOps Current(void);static StrCRef GetString(StringQuery query);
static const char* Vendor(void);
static const char* Version(void);
static const char* Renderer(void);
static Range<StrCRef> Extensions(void);
DeviceOps<tag::Playback> ContextsDevice(void) const;
bool MakeCurrent(void);
void Process(void);
void Suspend(void);
![]()
Returns the current OpenAL context. See |
|
Queries a string from the current OpenAL context. See |
|
Returns the vendor name. See |
|
Returns the version string. See |
|
Returns the renderer name. See |
|
Returns a range of extension strings. See |
|
Returns the audio device of |
|
Makes this context current. See |
|
Processes this context. See |
|
Suspends this context. See |
static void DistanceModel(DistanceModel dist_model);static DistanceModel DistanceModel(void);
static void DopplerFactor(ALfloat doppler_factor);
static ALfloat DopplerFactor(void);
static void SpeedOfSound(ALfloat speed_of_sound);
static ALfloat SpeedOfSound(void);
};
Sets the distance model to be used by the current context. See |
|
Returns the distance model used by the current context. See |
|
Sets the doppler factor for the current context. See |
|
Returns the doppler factor used by the current context. See |
|
Sets the value of speed of sound for the current context. See |
|
Returns the value of speed of sound used by the current context. See
|
class Context : public ContextOps { public: Context(const Context&) = delete; Context(Context&&); Context(const Device& device);Context( const Device& device, const FinishedContextAttribs& attribs );
~Context(void);
};
Constructs a context using the specified device. See |
|
Construct a context with the specified attributes using the device.
See |
|
Destroys this context. See |
ContextMadeCurrent
is a specialization of Context
which also makes the wrapped context current before the constructor finishes.
class ContextMadeCurrent : public Context { public: ContextMadeCurrent(const ContextMadeCurrent&) = delete; ContextMadeCurrent(ContextMadeCurrent&&); ContextMadeCurrent(const Device& device);ContextMadeCurrent( const Device& device, const FinishedContextAttribs& attribs );
};