BsGUIElementContainer.cpp 971 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include "BsGUIElementContainer.h"
  2. #include "BsGUISkin.h"
  3. namespace BansheeEngine
  4. {
  5. GUIElementContainer::GUIElementContainer(const GUIDimensions& dimensions, const String& style)
  6. :GUIElement(style, dimensions)
  7. { }
  8. GUIElementContainer::~GUIElementContainer()
  9. { }
  10. UINT32 GUIElementContainer::_getNumRenderElements() const
  11. {
  12. return 0;
  13. }
  14. const GUIMaterialInfo& GUIElementContainer::_getMaterial(UINT32 renderElementIdx) const
  15. {
  16. BS_EXCEPT(InvalidStateException, "Trying to retrieve a material from an element with no render elements.");
  17. }
  18. UINT32 GUIElementContainer::_getNumQuads(UINT32 renderElementIdx) const
  19. {
  20. return 0;
  21. }
  22. void GUIElementContainer::_fillBuffer(UINT8* vertices, UINT8* uv, UINT32* indices, UINT32 startingQuad, UINT32 maxNumQuads,
  23. UINT32 vertexStride, UINT32 indexStride, UINT32 renderElementIdx) const
  24. { }
  25. Vector2I GUIElementContainer::_getOptimalSize() const
  26. {
  27. return Vector2I();
  28. }
  29. }