// Copyright 2014-2023 the openage authors. See copying.md for legal info.

#pragma once

#include "../presenter/legacy/legacy.h"

namespace openage {

class LegacyEngine;

namespace util {
class FD;
} // namespace util

namespace console {

class Buf;
class Console;

namespace draw {

/**
 * experimental and totally inefficient opengl draw of a terminal buffer.
 */
void to_opengl(presenter::LegacyDisplay *engine, Console *console);

/**
 * very early and inefficient printing of the console to a pty.
 */
void to_terminal(Buf *buf, util::FD *fd, bool clear = false);

} // namespace draw
} // namespace console
} // namespace openage
