Search
⌃K

Creating an application

Make sure to include the Byte source into your enviroment like so
add_subdirectoy(Byte-Engine)
link_libraries(BYTE_ENGINE)
Next we will create a file where we are going to start putting code, we will call it main.cpp and define a function called CreateApplication with following signature `void CreateApplication() this will be our entry point this function will be called by main and it will intialize the engine and subsequently your application.

Application

All process wide state resides and is managed by a BE::Application . You can define your own to extend it's functionality but it is not necessary unless you need to change allocators, setup threads, do enviroment validation or setup state before some systems initialize.
None the less here's how to do it.
Define a class like MyApplication and make it inherit BE::Application.