Init squashed
This commit is contained in:
commit
4aac4b824f
95 changed files with 7582 additions and 0 deletions
19
examples/01_hello_world/main.cpp
Normal file
19
examples/01_hello_world/main.cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
#include <legs/entry.hpp>
|
||||
#include <legs/log.hpp>
|
||||
|
||||
using namespace legs;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
Log::SetLogLevel(LogLevel::Debug);
|
||||
|
||||
auto code = LEGS_Init(argc, argv);
|
||||
if (code < 0)
|
||||
{
|
||||
return code;
|
||||
}
|
||||
|
||||
g_engine->GetWindow()->SetTitle("01_hello_world");
|
||||
|
||||
return LEGS_Run();
|
||||
}
|
1
examples/01_hello_world/meson.build
Normal file
1
examples/01_hello_world/meson.build
Normal file
|
@ -0,0 +1 @@
|
|||
executable('01_hello_world', files('main.cpp'), dependencies: [legs_dep])
|
Loading…
Add table
Add a link
Reference in a new issue