mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
adding depth buffer, ci skip
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define __MLX_SCENE__
|
||||
|
||||
#include <Graphics/Sprite.h>
|
||||
#include <Renderer/ViewerData.h>
|
||||
|
||||
namespace mlx
|
||||
{
|
||||
@@ -18,14 +19,20 @@ namespace mlx
|
||||
|
||||
Sprite& CreateSprite(std::shared_ptr<class Texture> texture) noexcept;
|
||||
|
||||
[[nodiscard]] inline const std::vector<std::shared_ptr<Sprite>>& GetSprites() const noexcept { return m_sprites; }
|
||||
[[nodiscard]] inline const SceneDescriptor& GetDescription() const noexcept { return m_descriptor; }
|
||||
inline void ResetSprites() { m_sprites.clear(); }
|
||||
|
||||
[[nodiscard]] MLX_FORCEINLINE const std::vector<std::shared_ptr<Sprite>>& GetSprites() const noexcept { return m_sprites; }
|
||||
[[nodiscard]] MLX_FORCEINLINE const SceneDescriptor& GetDescription() const noexcept { return m_descriptor; }
|
||||
[[nodiscard]] MLX_FORCEINLINE DepthImage& GetDepth() noexcept { return m_depth; }
|
||||
[[nodiscard]] MLX_FORCEINLINE ViewerData& GetViewerData() noexcept { return m_viewer_data; }
|
||||
|
||||
~Scene() = default;
|
||||
|
||||
private:
|
||||
SceneDescriptor m_descriptor;
|
||||
std::vector<std::shared_ptr<Sprite>> m_sprites;
|
||||
DepthImage m_depth;
|
||||
ViewerData m_viewer_data;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user