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


C++ TwTerminate函数代码示例

本文整理汇总了C++中TwTerminate函数的典型用法代码示例。如果您正苦于以下问题:C++ TwTerminate函数的具体用法?C++ TwTerminate怎么用?C++ TwTerminate使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: delete

void PBRDemo::Shutdown() {
	// Release in the opposite order we initialized in
	delete m_pointLightBuffer;
	delete m_spotLightBuffer;
	delete m_instanceBuffer;
	delete(m_instancedGBufferVertexShader);
	delete(m_fullscreenTriangleVertexShader);
	delete(m_tiledCullFinalGatherComputeShader);
	delete(m_postProcessPixelShader);
	ReleaseCOM(m_defaultInputLayout);
	ReleaseCOM(m_debugObjectInputLayout);

	for (auto iter = m_gBuffers.begin(); iter != m_gBuffers.end(); ++iter) {
		delete *iter;
	}

	delete m_depthStencilBuffer;
	ReleaseCOM(m_backbufferRTV);

	if (m_sceneLoaderThread.joinable()) {
		m_sceneLoaderThread.detach();
	}

	TwTerminate();

	Engine::HalflingEngine::Shutdown();
}
开发者ID:RichieSams,项目名称:thehalflingproject,代码行数:27,代码来源:pbr_demo.cpp

示例2: clean_up

void clean_up()
{
#if TWEAK_MENU
	TwTerminate();
#endif // TWEAK_MENU
	SDL_Quit();
}
开发者ID:jbehjohn,项目名称:TerrainViewer,代码行数:7,代码来源:Main.cpp

示例3: TwTerminate

// Release the memory held by all objects created
void CScene::ReleaseResources()
{
	// The D3D setup and preparation of the geometry created several objects that use up memory (e.g. textures, vertex/index buffers etc.)
	// Each object that allocates memory (or hardware resources) needs to be "released" when we exit the program
	// There is similar code in every D3D program, but the list of objects that need to be released depends on what was created
	// Test each variable to see if it exists before deletion
	if( mpd3dDeviceContext )     mpd3dDeviceContext->ClearState();

	//delete Camera;

	for(int i = 0; i < miNumObjects; i++)
	{
		delete mpObjects[i];
	}

	for(int i = 0; i < miNumLights; i++)
	{
		delete mpLights[i];
	}
	
	for(int i = 0; i < miNumMaps; i++)
	{
		if ( mpMaps[i] )
			mpMaps[i]->Release();
	}

	if( Effect )           Effect->Release();
	if( DepthStencilView ) DepthStencilView->Release();
	if( RenderTargetView ) RenderTargetView->Release();
	if( DepthStencil )     DepthStencil->Release();
	if( SwapChain )        SwapChain->Release();
	if( mpd3dDevice )     mpd3dDevice->Release();
	TwTerminate();
}
开发者ID:Phishfood,项目名称:UCLAN-sparta,代码行数:35,代码来源:Scene.cpp

示例4: main

////////////////////////////////////////////////////////////////////////////////
// Program main
////////////////////////////////////////////////////////////////////////////////
int main(int argc, char *argv[])
{
    if (!initGlfw(argc, argv))
        return 0;
    if (!initGL(argc, argv))
        return 0;

    LOG_INFO("Starting main loop.");

    running = GL_TRUE;
    //g_timer.reset();
    while (
        running &&
        !glfwWindowShouldClose(g_pWindow) &&
        !glfwWindowShouldClose(g_pWindow2)
        )
    {
        //float dt = (float)g_timer.seconds();
        //timestep(dt);
        //g_timer.reset();
        display();
        //running = running && glfwGetWindowParam(GLFW_OPENED);
        glfwPollEvents();
    }
    
    TwTerminate();
    glfwTerminate();
    return 0;
}
开发者ID:jimbo00000,项目名称:OpenGLMultiSkeleton,代码行数:32,代码来源:glfw3_skeleton_2win.cpp

示例5: TwTerminate

CDebugHelperImplementation::~CDebugHelperImplementation()
{
	// TODO: finalizar AntTweakBar
	
	int status = TwTerminate();
	assert(status);

}
开发者ID:MarcVinas,项目名称:masterUAB,代码行数:8,代码来源:DebugHelperImplementation.cpp

示例6: TwTerminate

void outPut::reInit()
{
    ///Terminer AntTweakBar
    TwTerminate();
    ///Terminer GLFW
    glfwTerminate();
    init_outPut();
}
开发者ID:Firobe,项目名称:Pathfinder,代码行数:8,代码来源:output_2.cpp

示例7: TwDeleteAllBars

void Scene::Shutdown()
{
	

	//LAST
	TwDeleteAllBars();
	TwTerminate();
}
开发者ID:Neucrotic,项目名称:GraphicsReview,代码行数:8,代码来源:Scene.cpp

示例8: TwTerminate

void AntTweakBarWrapper::Cleanup()
{
    m_control_panel_bar = NULL;
    m_mesh_bar = NULL;
    m_sim_bar = NULL;

    TwTerminate();
}
开发者ID:apapaxiong,项目名称:openglFrame,代码行数:8,代码来源:UI_warpper.cpp

示例9: TwDeleteBar

Gui::~Gui()
{
    if(m_tweakbar)
    {
        TwDeleteBar(m_tweakbar);
    }
    TwTerminate();
}
开发者ID:karajensen,项目名称:tiny-toon-tanks,代码行数:8,代码来源:Gui.cpp

示例10: main

int main(int argc, char *argv[])
{
    init(argc, argv);
    run();

    TwTerminate();
    free_resources();
    return 0;
}
开发者ID:lragnarsson,项目名称:Emerald-Engine,代码行数:9,代码来源:main.cpp

示例11: TwTerminate

ControlUI::~ControlUI()
{
	//SAFE_DELETE(mpBar);

	if (mIsUseTw)
	{
		TwTerminate();
	}	
}
开发者ID:WindyPaper,项目名称:Paper,代码行数:9,代码来源:ControlUI.cpp

示例12: TwTerminate

bool Tweaker::Terminate()
{
	if(s_isInit && !s_doNotUseLib) {
		Tweaker::Close();
		return TwTerminate() == 0? false : true;
	} else {
		return false;
	}
}
开发者ID:MeteoricGames,项目名称:pioneer,代码行数:9,代码来源:Tweaker.cpp

示例13: Terminate

// Function called at exit
void Terminate(void)
{ 
    int i;
	for (i=0; i<2; i++) {
		glutSetWindow(g_SubWindowData[i].WinID);	
    	glDeleteLists(SHAPE_TEAPOT, NUM_SHAPES);
	}
    TwTerminate();
}
开发者ID:AGoodGameMaker,项目名称:opengl-tutorial-org,代码行数:10,代码来源:TwDualGLUT.c

示例14: destroyObjects

void destroyObjects(void){
	#if _DEBUG
		FPS_delete(_fpsCounter);
	#endif
	Camera_delete(_camera);
	SSController_Delete();
	GameTime_delete(gameTime);

	TwTerminate();
}
开发者ID:vvolkgang,项目名称:YASS,代码行数:10,代码来源:main.c

示例15: TwTerminate

 GLFW_App::~GLFW_App()
 {
     TwTerminate();
     
     // close all windows
     m_windows.clear();
     
     // terminate GLFW
     glfwTerminate();
 }
开发者ID:mojovski,项目名称:KinskiGL,代码行数:10,代码来源:GLFW_App.cpp


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