Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Bragi.hpp>
- #pragma comment( lib, "GUIWrapper.lib" )
- #include <stdio.h>
- #include <math.h>
- bool MyResizeFunction( Bragi::Window* Wnd, int* W, int* H ) {
- *W = (int)fmod( (double)rand(), 800 );
- *H = (int)fmod( (double)rand(), 600 );
- return true;
- }
- int main() {
- Bragi::Window Wnd = Bragi::Window( "Some title" );
- Wnd.SetPosition( 400, 200 );
- Wnd.SetSize( 500, 500 );
- Wnd.SetVisible( true );
- Wnd.OnResize = &MyResizeFunction;
- Wnd.SetTitle( "New title" );
- while( true ) {
- Wnd.Think();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement