Representation of a CYIAbstractVideoPlayer's video surface, if the player is rendering to a texture.
All CYIVideoSurfaceTexture types will implicitly report the CYIVideoSurface::Capabilities CYIVideoSurface::Capabilities::RenderToTexture, CYIVideoSurface::Capabilities::MultipleViews, CYIVideoSurface::Capabilities::Translate, CYIVideoSurface::Capabilities::Scale, CYIVideoSurface::Capabilities::FreeTransform, and CYIVideoSurface::Capabilities::Opacity.
#include <player/YiVideoSurfaceTexture.h>
Public Member Functions | |
virtual void | Init () override |
void | Clear () |
![]() | |
virtual | ~CYIVideoSurface () |
Capabilities | GetCapabilities () const |
void | SetClosedCaptionsDispatcher (CYIClosedCaptionsDispatcher *pDispatcher) |
CYIClosedCaptionsDispatcher * | GetClosedCaptionsDispatcher () const |
const glm::ivec2 & | GetSize () const |
void | SetSize (const glm::ivec2 &videoSize) |
Protected Member Functions | |
CYIVideoSurfaceTexture (Capabilities capabilities=Capabilities::None) | |
const std::shared_ptr< CYIMaterial > & | GetMaterial () const |
![]() | |
CYIVideoSurface (Capabilities capabilities) | |
virtual void | OnAttached (CYIVideoSurfaceView *pVideoSurfaceView) |
virtual void | OnDetached (CYIVideoSurfaceView *pVideoSurfaceView) |
Friends | |
class | CYIVideoSurfaceView |
class | CYIAbstractVideoPlayer |
Additional Inherited Members | |
![]() | |
enum | Capabilities { Capabilities::None = 0x00, Capabilities::RenderToTexture = 0x01, Capabilities::MultipleViews = 0x02, Capabilities::Translate = 0x04, Capabilities::Scale = 0x08, Capabilities::FreeTransform = 0x10, Capabilities::Opacity = 0x20 } |
![]() | |
CYISignal< const glm::ivec2 & > | SizeChanged |
|
protected |
The default value will result in CYIVideoSurface::Capabilities::RenderToTexture, CYIVideoSurface::Capabilities::MultipleViews, CYIVideoSurface::Capabilities::Translate, CYIVideoSurface::Capabilities::Scale, CYIVideoSurface::Capabilities::FreeTransform, and CYIVideoSurface::Capabilities::Opacity.
Any further capabilities can be reported by providing an input to the constructor.
void CYIVideoSurfaceTexture::Clear | ( | ) |
Clears the contents of the video surface texture to black.
|
protected |
Contains a material (shader and texture combination) that is capable of rendering the current video frame.
|
overridevirtual |
Will call InitializeMaterial and InitializeTexture.
Reimplemented from CYIVideoSurface.
|
friend |
|
friend |