ディスプレイサイズの取得
#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);
cout << "current_size: "
<< current_size.
width() <<
" x " << current_size.
height() << endl;
vector<SizeF> sizes = display_size.
sizes();
for (vector<SizeF>::const_iterator it = sizes.begin();
it != sizes.end(); ++it) {
cout << it->width() << " x " << it->height() << endl;
}
return 0;
}