-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Егор edited this page Feb 20, 2024
·
9 revisions
Some info about lib.
now this lib not working...
At the beginning of main you need to call the init() function,
KolibriLib::init()
it loads the necessary libraries
if you want to use gui, you need to create an instance of the window::Window class.
example:
#include <KolibriLib.hpp> int main(){ KolibriLib::init(); KolibriLib::window::Window wnd("Example Window"); wnd.AddElement(KolibriLib::text::TextLabel({0,0}, window.GetWindowSize(), "Hello World!")); wnd.Redraw(); while(true){ KolibriLib::OS::Event event = wnd.Handler(); if (event = KolibriLib::OS::Events::Exit){ break; } } }
read all in the Docs/html/index.html