本文整理匯總了C++中Check_Object函數的典型用法代碼示例。如果您正苦於以下問題:C++ Check_Object函數的具體用法?C++ Check_Object怎麽用?C++ Check_Object使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了Check_Object函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。
示例1: Check_Object
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// return: true=math good, false=math unstable
bool
gosFX::SplineCurve::SetCurve(
Stuff::Scalar v0,
Stuff::Scalar v1
)
{
Check_Object(this);
m_a = 0.0f;
m_b = 0.0f;
m_slope = v1 - v0;
m_value = v0;
return Stuff::Close_Enough(m_slope + v0, v1);
}
示例2: Check_Object
//------------------------------------------------------------------------------
//
gosFX::ShapeCloud*
gosFX::ShapeCloud::Make(
Specification *spec,
unsigned flags
)
{
Check_Object(spec);
gos_PushCurrentHeap(Heap);
ShapeCloud *cloud = new gosFX::ShapeCloud(spec, flags);
gos_PopCurrentHeap();
return cloud;
}
示例3: Check_Object
//
//#############################################################################
// GetSize
//#############################################################################
//
CollectionSize
PlugIterator::GetSize()
{
Check_Object(this);
CollectionSize i = 0;
First();
while (GetCurrentImplementation() != NULL)
{
i++;
Next();
}
return i;
}
示例4: Check_Pointer
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
gosFX::ComplexCurve::Load(
Stuff::MemoryStream *stream,
int gfx_version
)
{
Check_Pointer(this);
Check_Object(stream);
if (gfx_version < 15)
{
Stuff::Scalar duration;
*stream >> duration;
}
示例5: SpinningCloud__Specification
//------------------------------------------------------------------------------
//
gosFX::CardCloud__Specification::CardCloud__Specification(
std::iostream stream, uint32_t gfx_version)
: SpinningCloud__Specification(gosFX::CardCloudClassID, stream, gfx_version)
{
// Check_Pointer(this);
Check_Object(stream);
_ASSERT(m_class == CardCloudClassID);
// _ASSERT(gos_GetCurrentHeap() == Heap);
m_halfHeight.Load(stream, gfx_version);
m_aspectRatio.Load(stream, gfx_version);
//
//-------------------------------------------------------------------
// If we are reading an old version of the card cloud, ignore all the
// animation on the UV channels
//-------------------------------------------------------------------
//
if (gfx_version < 10)
{
m_pIndex.m_ageCurve.SetCurve(0.0f);
m_pIndex.m_seedCurve.SetCurve(1.0f);
m_pIndex.m_seeded = false;
SeededCurveOf<ComplexCurve, LinearCurve, Curve::e_ComplexLinearType> temp;
temp.Load(stream, gfx_version);
float v = temp.ComputeValue(0.0f, 0.0f);
m_UOffset.SetCurve(v);
temp.Load(stream, gfx_version);
v = temp.ComputeValue(0.0f, 0.0f);
m_VOffset.SetCurve(v);
m_USize.Load(stream, gfx_version);
m_VSize.Load(stream, gfx_version);
m_animated = false;
}
//
//------------------------------
// Otherwise, read in the curves
//------------------------------
//
else
{
m_pIndex.Load(stream, gfx_version);
m_UOffset.Load(stream, gfx_version);
m_VOffset.Load(stream, gfx_version);
m_USize.Load(stream, gfx_version);
m_VSize.Load(stream, gfx_version);
*stream >> m_animated;
}
SetWidth();
m_totalParticleSize = gosFX::CardCloud::ParticleSize;
m_particleClassSize = sizeof(gosFX::CardCloud::Particle);
}
示例6: Check_Object
//------------------------------------------------------------------------------
//
void gosFX::CardCloud__Specification::Save(std::iostream stream)
{
// Check_Object(this);
Check_Object(stream);
SpinningCloud__Specification::Save(stream);
m_halfHeight.Save(stream);
m_aspectRatio.Save(stream);
m_pIndex.Save(stream);
m_UOffset.Save(stream);
m_VOffset.Save(stream);
m_USize.Save(stream);
m_VSize.Save(stream);
*stream << m_animated;
}
示例7: Check_Object
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
MLR_I_L_TMesh*
MLR_I_L_TMesh::Make(
MemoryStream *stream,
int version
)
{
Check_Object(stream);
gos_PushCurrentHeap(Heap);
MLR_I_L_TMesh *mesh = new MLR_I_L_TMesh(DefaultData, stream, version);
gos_PopCurrentHeap();
return mesh;
}
示例8: SetReferenceState
virtual void SetReferenceState(const MLRState& _state, size_t pass = 0)
{
Check_Object(this);
Verify((intptr_t(pass) >= 0) && pass < 2);
if(pass == 0)
{
referenceState = _state;
}
else
{
passes = 2;
referenceState2 = _state;
}
}
示例9: Check_Object
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
bool
gosFX::Curve::IsComplex()
{
Check_Object(this);
return
m_type == e_ComplexLinearType ||
m_type == e_ComplexComplexType ||
m_type == e_ComplexSplineType ||
m_type == e_ConstantComplexType ||
m_type == e_ConstantLinearType ||
m_type == e_ConstantSplineType ||
m_type == e_SplineSplineType ||
m_type == e_SplineLinearType;
}
示例10: MLRPrimitive
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
MLRIndexedPrimitive::MLRIndexedPrimitive(
ClassData *class_data,
MemoryStream *stream,
int version
):
MLRPrimitive(class_data, stream, version)
{
Check_Pointer(this);
Check_Object(stream);
MemoryStreamIO_Read(stream, &index);
visibleIndexedVerticesKey = false;
visibleIndexedVertices.SetLength(numVertices);
}
示例11: Check_Object
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
MLRLookUpLight::Write(Stuff::Page *page)
{
Check_Object(this);
Check_Object(page);
MLRInfiniteLight::Write(page);
char data[256];
sprintf(data, "%f %f %f", mapOrigin.x, mapOrigin.y, mapOrigin.z);
Verify(strlen(data) < sizeof(data));
page->SetEntry("MapOrigin", data);
sprintf(data, "%d %d", mapZoneCountX, mapZoneCountZ);
Verify(strlen(data) < sizeof(data));
page->SetEntry("MapSize", data);
sprintf(data, "%f %f", zoneSizeX, zoneSizeZ);
Verify(strlen(data) < sizeof(data));
page->SetEntry("ZoneSize", data);
page->SetEntry("MapName", mapName);
}
示例12: Spew
void
Spew(
const char* group,
const EulerAngles &angle
)
{
Check_Object(&angle);
SPEW((group, "<+"));
Spew(group, angle.pitch);
SPEW((group, ",+"));
Spew(group, angle.yaw);
SPEW((group, ",+"));
Spew(group, angle.roll);
SPEW((group, ">+"));
}
示例13: Plug
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
Trace::Trace(
const char* name,
Type type
):
Plug(DefaultData)
{
traceNumber = NextTraceID++;
traceType = (BYTE)type;
traceName = name;
lastActivity = 0.0;
Check_Object(TraceManager::Instance);
TraceManager::Instance->Add(this);
}
示例14: Check_Object
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
void
MLRIndexedPrimitive::SetIndexData(
unsigned short *index_array,
int index_count
)
{
Check_Object(this);
Check_Pointer(index_array);
if(coords.GetLength() > 0)
{
visibleIndexedVertices.SetLength(coords.GetLength());
}
index.AssignData(index_array, index_count);
}
示例15: Check_Pointer
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
bool
MLR_I_L_TMesh::Copy(MLR_I_L_PMesh *pMesh)
{
Check_Pointer(this);
Check_Object(pMesh);
int len;
Vector3D *_normals;
MLR_I_C_TMesh::Copy(pMesh);
pMesh->GetNormalData(&_normals, &len);
SetNormalData(_normals, len);
return true;
}