mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-10 22:05:06 +00:00
gs-rendertarget: Add function to get texture directly
This commit is contained in:
parent
a6f9451654
commit
fd14fd62a6
2 changed files with 7 additions and 0 deletions
|
@ -57,6 +57,11 @@ gs_texture_t* gs::rendertarget::get_object()
|
|||
return tex;
|
||||
}
|
||||
|
||||
std::shared_ptr<gs::texture> gs::rendertarget::get_texture()
|
||||
{
|
||||
return std::make_shared<gs::texture>(get_object(), false);
|
||||
}
|
||||
|
||||
void gs::rendertarget::get_texture(gs::texture& tex)
|
||||
{
|
||||
tex = gs::texture(get_object(), false);
|
||||
|
|
|
@ -47,6 +47,8 @@ namespace gs {
|
|||
|
||||
gs_texture_t* get_object();
|
||||
|
||||
std::shared_ptr<gs::texture> get_texture();
|
||||
|
||||
void get_texture(gs::texture& tex);
|
||||
|
||||
void get_texture(std::shared_ptr<gs::texture>& tex);
|
||||
|
|
Loading…
Reference in a new issue