You.i Engine
CYIVideoSurfaceTexture Class Referenceabstract

Detailed Description

#include <player/YiVideoSurfaceTexture.h>

Inheritance diagram for CYIVideoSurfaceTexture:

Public Member Functions

virtual void Init () override
void Clear ()
- Public Member Functions inherited from CYIVideoSurface
virtual ~CYIVideoSurface ()
Capabilities GetCapabilities () const
void SetClosedCaptionsDispatcher (CYIClosedCaptionsDispatcher *pDispatcher)
CYIClosedCaptionsDispatcherGetClosedCaptionsDispatcher () 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
- Protected Member Functions inherited from CYIVideoSurface
 CYIVideoSurface (Capabilities capabilities)
virtual void OnAttached (CYIVideoSurfaceView *pVideoSurfaceView)
virtual void OnDetached (CYIVideoSurfaceView *pVideoSurfaceView)


class CYIVideoSurfaceView
class CYIAbstractVideoPlayer

Additional Inherited Members

- Public Types inherited from CYIVideoSurface
enum  Capabilities {
  Capabilities::None = 0x00,
  Capabilities::RenderToTexture = 0x01,
  Capabilities::MultipleViews = 0x02,
  Capabilities::Translate = 0x04,
  Capabilities::Scale = 0x08,
  Capabilities::FreeTransform = 0x10,
  Capabilities::Opacity = 0x20
- Public Attributes inherited from CYIVideoSurface
CYISignal< const glm::ivec2 & > SizeChanged

Constructor & Destructor Documentation

◆ CYIVideoSurfaceTexture()

CYIVideoSurfaceTexture::CYIVideoSurfaceTexture ( Capabilities  capabilities = Capabilities::None)

Member Function Documentation

◆ Clear()

void CYIVideoSurfaceTexture::Clear ( )

Clears the contents of the video surface texture to black.

Surface must be initialized by calling Init before attemtping to clear.

◆ GetMaterial()

const std::shared_ptr<CYIMaterial>& CYIVideoSurfaceTexture::GetMaterial ( ) const

Contains a material (shader and texture combination) that is capable of rendering the current video frame.

See also

◆ Init()

virtual void CYIVideoSurfaceTexture::Init ( )

Will call InitializeMaterial and InitializeTexture.

Reimplemented from CYIVideoSurface.

Friends And Related Function Documentation

◆ CYIAbstractVideoPlayer

friend class CYIAbstractVideoPlayer

◆ CYIVideoSurfaceView

friend class CYIVideoSurfaceView

The documentation for this class was generated from the following file: