INNER CODE UNIT · C++

view

Xrysnow/LuaSTG-x · frameworks/Classes/WindowHelper.cpp:17

	auto view = dynamic_cast<GLViewImpl*>(Director::getInstance()->getOpenGLView());
	CC_ASSERT(view);
	static WindowHelperWin32 instance(
		view,
		view->getWin32Window());
#elif (CC_TARGET_PLATFORM == CC_PLATFORM_MAC)||(CC_TARGET_PLATFORM == CC_PLATFORM_LINUX)
	auto view = dynamic_cast<GLViewImpl*>(Director::getInstance()->getOpenGLView());
	assert(view);
	static WindowHelperDesktop instance(view);
#else
	static WindowHelper instance;
#endif
	return &instance;
}

#ifdef CC_PLATFORM_PC

WindowHelperDesktop::WindowHelperDesktop(GLViewImpl* view): view(view)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…