FreeGLUT APIには、ウィンドウ管理用の関数がいくつかあります。
int glutCreateWindow(const char * title );
int glutCreateSubWindow(int window, int x, int y, int width, int height);
void glutDestroyWindow(int window);
void glutSetWindow(int window);
int glutGetWindow(void);
void glutSetWindowTitle(const char* title);
void glutSetIconTitle(const char* title);
void glutReshapeWindow(int width, int height);
void glutPositionWindow(int x, int y);
私はこれに完全に慣れていません。固有のタイトルと位置を持つ 4 つのウィンドウを作成するにはどうすればよいでしょうか? で 2 番目のウィンドウが作成されるとglutCreateWindow()、最初のウィンドウに再度アクセスする方法がないようです。
これまでのところ、 で 1 つのウィンドウを作成し、 とでglutCreateWindow("window 1");それを再形成および再配置できますが、複数のウィンドウを同時に管理する方法について途方に暮れています。glutReshapeWindow(width, height)glutPositionWindow(x, y)
Windows XP で MinGW/MSYS を実行しています。