## Public API Reference

- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

# Deprecated List

Member csArray::SetLength (size_t n, T const &what)
  Use SetSize() instead.

Member csArray::DeleteFast (T const &item)
  The speed gain promised by this method is mostly illusory on account of the linear search for the item. In many cases, it will be faster to keep the array sorted, search for `item` using FindSortedKey(), and then remove it using the plain DeleteIndex().

Member csArray::Length () const
  Use GetSize() instead.

Member csBitArrayTweakable::Length () const
  Use GetSize() instead.

Member csBitArrayTweakable::SetLength (size_t newSize)
  Use SetSize() instead.

Member csHash::PutFirst (const K &key, const T &value)
  Use PutUnique() instead.

Member csPath::Calculate (float time)
  Use CalculateAtTime() instead.

Member csPath::GetPointCount ()
  Use Length() instead.

Member csPath::GetTimeValue (int idx) const
  Use GetTime() instead.

Member csPath::GetTimeValues () const
  Use GetTimes() instead.

Member csPath::SetTimeValue (int idx, float t)
  Use SetTime() instead.

Member csPath::SetTimeValues (float const *t)
  Use SetTimes() instead.

Member csRect::AddAdjanced (const csRect &rect)
  Misspelling; use AddAdjacent() instead

Member csStringBase::FindReplace (const char *search, const char *replacement)
  Use ReplaceAll() instead.

Member csStringBase::FindStr (const char *search, size_t pos=0) const
  Use Find() instead.

Member csStringBase::GetGrowsExponentially () const
  Use GetGrowsBy() instead.

Member csStringBase::SetGrowsExponentially (bool b)
  Use SetGrowsBy(0) instead.

Member csStringHash::Clear ()
  Use Empty() instead.

Member csStringSet::Clear ()
  Use Empty() instead.

Class csStrKey
  csString can also be used for hash keys.

Member csVerbosityManager::CheckFlag (char const *major, char const *minor) const
  Use instead the more generic Enabled() method, which accepts any granularity of class breakdown; not just major and minor components.

Member csVerbosityParser::CheckFlag (char const *major, char const *minor) const
  Use instead the more generic Enabled() method, which accepts any granularity of class breakdown; not just major and minor components.

Member iArrayChangeAll::DeleteFast (T const &item)=0
  The speed gain promised by this method is mostly illusory on account of the linear search for the item. In many cases, it will be faster to keep the array sorted, search for `item` using FindSortedKey(), and then remove it using the plain DeleteIndex().

Member iCamera::InvPerspective (const csVector2 &p, float z, csVector3 &v) const =0
  Use InvPerspective(const csVector2&, float) instead.

Member iCamera::Perspective (const csVector3 &v, csVector2 &p) const =0
  Use Perspective(const csVector3&) instead.

Class iCollection
  Don't use collections. They are obsolete.

Member iEngine::FindCollection (const char *name, iRegion *region=0)=0
  Collections are obsolete.

Member iEngine::GetCollections ()=0
  Collections are obsolete.

Member iGeneralMeshState::AddSubMesh (unsigned int *triangles, int tricount, iMaterialWrapper *material, uint mixmode)=0
  Use AddSubMesh from iGeneralFactoryState instead

Member iGeneralMeshState::AddSubMesh (unsigned int *triangles, int tricount, iMaterialWrapper *material)=0
  Use AddSubMesh from iGeneralFactoryState instead

Member iGraphics2D::WriteBaseline (iFont *font, int x, int y, int fg, int bg, const char *str)=0
  Instead, use Write() with the CS_WRITE_BASELINE flag set.

Member iImage::GetKeycolor (int &r, int &g, int &b) const =0
  Use GetKeyColor() instead.

Member iImage::HasKeycolor () const =0
  Use HasKeyColor() instead.

Member iLoader::LoadSoundWrapper (const char *name, const char *fname, int mode3d)=0
  Use LoadSoundStream() without mode3d parameter. The mode should be given at the time the stream is created later.

Member iMaterial::GetFlatColor (csRGBpixel &oColor, bool useTextureMean=true)=0
  Use the shader variable system instead.

Member iMaterial::SetFlatColor (const csRGBcolor &col)=0
  Use the shader variable system instead.

Member iMeshWrapper::GetRadius (float &rad, csVector3 &cent) const =0
  Use GetRadius() that returns csEllipsoid.

Member iMeshWrapper::GetScreenBoundingBox (iCamera *camera, csBox2 &sbox, csBox3 &cbox)=0
  Use GetScreenBoundingBox() that returns a csScreenBoxResult instead.

Member iMeshWrapper::GetTransformedBoundingBox (const csReversibleTransform &trans, csBox3 &cbox)=0
  Use GetTransformedBoundingBox that returns a csBox3 instead.

Member iMeshWrapper::GetWorldBoundingBox (csBox3 &cbox)=0
  Use GetWorldBoundingBox that returns a csBox3 instead.

Member iMeshWrapper::HitBeam (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr, iMaterialWrapper **material=0)=0
  Use HitBeamObject() with csHitBeamResult instead.

Member iMeshWrapper::HitBeamBBox (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr)=0
  Use HitBeamBBox() with csHitBeamResult instead.

Member iMeshWrapper::HitBeamObject (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr, int *polygon_idx=0)=0
  Use HitBeamObject() with csHitBeamResult instead.

Member iMeshWrapper::HitBeamOutline (const csVector3 &start, const csVector3 &end, csVector3 &isect, float *pr)=0
  Use HitBeamOutline() with csHitBeamResult instead.

Member iObjectModel::GetObjectBoundingBox (csBox3 &bbox)=0
  Use GetObjectBoundingBox() (without parameters) instead.

Member iSector::HitBeam (const csVector3 &start, const csVector3 &end, csVector3 &intersect, int *polygon_idx, bool accurate=false)=0
  Use the csSectorHitBeamResult version instead

Member iSector::HitBeamPortals (const csVector3 &start, const csVector3 &end, csVector3 &isect, int *polygon_idx, iSector **final_sector=0)=0
  Use the csSectorHitBeamResult version instead

Member iSndSysWrapper::GetStream ()=0
  Use GetData() instead of this method. This interface should only keep track of the sound data and not the stream. Create the stream later when you need the sound (typically right before you create a source).

Member iSndSysWrapper::SetStream (iSndSysStream *stream)=0
  Use SetData() instead of this method.

Member iString::Clear ()=0
  Use Empty() instead.

Member iString::GetData ()=0
  Use the 'const' version of GetData() instead.

Member iString::Reclaim ()=0
  Use ShrinkBestFit() instead.

Member iStringArray::DeleteAll ()=0
  Use Empty() instead.

Member iStringArray::Length () const =0
  Use GetSize() instead.

Member iStringSet::Clear ()=0
  Use Empty() instead.

Member iTerrainObjectState::SetMaterialAlphaMaps (const csArray< csArray< char > > &data, int x, int y)=0
  This will only work for SimpleFormers. Directories for paging terrain should be set via the respective former state.

Member iTerrainObjectState::SetMaterialMap (const csArray< char > &data, int x, int y)=0
  This will only work for SimpleFormers. Directories for paging terrain should be set via the respective former state.

Member iVerbosityManager::CheckFlag (char const *major, char const *minor) const =0
  Use instead the more generic Enabled() method, which accepts any granularity of class breakdown; not just major and minor components.

Member scfString::Clear ()
  Use Empty() instead.

Member scfString::Reclaim ()
  Use ShrinkBestFit() instead.

Member scfStringArray::DeleteAll ()
  Use Empty() instead.

Member scfStringArray::Length () const
  Use GetSize() instead.

Member CS_QUERY_REGISTRY
  Compatibility macro

Member CS_QUERY_REGISTRY_TAG
  Compatibility macro

Member CS_QUERY_REGISTRY_TAG_INTERFACE
  Compatibility macro

Member csCheckVerbosity
  Use instead the more generic csCheckVerbosity() function which takes a single verbosity class flag since it accepts any granularity of class breakdown; not just major and minor components.

Member csPoint
  Use csVector2 instead

Member BuildSqrtTable
  Use sqrtf instead

Member FastSqrt
  Use sqrtf instead

Member CS_LOAD_PLUGIN
  Compatibility macro.

Member CS_LOAD_PLUGIN_ALWAYS
  Compatibility macro.

Member csPathsIdentical
  Use the equivalent from csPathsUtilities or csInstallationPathsHelper instead.

Member csFindReplace
  Use csReplaceAll() instead.