本文整理汇总了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;
}
示例2: SHVASSERT
/*************************************
* SetHandle
*************************************/
void SHVControlImplementerWin32Base::SetHandle(HWND handle)
{
if (Window == handle)
return;
SHVASSERT(!IsCreated());
Window = handle;
}
示例3: Delete
void GLvao::Delete()
{
if(!IsCreated()) return;
Unbind();
glDeleteVertexArrays(1, &m_id);
m_id = 0;
}
示例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;
}
示例5: Stop
void XLAcceptorThread::Stop()
{
if(IsCreated())
{
m_bExit = true;
XLSimpleThreads::Destroy();
}
}
示例6: Start
void XLAcceptorThread::Start()
{
if(!IsCreated())
{
m_bExit = false;
XLSimpleThreads::Create("ACCEPTORTHREAD");
}
}
示例7: Create
void GLBufferObject::Create(GLuint type, u32 count)
{
if(IsCreated()) return;
m_id.InsertRoomEnd(count);
glGenBuffers(count, &m_id[0]);
m_type = type;
}
示例8: OpenTransparencyDialog
void PS_TransparencyDialog::OpenTransparencyDialog(CWnd* pParentWnd)
{
if (!IsCreated())
DoCreateDialog(pParentWnd);
Manage();
UpdateUIFromDef();
}
示例9: Create
void GLfbo::Create()
{
if(IsCreated())
{
return;
}
glGenFramebuffers(1, &m_id);
}
示例10: OnPropertyChanged
void Nametag::OnPropertyChanged(const PropertyInfo *id, bool implicit)
{
if(id == &PlayerNameProperty || id == &HealthProperty)
{
if(IsCreated())
UpdateStatus();
}
Billboard::OnPropertyChanged(id, implicit);
}
示例11: DebugAssert
Void D2D1RenderState::GetDesc( D2D1RenderStateDesc * outDesc ) const
{
DebugAssert( IsCreated() );
D2D1_DRAWING_STATE_DESCRIPTION hDesc;
m_pStateBlock->GetDescription( &hDesc );
outDesc->ConvertFrom( &hDesc );
}
示例12: AdjustOffsets
void GridControl::SetWindowPosition(const CRect& rect, int level)
{
CRect rcOff = AdjustOffsets(rect);
if (!IsCreated()) {
Create(rcOff);
} else {
CWnd::MoveWindow(rcOff);
}
}
示例13: SetEnabled
void TButton::SetEnabled(bool enabled)
{
if (fEnabled != enabled)
{
fEnabled = enabled;
if (IsCreated())
Redraw();
}
}
示例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;
}
示例15: DebugAssert
Void D3D11Texture2D::AttachToBackBuffer( UInt iBackBuffer )
{
DebugAssert( !(IsCreated()) );
DebugAssert( iBackBuffer < m_pRenderer->m_hSwapChainDesc.iBufferCount );
m_hCreationParameters.pData = NULL;
m_iBoundToBackBuffer = iBackBuffer;
_NakedCreate();
}