画面のトグル
#include <iostream>
#include <SDL.h>
using namespace hrk;
using namespace std;
int main(int argc, char *argv[])
{
static_cast<void>(argc);
static_cast<void>(argv);
if (!main_window.
show(
SizeF(640, 480))) {
cout <<
"Screen::show(): " << main_window.
what() << endl;
return 1;
}
Scene* scene = view.
front();
Layer* layer = scene->
front();
label.
set_position(
PointF(220, 120));
layer->
push_front(&label);
main_window.
set_fullscreen(
true);
delay_sec(5.0);
main_window.set_fullscreen(false);
view.redraw();
delay_sec(5.0);
#if 1
main_window.set_fullscreen(true);
view.redraw();
delay_sec(5.0);
#endif
return 0;
}