Extract standalone Playground SDK source foundation
This commit is contained in:
commit
d49c22a06c
3567 changed files with 1657902 additions and 0 deletions
14
examples/consumer/main.cpp
Normal file
14
examples/consumer/main.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include "core/vfs.h"
|
||||
#include "ui/controls.h"
|
||||
extern "C" {
|
||||
#include "lua.h"
|
||||
}
|
||||
|
||||
int main() {
|
||||
playground::Rollover button({0, 0, 10, 10});
|
||||
if (!button.down(5, 5) || !button.up(5, 5)) return 1;
|
||||
lua_State* state = lua_open();
|
||||
if (!state) return 2;
|
||||
lua_close(state);
|
||||
return playground::normalizePath("A\\B") == "a/b" ? 0 : 3;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue