当前位置: 首页>>代码示例>>C++>>正文


C++ CPVRTPrint3D::CreateDefaultWindow方法代码示例

本文整理汇总了C++中CPVRTPrint3D::CreateDefaultWindow方法的典型用法代码示例。如果您正苦于以下问题:C++ CPVRTPrint3D::CreateDefaultWindow方法的具体用法?C++ CPVRTPrint3D::CreateDefaultWindow怎么用?C++ CPVRTPrint3D::CreateDefaultWindow使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CPVRTPrint3D的用法示例。


在下文中一共展示了CPVRTPrint3D::CreateDefaultWindow方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: InitApplication

/*!****************************************************************************
 @Function		InitApplication
 @Return		bool		true if no error occured
 @Description	Code in InitApplication() will be called by PVRShell once per
				run, before the rendering context is created.
				Used to initialize variables that are not dependant on it
				(e.g. external modules, loading meshes, etc.)
				If the rendering context is lost, InitApplication() will
				not be called again.
******************************************************************************/
bool OGLESFur::InitApplication()
{
	// Get and set the read path for content files
	CPVRTResourceFile::SetReadPath((char*)PVRShellGet(prefReadPath));

	// Load the scene
	if(m_Scene.ReadFromFile(c_szSceneFile) != PVR_SUCCESS)
	{
		PVRShellSet(prefExitMessage, "ERROR: Couldn't load the .pod file\n");
		return false;
	}

	m_ui32WindowID[0] = m_Print3D.CreateDefaultWindow(1.0f, 1.0f, 60, (char*) WINDOW_TITLE, 0);
	m_ui32WindowID[1] = m_Print3D.CreateDefaultWindow(1.0f, 1.0f, 60, (char*) WINDOW_TITLE" (1 of 5)", (char*) &c_szWindowDesc1[0]);
	m_ui32WindowID[2] = m_Print3D.CreateDefaultWindow(1.0f, 1.0f, 60, (char*) WINDOW_TITLE" (2 of 5)", (char*) &c_szWindowDesc2[0]);
	m_ui32WindowID[3] = m_Print3D.CreateDefaultWindow(1.0f, 1.0f, 60, (char*) WINDOW_TITLE" (3 of 5)", (char*) &c_szWindowDesc3[0]);
	m_ui32WindowID[4] = m_Print3D.CreateDefaultWindow(1.0f, 1.0f, 60, (char*) WINDOW_TITLE" (4 of 5)", (char*) &c_szWindowDesc4[0]);
	m_ui32WindowID[5] = m_Print3D.CreateDefaultWindow(1.0f, 1.0f, 60, (char*) WINDOW_TITLE" (5 of 5)", (char*) &c_szWindowDesc5[0]);
	return true;
}
开发者ID:,项目名称:,代码行数:30,代码来源:


注:本文中的CPVRTPrint3D::CreateDefaultWindow方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。