Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

  1. /*****************************************************************************\
  2. FILE: painting.h
  3. DESCRIPTION:
  4. BryanSt 12/24/2000
  5. Copyright (C) Microsoft Corp 2000-2001. All rights reserved.
  6. \*****************************************************************************/
  7. #ifndef PAINTING_H
  8. #define PAINTING_H
  9. #include "util.h"
  10. #include "main.h"
  11. //-----------------------------------------------------------------------------
  12. // Defines, constants, and global variables
  13. //-----------------------------------------------------------------------------
  14. #define SIZE_MAXPAINTINGSIZE_INWALLPERCENT 0.5f
  15. class CPainting
  16. {
  17. public:
  18. HRESULT OneTimeSceneInit(void);
  19. HRESULT Render(IDirect3DDevice8 * lpDev, int nPhase);
  20. HRESULT FinalCleanup(void);
  21. HRESULT DeleteDeviceObjects(void);
  22. HRESULT SetPainting(CTexture * pFrameTexture, CTexture * pPaintingTexture, D3DXVECTOR3 vLocationCenter, float fMaxHeight,
  23. float fFrameWidth, float fFrameHeight, D3DXVECTOR3 vNormal, DWORD dwMaxPixelSize);
  24. CPainting(CMSLogoDXScreenSaver * pMain);
  25. virtual ~CPainting();
  26. CTexture * m_pPaintingTexture;
  27. private:
  28. CMSLogoDXScreenSaver * m_pMain; // Weak reference
  29. C3DObject * m_pObjPainting;
  30. C3DObject * m_pObjFrame;
  31. CTexture * m_pFrameTexture;
  32. };
  33. #endif // PAINTING_H