You.i Engine
YiVideoSurfaceTexture.h
Go to the documentation of this file.
1 // © You i Labs Inc. 2000-2017. 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 
22 protected:
23 
27  virtual void Init() override;
28 
34  CYIVideoSurfaceTexture(uint32_t uCapabilities = 0);
35 
41  const std::shared_ptr<CYIMaterial> &GetMaterial() const;
42 
43 private:
44 
50  virtual void InitializeMaterial(const std::shared_ptr<CYIMaterial> &pVideoMaterial) = 0;
51 
55  virtual void InitializeTexture() = 0;
56 
57 private:
58  std::shared_ptr<CYIMaterial> m_pVideoMaterial;
59 };
60 
65 #endif
virtual void Init() override
An abstract video player that provides a basic interface that all subclasses must implement...
Definition: YiAbstractVideoPlayer.h:55
Representation of a CYIAbstractVideoPlayer&#39;s video surface, if the player is rendering to a texture...
Definition: YiVideoSurfaceTexture.h:17
Representation of a CYIAbstractVideoPlayer&#39;s video surface.
Definition: YiVideoSurface.h:34
const std::shared_ptr< CYIMaterial > & GetMaterial() const
View representation of a CYIAbstractVideoPlayer&#39;s CYIVideoSurface.
Definition: YiVideoSurfaceView.h:31
CYIVideoSurfaceTexture(uint32_t uCapabilities=0)