GuiSetEntity.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /*
  2. * Copyright © 2011-2020 Frictional Games
  3. *
  4. * This file is part of Amnesia: A Machine For Pigs.
  5. *
  6. * Amnesia: A Machine For Pigs is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. * Amnesia: A Machine For Pigs is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with Amnesia: A Machine For Pigs. If not, see <https://www.gnu.org/licenses/>.
  17. */
  18. #ifndef HPL_GUI_SET_ENTITY_H
  19. #define HPL_GUI_SET_ENTITY_H
  20. #include "math/MathTypes.h"
  21. #include "graphics/GraphicsTypes.h"
  22. #include "system/SystemTypes.h"
  23. #include "scene/Entity3D.h"
  24. #include "graphics/Renderable.h"
  25. namespace hpl {
  26. class cResources;
  27. class cGraphics;
  28. class cGui;
  29. class cGuiSet;
  30. //------------------------------------------
  31. class cGuiSetEntity : public iRenderable
  32. {
  33. #ifdef __GNUC__
  34. typedef iRenderable __super;
  35. #endif
  36. public:
  37. cGuiSetEntity(const tString asName,cGuiSet *apSet);
  38. ~cGuiSetEntity();
  39. void SetGuiSet(cGuiSet *apSet);
  40. cGuiSet* GetGuiSet(){ return mpGuiSet;}
  41. /////////////////////////////////
  42. //Entity implementation
  43. tString GetEntityType(){ return "GuiSetEntity";}
  44. /////////////////////////////////
  45. //Renderable implementations
  46. cMaterial *GetMaterial(){ return NULL;}
  47. iVertexBuffer* GetVertexBuffer(){return NULL;}
  48. eRenderableType GetRenderType(){ return eRenderableType_GuiSet;}
  49. cMatrixf* GetModelMatrix(cFrustum *apFrustum);
  50. int GetMatrixUpdateCount();
  51. private:
  52. cGuiSet *mpGuiSet;
  53. cMatrixf m_mtxTemp;
  54. };
  55. };
  56. #endif // HPL_GUI_SET_ENTITY_H