本文整理汇总了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();
}
示例2: clean_up
void clean_up()
{
#if TWEAK_MENU
TwTerminate();
#endif // TWEAK_MENU
SDL_Quit();
}
示例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();
}
示例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;
}
示例5: TwTerminate
CDebugHelperImplementation::~CDebugHelperImplementation()
{
// TODO: finalizar AntTweakBar
int status = TwTerminate();
assert(status);
}
示例6: TwTerminate
void outPut::reInit()
{
///Terminer AntTweakBar
TwTerminate();
///Terminer GLFW
glfwTerminate();
init_outPut();
}
示例7: TwDeleteAllBars
void Scene::Shutdown()
{
//LAST
TwDeleteAllBars();
TwTerminate();
}
示例8: TwTerminate
void AntTweakBarWrapper::Cleanup()
{
m_control_panel_bar = NULL;
m_mesh_bar = NULL;
m_sim_bar = NULL;
TwTerminate();
}
示例9: TwDeleteBar
Gui::~Gui()
{
if(m_tweakbar)
{
TwDeleteBar(m_tweakbar);
}
TwTerminate();
}
示例10: main
int main(int argc, char *argv[])
{
init(argc, argv);
run();
TwTerminate();
free_resources();
return 0;
}
示例11: TwTerminate
ControlUI::~ControlUI()
{
//SAFE_DELETE(mpBar);
if (mIsUseTw)
{
TwTerminate();
}
}
示例12: TwTerminate
bool Tweaker::Terminate()
{
if(s_isInit && !s_doNotUseLib) {
Tweaker::Close();
return TwTerminate() == 0? false : true;
} else {
return false;
}
}
示例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();
}
示例14: destroyObjects
void destroyObjects(void){
#if _DEBUG
FPS_delete(_fpsCounter);
#endif
Camera_delete(_camera);
SSController_Delete();
GameTime_delete(gameTime);
TwTerminate();
}
示例15: TwTerminate
GLFW_App::~GLFW_App()
{
TwTerminate();
// close all windows
m_windows.clear();
// terminate GLFW
glfwTerminate();
}