BsRenderableElement.h 792 B

1234567891011121314151617181920212223242526272829
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsPrerequisites.h"
  5. #include "BsSubMesh.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Renderer-Engine-Internal
  9. * @{
  10. */
  11. /** Contains all information needed for rendering a single sub-mesh. Closely tied with Renderer. */
  12. class BS_EXPORT RenderableElement
  13. {
  14. public:
  15. /** Reference to the mesh to render. */
  16. SPtr<MeshCore> mesh;
  17. /** Portion of the mesh to render. */
  18. SubMesh subMesh;
  19. /** Material to render the mesh with. */
  20. SPtr<MaterialCore> material;
  21. };
  22. /** @} */
  23. }