Extract standalone Playground SDK source foundation
This commit is contained in:
commit
d49c22a06c
3567 changed files with 1657902 additions and 0 deletions
19
tests/api_synthetic.cpp
Normal file
19
tests/api_synthetic.cpp
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include "audio/audio.h"
|
||||
#include "audio/cadi_bank.h"
|
||||
#include "gfx/character.h"
|
||||
#include "gfx/draw.h"
|
||||
#include "platform/display.h"
|
||||
#include <cassert>
|
||||
|
||||
int main() {
|
||||
playground::DecodedSound sound;
|
||||
std::string error;
|
||||
const playground::Bytes invalid{0, 1, 2, 3};
|
||||
assert(!playground::decodeOgg(invalid, sound, &error));
|
||||
playground::CadiBank bank;
|
||||
assert(!bank.load(invalid, &error));
|
||||
// Compile-time API coverage for display, drawing, and character parsing.
|
||||
static_assert(sizeof(playground::Display) > 0);
|
||||
static_assert(sizeof(playground::Draw) > 0);
|
||||
static_assert(sizeof(playground::CharacterAtlas) > 0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue