blob: 7a1df4543d97335a0d97e5ef83d5f5b02d595e31 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include <memory>
#include <type_traits>
#include "flutter/fml/macros.h"
#include "impeller/scene/geometry.h"
#include "impeller/scene/material.h"
#include "impeller/scene/scene_entity.h"
namespace impeller {
namespace scene {
class StaticMeshEntity final : public SceneEntity {
public:
StaticMeshEntity();
~StaticMeshEntity();
void SetGeometry(std::shared_ptr<Geometry> material);
void SetMaterial(std::shared_ptr<Material> material);
private:
// |SceneEntity|
bool OnRender(SceneEncoder& encoder, const Camera& camera) const override;
std::shared_ptr<Material> material_;
std::shared_ptr<Geometry> geometry_;
FML_DISALLOW_COPY_AND_ASSIGN(StaticMeshEntity);
};
} // namespace scene
} // namespace impeller