How to switch game windows

From J2Play

Jump to: navigation, search

Sometimes, there is a splash window before the actual game window shown. So you need to insert the splash window into community by GDKInstance::InsertGameIntoCommunity() firstly, and then using the following API to update game window which have been wrapped into J2Play community.

CGDKInstance::GetInstance()->UpdateGameWindow(hwndGame, width, height);

Hint: If you uses Direct3D in your game, you need to make sure finish all D3D device initialization before you call the InsertGameIntoCommunity().

Personal tools