Solar
Public Member Functions | List of all members
SolAR::MODULES::TOOLS::SolARBasicSource Class Reference

Feeds a pipeline with an external image. UUID: 1e43cda9-7850-4a8a-a32b-f3f31ea94902 More...

#include <SolARBasicSource.h>

Inheritance diagram for SolAR::MODULES::TOOLS::SolARBasicSource:
Inheritance graph
[legend]
Collaboration diagram for SolAR::MODULES::TOOLS::SolARBasicSource:
Collaboration graph
[legend]

Public Member Functions

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
 

Detailed Description

Feeds a pipeline with an external image. UUID: 1e43cda9-7850-4a8a-a32b-f3f31ea94902

Member Function Documentation

◆ 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
[in,out]image
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]widthof the image coming from the third party like Unity
[in]heightof 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: