StreamTexture is a special kind of texture, which holds a reference to a "fallback texture" and a stream source id. The content of the StreamTexture is dynamic and is determined within the renderer, based on whether the stream with the specified id is available or not. If it is available, the content of the StreamTexture is taken from the stream. Otherwise, the StreamTexture is replaced by the "fallback texture".
More...
#include <StreamTexture.h>
|
class StreamTextureImpl & | impl |
|
class SceneObjectImpl & | impl |
|
class ClientObjectImpl & | impl |
|
class RamsesObjectImpl & | impl |
|
class StatusObjectImpl & | impl |
|
StreamTexture is a special kind of texture, which holds a reference to a "fallback texture" and a stream source id. The content of the StreamTexture is dynamic and is determined within the renderer, based on whether the stream with the specified id is available or not. If it is available, the content of the StreamTexture is taken from the stream. Otherwise, the StreamTexture is replaced by the "fallback texture".
- Examples
- ramses-example-basic-compositing/src/main.cpp, and ramses-example-local-dma-offscreenbuffer/src/main.cpp.
◆ StreamTexture()
ramses::StreamTexture::StreamTexture |
( |
StreamTextureImpl & |
impl | ) |
|
|
explicitprotected |
Constructor of StreamTexture.
- Parameters
-
[in] | impl | Internal data for implementation specifics of StreamTexture (sink - instance becomes owner) |
◆ ~StreamTexture()
virtual ramses::StreamTexture::~StreamTexture |
( |
| ) |
|
|
protectedvirtual |
◆ forceFallbackImage()
status_t ramses::StreamTexture::forceFallbackImage |
( |
bool |
forceFallbackImage | ) |
|
Force usage of fallback texture even if compositing source is available.
- Parameters
-
[in] | forceFallbackImage | If set to true the fallback image will always be shown even if streaming source for embedded compositing is or becomes available |
- Returns
- StatusOK for success, otherwise the returned status can be used to resolve error message using getStatusMessage().
◆ getForceFallbackImage()
bool ramses::StreamTexture::getForceFallbackImage |
( |
| ) |
const |
Get the current value, if fallback image is forced or not.
- Returns
- If forcing of fallback image is currently enabled or not.
◆ getStreamSourceId()
Get the stream source id used for compositing on the stream texture.
- Returns
- Stream source id
◆ SceneImpl
◆ impl
class StreamTextureImpl& ramses::StreamTexture::impl |
Stores internal data for implementation specifics of StreamTexture.
The documentation for this class was generated from the following file:
- /home/runner/work/ramses/ramses/client/ramses-client/ramses-client-api/include/ramses-client-api/StreamTexture.h