27#if (CC_TARGET_PLATFORM == CC_PLATFORM_MAC || CC_TARGET_PLATFORM == CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
30WindowTests::WindowTests() {
43 GLViewImpl* view = (GLViewImpl*)Director::getInstance()->getOpenGLView();
44 view->setWindowed(480, 320);
48 return "Windowed 480x320";
53 GLViewImpl* view = (GLViewImpl*)Director::getInstance()->getOpenGLView();
54 view->setWindowed(960, 640);
58 return "Windowed 960x640";
63 GLViewImpl* view = (GLViewImpl*)Director::getInstance()->getOpenGLView();
64 view->setFullscreen();
73 GLViewImpl* view = (GLViewImpl*)Director::getInstance()->getOpenGLView();
74 view->setFullscreen(1);
78 return "Fullscreen Monitor 2 (if present)";
#define ADD_TEST_CASE(__className__)
virtual void onEnter() override
virtual std::string subtitle() const override
virtual void onEnter() override
virtual void onEnter() override
virtual std::string subtitle() const override
virtual std::string title() const override
virtual void onEnter() override
virtual std::string subtitle() const override
virtual std::string subtitle() const override
virtual void onEnter() override