diff --git a/source/util-source-texture.cpp b/source/util-source-texture.cpp index d31dae4..670ddbf 100644 --- a/source/util-source-texture.cpp +++ b/source/util-source-texture.cpp @@ -29,6 +29,10 @@ util::SourceTexture::SourceTexture() { m_rt = std::make_shared(GS_RGBA, GS_ZS_NONE); } +obs_source_t* util::SourceTexture::GetObject() { + return m_source; +} + util::SourceTexture::SourceTexture(const char* name) : SourceTexture() { m_source = obs_get_source_by_name(name); if (!m_source) { diff --git a/source/util-source-texture.h b/source/util-source-texture.h index 695a761..9bc1f0b 100644 --- a/source/util-source-texture.h +++ b/source/util-source-texture.h @@ -34,6 +34,8 @@ namespace util { SourceTexture(std::string name); SourceTexture(obs_source_t* src); + obs_source_t* GetObject(); + std::shared_ptr Render(size_t width, size_t height); }; }