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


C++ IsCreated函数代码示例

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


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

示例1: Delete

void GLBufferObject::Delete()
{
	if(!IsCreated()) return;

	glDeleteBuffers(m_id.GetCount(), &m_id[0]);
	m_id.Clear();
	m_type = 0;
}
开发者ID:Magn3s1um,项目名称:rpcs3,代码行数:8,代码来源:GLBuffers.cpp

示例2: SHVASSERT

/*************************************
 * SetHandle
 *************************************/
void SHVControlImplementerWin32Base::SetHandle(HWND handle)
{
	if (Window == handle)
		return;

	SHVASSERT(!IsCreated());
	Window = handle;
}
开发者ID:ElmerFuddDK,项目名称:libshiva,代码行数:11,代码来源:shvcontrolimplementerwin32base.cpp

示例3: Delete

void GLvao::Delete()
{
	if(!IsCreated()) return;

	Unbind();
	glDeleteVertexArrays(1, &m_id);
	m_id = 0;
}
开发者ID:Apicio,项目名称:rpcs3,代码行数:8,代码来源:GLBuffers.cpp

示例4: SetHandle

/*************************************
 * Create
 *************************************/
SHVBool SHVControlImplementerButtonGtk::Create(SHVControl* owner, SHVControlImplementer* parent, int flags)
{
	if (!IsCreated() && parent && parent->IsCreated())
	{
		SetHandle(gtk_button_new_with_label(NULL));
		gtk_container_add(GTK_CONTAINER (parent->GetNative()), GetHandle());
		
		g_signal_connect (G_OBJECT (GetHandle()), "clicked",
						  G_CALLBACK (SHVControlImplementerButtonGtk::on_clicked), owner);
		owner->SetFont(NULL,true);
		owner->SetFlag(flags);
		
		return IsCreated();
	}
	
	return SHVBool::False;
}
开发者ID:ElmerFuddDK,项目名称:libshiva,代码行数:20,代码来源:shvcontrolimplementerbuttongtk.cpp

示例5: Stop

void XLAcceptorThread::Stop()
{
	if(IsCreated())
	{
		m_bExit = true;
		XLSimpleThreads::Destroy();
	}
}
开发者ID:akhileshzmishra,项目名称:ServerClient,代码行数:8,代码来源:XLAcceptorThread.cpp

示例6: Start

void XLAcceptorThread::Start()
{
	if(!IsCreated())
	{
		m_bExit = false;
		XLSimpleThreads::Create("ACCEPTORTHREAD");
	}
}
开发者ID:akhileshzmishra,项目名称:ServerClient,代码行数:8,代码来源:XLAcceptorThread.cpp

示例7: Create

void GLBufferObject::Create(GLuint type, u32 count)
{
	if(IsCreated()) return;

	m_id.InsertRoomEnd(count);
	glGenBuffers(count, &m_id[0]);
	m_type = type;
}
开发者ID:Magn3s1um,项目名称:rpcs3,代码行数:8,代码来源:GLBuffers.cpp

示例8: OpenTransparencyDialog

void PS_TransparencyDialog::OpenTransparencyDialog(CWnd* pParentWnd)
{
    if (!IsCreated())
        DoCreateDialog(pParentWnd);

    Manage();

    UpdateUIFromDef();
}
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:9,代码来源:PS_TransparencyDialog.cpp

示例9: Create

void GLfbo::Create()
{
	if(IsCreated())
	{
		return;
	}

	glGenFramebuffers(1, &m_id);
}
开发者ID:Apicio,项目名称:rpcs3,代码行数:9,代码来源:GLBuffers.cpp

示例10: OnPropertyChanged

 void Nametag::OnPropertyChanged(const PropertyInfo *id, bool implicit)
 {
     if(id == &PlayerNameProperty || id == &HealthProperty)
     {
         if(IsCreated())
             UpdateStatus();
     }
     Billboard::OnPropertyChanged(id, implicit);
 }
开发者ID:ANerd,项目名称:Skyport-gl,代码行数:9,代码来源:Nametag.cpp

示例11: DebugAssert

Void D2D1RenderState::GetDesc( D2D1RenderStateDesc * outDesc ) const
{
    DebugAssert( IsCreated() );

    D2D1_DRAWING_STATE_DESCRIPTION hDesc;
    m_pStateBlock->GetDescription( &hDesc );

    outDesc->ConvertFrom( &hDesc );
}
开发者ID:Shikifuyin,项目名称:Scarab-Engine,代码行数:9,代码来源:D2D1RenderState.cpp

示例12: AdjustOffsets

 void GridControl::SetWindowPosition(const CRect& rect, int level)
 {
     CRect rcOff = AdjustOffsets(rect);
     if (!IsCreated()) {
         Create(rcOff);
     } else {
         CWnd::MoveWindow(rcOff);
     }
 }
开发者ID:jjayne,项目名称:nSIGHTS,代码行数:9,代码来源:PS_UIGrid.cpp

示例13: SetEnabled

void TButton::SetEnabled(bool enabled)
{
	if (fEnabled != enabled)
	{
		fEnabled = enabled;
		if (IsCreated())
			Redraw();
	}
}	
开发者ID:mikevoydanoff,项目名称:zoinks,代码行数:9,代码来源:TButton.cpp

示例14: Create

// ---------------------------------------------------------------------
void WinBitmapDC::Create(
	HDC dc,			//!< 作成したいビットマップDCと互換性のあるDC
	SInt32 width,	//!< ビットマップの幅
	SInt32 height	//!< ビットマップの高さ
)
{
	if (IsCreated())
	{
		throw new WinBitmapDCExceptions::AlreadyCreated();
	}
	
	HDC memDC;
	HBITMAP bitmap;
	
	// 指定されたDCと互換性のあるメモリDCを作成
	memDC = ::CreateCompatibleDC(dc);
	if (NULL == memDC)
	{
		throw new WinBitmapDCException();
	}
	
	try
	{
		// 指定されたDCと互換性のあるビットマップを作成
		bitmap = ::CreateCompatibleBitmap(dc, width, height);
		if (NULL == bitmap)
		{
			throw new WinBitmapDCException();
		}		
		
		try
		{
			// メモリDC にビットマップを結びつけておく
			this->oldBitmap = static_cast<HBITMAP>(::SelectObject(memDC, bitmap));
			if (NULL == this->oldBitmap)
			{
				throw new WinBitmapDCException();
			}
		}
		catch (...)
		{
			::DeleteObject(bitmap);
			bitmap = NULL;
			throw;
		}
	}
	catch (...)
	{
		::DeleteDC(memDC);
		memDC = NULL;
		throw;
	}

	this->memDC = memDC;
	this->bitmap = bitmap;
}
开发者ID:HaikuArchives,项目名称:CoveredCalc,代码行数:57,代码来源:WinBitmapDC.cpp

示例15: DebugAssert

Void D3D11Texture2D::AttachToBackBuffer( UInt iBackBuffer )
{
    DebugAssert( !(IsCreated()) );
    DebugAssert( iBackBuffer < m_pRenderer->m_hSwapChainDesc.iBufferCount );

    m_hCreationParameters.pData = NULL;

    m_iBoundToBackBuffer = iBackBuffer;
    _NakedCreate();
}
开发者ID:Shikifuyin,项目名称:Scarab-Engine,代码行数:10,代码来源:D3D11Texture.cpp


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