You.i Engine
YiVideoSurfaceTexture.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2020. All rights reserved.
2 #ifndef _YI_VIDEO_SURFACE_TEXTURE_H_
3 #define _YI_VIDEO_SURFACE_TEXTURE_H_
4 
6 
18 {
19  friend class CYIVideoSurfaceView; //For grabbing the texture
20  friend class CYIAbstractVideoPlayer; //For updating the texture
21 public:
25  virtual void Init() override;
26 
32  void Clear();
33 
34 protected:
41 
47  const std::shared_ptr<CYIMaterial> &GetMaterial() const;
48 
49 private:
55  virtual void InitializeMaterial(const std::shared_ptr<CYIMaterial> &pVideoMaterial) = 0;
56 
60  virtual void InitializeTexture() = 0;
61 
62 private:
63  bool m_initialized;
64  std::shared_ptr<CYIMaterial> m_pVideoMaterial;
65 };
66 
71 #endif
Capabilities
Definition: YiVideoSurface.h:39
virtual void Init() override
An abstract video player that provides a basic interface that all subclasses must implement...
Definition: YiAbstractVideoPlayer.h:56
CYIVideoSurfaceTexture(Capabilities capabilities=Capabilities::None)
const std::shared_ptr< CYIMaterial > & GetMaterial() const
Representation of a CYIAbstractVideoPlayer&#39;s video surface, if the player is rendering to a texture...
Definition: YiVideoSurfaceTexture.h:17
No capabilities. This can be used to initialize variables.
Representation of a CYIAbstractVideoPlayer&#39;s video surface.
Definition: YiVideoSurface.h:34
View representation of a CYIAbstractVideoPlayer&#39;s CYIVideoSurface.
Definition: YiVideoSurfaceView.h:32