blob: c2899fa4ef8148c933c3e43db737755a7549e522 [file] [log] [blame] [edit]
// 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 <string>
#include "impeller/renderer/command_buffer.h"
#include "impeller/renderer/context.h"
namespace example {
class ExampleBase {
public:
struct Info {
const char* name;
const char* description;
};
virtual ~ExampleBase();
virtual Info GetInfo() = 0;
virtual bool Setup(impeller::Context& context) = 0;
virtual bool Render(impeller::Context& context,
const impeller::RenderTarget& render_target,
impeller::CommandBuffer& command_buffer) = 0;
};
} // namespace example