Files
ox/src/nostalgia/core/qt/gfx.cpp
T
gary d09dc5cc01 [nostalgia] Remove dynamic library usage
Will make dynamically loaded Modules impossible, but they add complexity
and really aren't that useful...
2020-12-17 20:08:02 -06:00

45 lines
1003 B
C++

/*
* Copyright 2016 - 2019 gtalent2@gmail.com
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "../gfx.hpp"
namespace nostalgia::core {
ox::Error initGfx(Context*) {
return OxError(1);
}
ox::Error shutdownGfx(Context*) {
return OxError(1);
}
ox::Error initConsole(Context*) {
return OxError(1);
}
ox::Error loadBgTileSheet(Context*,
int,
ox::FileAddress,
ox::FileAddress) {
return OxError(1);
}
void puts(Context *ctx, int column, int row, const char *str) {
for (int i = 0; str[i]; i++) {
setTile(ctx, 0, column + i, row, static_cast<uint8_t>(charMap[static_cast<int>(str[i])]));
}
}
void setTile(Context*, int, int, int, uint8_t) {
}
void setSprite(Context*, unsigned, unsigned, unsigned, unsigned, unsigned, unsigned, unsigned) {
}
}