home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectShow / Players / Texture3D / dshowtextures.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-10-31  |  1.6 KB  |  40 lines

  1. //-----------------------------------------------------------------------------
  2. // File: DShowTextures.h
  3. //
  4. // Desc: DirectShow sample code - adds support for DirectShow videos playing 
  5. //       on a DirectX 8.0 texture surface. Turns the D3D texture tutorial into 
  6. //       a recreation of the VideoTex sample from previous versions of DirectX.
  7. //
  8. // Copyright (c) 2000-2001 Microsoft Corporation.  All rights reserved.
  9. //-----------------------------------------------------------------------------
  10.  
  11.  
  12. #include <streams.h>
  13.  
  14. //-----------------------------------------------------------------------------
  15. // Define GUID for Texture Renderer
  16. // {71771540-2017-11cf-AE26-0020AFD79767}
  17. //-----------------------------------------------------------------------------
  18. struct __declspec(uuid("{71771540-2017-11cf-ae26-0020afd79767}")) CLSID_TextureRenderer;
  19.  
  20. //-----------------------------------------------------------------------------
  21. // CTextureRenderer Class Declarations
  22. //-----------------------------------------------------------------------------
  23. class CTextureRenderer : public CBaseVideoRenderer
  24. {
  25. public:
  26.     CTextureRenderer(LPUNKNOWN pUnk,HRESULT *phr);
  27.     ~CTextureRenderer();
  28.  
  29. public:
  30.     HRESULT CheckMediaType(const CMediaType *pmt );     // Format acceptable?
  31.     HRESULT SetMediaType(const CMediaType *pmt );       // Video format notification
  32.     HRESULT DoRenderSample(IMediaSample *pMediaSample); // New video sample
  33.     
  34.     LONG m_lVidWidth;    // Video width
  35.     LONG m_lVidHeight;    // Video Height
  36.     LONG m_lVidPitch;    // Video Pitch
  37. };
  38.  
  39.  
  40.