Feeds a pipeline with an external image. UUID: 1e43cda9-7850-4a8a-a32b-f3f31ea94902
More...
#include <SolARBasicSource.h>
|
SolAR::api::source::SourceReturnCode | setInputTexture (const void *sourceTexturehandle, const int width, const int height) override |
| Set a new image coming from a third party. More...
|
|
SolAR::api::source::SourceReturnCode | getNextImage (SRef< SolAR::datastructure::Image > &image) const override |
| Get a pointer to the texture buffer to update it with the new image when required. More...
|
|
void | unloadComponent () override final |
|
Feeds a pipeline with an external image. UUID: 1e43cda9-7850-4a8a-a32b-f3f31ea94902
◆ getNextImage()
SolAR::api::source::SourceReturnCode SolAR::MODULES::TOOLS::SolARBasicSource::getNextImage |
( |
SRef< SolAR::datastructure::Image > & |
image | ) |
const |
|
override |
Get a pointer to the texture buffer to update it with the new image when required.
- Parameters
-
- Returns
- SourceReturnCode::SUCCESS if a new pose and image have been updated, otherwise frameworkReturnCode::_ERROR
◆ setInputTexture()
SolAR::api::source::SourceReturnCode SolAR::MODULES::TOOLS::SolARBasicSource::setInputTexture |
( |
const void * |
sourceTexturehandle, |
|
|
const int |
width, |
|
|
const int |
height |
|
) |
| |
|
override |
Set a new image coming from a third party.
- Parameters
-
[in] | sourceTexturehandle. | Texture buffer from third party like Unity |
[in] | width | of the image coming from the third party like Unity |
[in] | height | of the image coming from the third party like Unity |
- Returns
- SourceReturnCode::SUCCESS if a new pose and image have been updated, otherwise frameworkReturnCode::_ERROR
The documentation for this class was generated from the following file: