CAST II Game Engine

   MAIN       FEATURES       SCREENSHOTS       FORUMS       MANUAL       DOWNLOADS       CONTACTS   
Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Enumerations
Variables
Constants
Functions and Procedures
Identifiers

All Functions and Procedures

NameUnitDescription
ActivateWindowOSUtils 
AddColor4sPropertyPropsAdds to Properties a TColor4s value as four floating-point components and one color property
AddColorPropertyPropsAdds to Properties a TColor value as four floating-point components and one color property
AddColorWBasics 
AddColorWOBasicsFast inverse square root. Depends on float numbers representation
AddErrorPropertyCast2Adds a string property named "Error" with the value contained in Msg
AddQuaternionPropertyCast2Adds a quaternion and each its component as properties
AddVector3sBase3D 
AddVector3sBase3D 
AddVector3sPropertyCast2Adds a 3-component vector and each its component as properties
AddVector4sBase3D 
AddVector4sBase3D 
AddVector4sPropertyCast2Adds a 4-component vector and each its component as properties
AdjustCursorVisibilityOSUtils 
ArcTan2Base3DArctangent
AssureFloatFormatBasics 
BitTestBasics 
BlendColorBasics 
BlendColorOBasics 
BufferCopyBase2DCopies a rectangular area from one buffer to another
BufferCutBase2DCopies a rectangular area from one buffer to the top of another assuming width of destination buffer equal to width of the rectangle
BufferCutAsRGBABase2DCopies a rectangular area from one buffer to the top of another changing its format to ARGB and returns True if success
BufferPasteBase2DCopies a rectangular area from the top of one buffer to specified Rect of another assuming width of source buffer equal to width of the rectangle
BufferRGBABlendBase2DBlends a rectangular area from the top of RGBA buffer with specified Rect of another buffer with the specified format using a separate 8-bit alpha-channel in ABuf and returns True if success
BufferRGBACombineBase2DCombines a rectangular area from the top of RGBA buffer with specified Rect of another buffer with the specified format and returns True if success
BufferRGBAPasteBase2DCopies a rectangular area from the top of RGBA buffer to specified Rect of another buffer with the specified format and returns True if success
BufferSwapBase2DSwaps contents of a rectangular area of one buffer with the contents of another assuming width of destination buffer equal to width of the rectangle
CalcCRC32Basics 
CartesianProductVector3sBase3DVectors cartesian product
CeilBasics 
ChangeLoggerClassTextFileReplaces logger with a new one of the specified class
ClampIBasics 
ClampSBasics 
ClientToScreenOSUtils 
ClipCursorOSUtils 
ClipLineBaseGraphClips the given line with Cohen-Sutherland algorithm and returns True if at least some part of the line is visible
ClipLineColorTexBaseGraphClips the given colored and textured line with Cohen-Sutherland algorithm and returns True if at least some part of the line is visible
CmpMemBasics 
ColorStrToIntDefBasics 
ColorTo4SBaseTypesConverts a TColor to TColor4s
ColorTo4SBaseTypesConverts a TColor to TColor4s
ColorTo4SBaseTypesConverts a TColor to TColor4s
ColorTo4SBaseTypesConverts a TColor to TColor4s
ColorToVCLColorBase2D 
CompareDatesBasics 
CompareValuesBasics 
ConvertFromProcessingBase2DConverts the specified number of pixels from ProcessingFormat to any known format. Returns False if input format is unknown or cannot be converted.
ConvertImageBase2DConverts the specified number of pixels from any known format to another known format. Returns False if input format is unknown or cannot be converted.
ConvertToProcessingBase2DConverts the specified number of pixels from any known format to ProcessingFormat. Returns False if input format is unknown or cannot be converted.
ConvertVerticesC2Visual 
CopyPropertyProps 
CreateRefcountedContainerBasicsCreate an instance of reference counted container
CreateThumbnailBase2DCreates in Dest a thumbnail image of the given size and format from a rectangular area of original image. Returns True if success or False if conversion to Format is unsupported.
CrossProductVector3sBase3DVectors cross product
CrossProductVector3sBase3DVectors cross product
CutMatrix3sBase3DCuts 3x3 matrix from the specified 4x4 matrix
CutMatrix3sBase3DCuts 3x3 matrix from the specified 4x4 matrix
DelayOSUtilsNot accurate (~10ms)
DotProductVector3sBase3DVectors dot product
EqualLocationsCast2Retuns True if the locations are equal
EqualsMatrix3sBase3DReturns True if M1 and M2 are equal
EqualsMatrix4sBase3DReturns True if M1 and M2 are equal
EqualsQuaternionsBase3DReturns True if the given quaternions are equal
EqualsVector3sBase3DReturns True if V1 and V2 are equal
EqualsVector4sBase3DReturns True if V1 and V2 are equal
ExecOSUtilsAccurate
ExpandBBoxBase3DExpands the bounding box to fit the given coordinates
ExpandBBoxBase3DExpands the bounding box to fit the given point
ExpandMatrix3sBase3DExpands a 3x3 matrix to 4x3 matrix by filling new components with 0 except _44 which filled with 1
ExpandVector3sBase3DExpands a 3-dimensional vector to 4-dimensional by filling w-component with 1
ExpandVector3sBase3DExpands a 3-dimensional vector to 4-dimensional by filling w-component by 1
ExtractStrBasics 
FastNormalizeVector3sBase3DForces the vector V's length to the specified length using fast InvSqrt
FastNormalizeVector4sBase3DForces the vector V's length to the specified length using fast InvSqrt
FastSqrtBasicsFast (if assembler optimization are allowed) implementation of Sqrt(x) with accurasy ~0.25%
FastTruncBasicsFast (if SSE optimization are allowed) implementation of Trunc(x)
FillDWordBasics 
FloatToStrABasics 
FloorBasics 
ForEachFileBasicsCalls the Delegate for each file passing the given mask and attribute filter and returns number of such files. Stops if the delegate returns False
FormatABasics 
FVFToVertexFormatC2DX8Render 
FVFToVertexFormatC2OGLRender 
GetActiveWindowOSUtils 
GetAreaBaseTypes 
GetAsyncKeyStateOSUtils 
GetBitsPerPixelBasics 
GetBlendingStateC2Materials 
GetBytesPerPixelBasics 
GetClassListBaseClassesRetuns a list of the specified classes
GetClientRectOSUtils 
GetClipCursorOSUtils 
GetColorBaseTypesReturns TColor record
GetColorBaseTypesReturns TColor record
GetColor4SBaseTypesReturns TColor4s record
GetColor4SIntensityBasicsReturns color max component value
GetColorFrom4sBasics 
GetColorIntensityBasicsReturns color max component value
GetCorrectRectBasics 
GetCurrentMsOSUtils 
GetDefaultUVMapBasics 
GetFileNameBasics 
GetFillShadeModeC2Materials 
GetIntensityBase2D 
GetLastCharPosBasics 
GetLightingStateC2Materials 
GetLocationFromVec3sCast2Returns a location from 3D vector
GetMagnitudeApproxBase3DReturns approximated magnitude of V (need testing)
GetOSErrorStrOSUtils 
GetPerformanceCounterOSUtils 
GetPerpendicular3sBase3DRetuns a vector which is orthogonal to V
GetPerpendicular3sBase3DRetuns a vector which is orthogonal to V
GetPlaneBase3DReturns a plane by the given equation coeficients (AX + BY + CZ + D = 0)
GetPlaneFromPointNormalBase3DReturns a plane by the specified point and normal
GetPointEdgeStateC2Materials 
GetQuaternionBase3DRetuns a normalized quaternion by the specified axis and angle
GetQuaternionBase3DRetuns a normalized quaternion by the specified axis and angle
GetRectBaseTypesReturns the specified by its bounds rectangle record
GetRectExpandedBaseTypesReturns source rectangle expanded by (EX, EY)
GetRectIntersectBasics 
GetRectMovedBaseTypesReturns source rectangle moved by (MoveX, MoveY)
GetRectOnImageBaseTypesReturns the specified by UV coordinates on an image rectangle record
GetRectScaledBaseTypesReturns source rectangle scaled by (SX, SY)
GetRectWHBaseTypesReturns the specified by width and height rectangle record
GetSoundElementSizeC2TypesReturns size of element of a sound in bytes
GetSoundFormatElementC2TypesReturns sample rate, number of bits per sample or number of channels of the specified format value
GetStencilstateC2Materials 
GetSteppedSizeBasics 
GetSuggestedMipLevelsInfoBase2DReturns the number of mip levels (including 0-th) which an image with the specified dimensions should have and fills in the levels info
GetSysFolderOSUtils 
GetTextFromClipboardOSUtils 
GetTextureWrapC2Materials 
GetTransposedMatrix3sBase3DReturns transposed matrix
GetTransposedMatrix3sBase3DReturns transposed matrix
GetTransposedMatrix4sBase3DReturns transposed matrix
GetTransposedMatrix4sBase3DReturns transposed matrix
GetUnitClassListC2AnimReturns list of classes introduced by the unit
GetUnitClassListC2CoreReturns list of classes introduced by the unit
GetUnitClassListC22DReturns list of classes introduced by the unit
GetUnitClassListACSReturns list of classes introduced by the unit
GetUnitClassListBaseGraphReturns list of classes introduced by the unit
GetUnitClassListC2AffectorsReturns list of classes introduced by the unit
GetUnitClassListC2FloraReturns list of classes introduced by the unit
GetUnitClassListC2TileMapsReturns list of classes introduced by the unit
GetUnitClassListResourcesReturns list of classes introduced by the unit
GetUnitClassListC2ResReturns list of classes introduced by the unit
GetUnitClassListC2ParticleAdvReturns list of classes introduced by the unit
GetUnitClassListC2VisItemsReturns list of classes introduced by the unit
GetUnitClassListC2LandReturns list of classes introduced by the unit
GetUnitClassListACSAdvReturns list of classes introduced by the unit
GetUnitClassListC2FXReturns list of classes introduced by the unit
GetUnitClassListC2GrassReturns list of classes introduced by the unit
GetUnitClassListC2GUIReturns list of classes introduced by the unit
GetVector2sBase3DReturns a 2-dimensional vector with the specified components
GetVector2sBase3DReturns a 2-dimensional vector with the specified components
GetVector3sBase3DReturns a 3-dimensional vector with the specified components
GetVector3sBase3DReturns a 3-dimensional vector with the specified components
GetVector4sBase3DReturns a 4-dimensional vector with the specified components
GetVector4sBase3DReturns a 4-dimensional vector with the specified components
GetVectorRotateQuatBase3DReturns a quaternion which specifies a rotation from OldDir to NewDir.
OldDir to NewDir should be normalized (needs testing)
GetVertexElementOffsetC2Visual 
GetVertexFormatC2Visual/ Determines a vertex format which can include variuos components. VertexWeight can be OR'ed with vwIndexedBlending to indicate that last weight is actually a dword with indices
GetVertexIndexedBlendingC2Visual 
GetVertexSizeC2Visual 
GetVertexTextureCoordsCountC2Visual 
GetVertexTextureSetsCountC2Visual 
GetVertexWeightsCountC2Visual 
GetVTypeIntOTypes 
GetWindowRectOSUtils 
GetZBufferStateC2Materials 
HexStrToIntDefBasics 
HideCursorOSUtils 
HideWindowOSUtils 
HResultToStrC2OGLRender 
HResultToStrC2DX8Render 
ImageBellFilterBase2D 
ImageBoxFilterBase2D 
ImageHermiteFilterBase2D 
ImageLanczos3FilterBase2D 
ImageMitchellFilterBase2D 
ImageSplineFilterBase2D 
ImageTriangleFilterBase2D 
ImportWavResourceC2ResImport 
InterleaveBitsBasics 
IntPowerBasics 
IntToHexABasics 
IntToStrABasics 
InvertAffineMatrix4sBase3DReturns inversion of a matrix which contains affine transfomations (rotations, translations and scaling). Faster then InvertMatrix4s
InvertMatrix3sBase3D3x3 matrix inversion (current dummy implementation: transpose)
InvertMatrix4sBase3DReturns inversion of the specified matrix
InvertRotTransMatrixBase3DReturns inversion of a matrix which contains only rotations and translations. Faster then InvertAffineMatrix4s
InvertRotTransMatrixBase3DReturns inversion of a matrix which contains only rotations and translations. Faster then InvertAffineMatrix4s
InvSqrtBasicsFast (if assembler optimization are allowed) implementation of 1/Sqrt(x)
InvSqrtOBasics 
IsCharInBasicsReturns True if the spcefied character belongs to the specified set
IsColorBasicsTests with current decimal separator
IsDecimalIntegerBasics 
IsDepthFormatBasics 
IsFloatBasics 
IsInAreaBasics 
IsInAreaBasics 
IsMatrixAffineBase3DReturns True if the specified matrix is affine (last column is 0, 0, 0, 1)
IsNanBasics 
IsPointsSameSideBase3DReturns True if both P1 and P2 points are at the same side of the ray
IsRealBasics 
isSameGUIDBasics 
IsWindowVisibleOSUtils 
LoadBitmapBase2DLoads a .bmp file and returns True if success.
LoadBitmapBase2DLoads a .bmp file and returns True if success. All image parameters are placed in Header.
LoadBitmapHeaderBase2DLoads a .bmp file header and positions Stream at raw data start. Returns True if sucess.
LoadIDFBase2D 
LoadIDFBuffersBase2D 
LoadImageC2ResImport 
LoadOBJC2ResImport 
LoadStringBasicsLoads a wide string from a stream. Returns True if success
LoadStringBasicsLoads a string from a stream. Returns True if success
LoadWavC2ResImport 
LocationSqDistanceCast2Retuns squared distance between the locations
Log2IBasics 
MatDetBase3DReturns determinant of the specified matrix
Matrix3sByQuatBase3DFills Result with a 3x3 rotation matrix which specifies the same rotation as Quat.
Matrix3sByQuatBase3DReturns a 3x3 rotation matrix which specifies the same rotation as Quat
Matrix4sByQuatBase3DReturns a 4x4 rotation matrix which specifies the same rotation as Quat
Matrix4sByQuatBase3DFills Result with a 4x4 rotation matrix which specifies the same rotation as Quat.
MaxCBasics 
MaxIBasics 
MaxSBasics 
MaxSOBasics 
MergeClassListsBaseClassesMerges the two given class lists
MinCBasics 
MinIBasics 
MinimizeWindowOSUtils 
MinSBasics 
MinSOBasics 
MoveReverse16Basics 
MoveReverse8Basics 
MulMatrix3sBase3DMatrix multiplication
MulMatrix3sBase3DMatrix multiplication
MulMatrix4sBase3DMatrix multiplication
MulMatrix4sBase3DMatrix multiplication
MulQuaternionBase3DReturns product of Quat1 and Quat2
MulQuaternionBase3DReturns product of Quat1 and Quat2
NextPowerOf2Basics 
NormalizeAngleBase3DForces Angle to [0..2*pi] range
NormalizePlaneBase3DNormalizes the plane equation coefficients
NormalizeQuaternionBase3DRetuns the normalized version of Quat
NormalizeQuaternionBase3DRetuns the normalized version of Quat
NormalizeVector3sBase3DForces the vector V's length to the specified length
NormalizeVector3sBase3DForces then vector V's length to the specified length
NormalizeVector4sBase3DForces the vector V's length to the specified length
ObtainCursorPosOSUtilsOS dependent
ObtainKeyboardStateOSUtils 
ObtainPerformanceFrequencyOSUtils 
OOBBOOBBColDetCollisionsReturns True if the two given OOBBs intersects. Transform1 and Transform2 specifies location and orientation of the volumes within the world space and should not contain scale.
OOBBOOBBColDet2DCollisionsReturns True if the two given OOBBs intersects in XZ plane. It's faster then OOBBOOBBColDet a little. Transform1 and Transform2 specifies location and orientation of the volumes within the world space and should not contain scale.
OpenURLOSUtils 
OpenWithOSUtils 
PackSoundFormatC2TypesPacks a sound format specified by the sample rate, the number of bits per sample and the number of channels to a single value
PixelFormatToStrBasics 
PlaneFromPointNormalBase3DReturns a plane by the specified point and normal
PosExBasics 
PowerBasics 
PtrOffsBasics 
QuickSortIntBasicsPerforms a quick sort on an array of integers
QuickSortIntIndBasicsPerforms a quick sort on an array of integers and returns sorted indices not affecting the source array
QuickSortSBasicsPerforms a quick sort on an array of floating point numbers
QuickSortSIndBasicsPerforms a quick sort on an array of floating point numbers and returns sorted indices not affecting the source array
QuickSortStrBasicsPerforms a quick sort on an array of strings
QuickSortStrIndBasicsPerforms a quick sort on an array of strings and returns sorted indices not affecting the source array
RayCircleColDetCollisionsReturns True if a ray with the specified origin and direction intersects with a sphere with the specified origin and radius. Point is filled with the nearest to ray origin intersection point if any
RaySphereColDetCollisionsReturns True if a ray with the specified origin and direction intersects with a sphere with the specified origin and radius. Point is filled with the nearest to ray origin intersection point if any
ReadLineTextFile 
RealToStrBasics 
RectBaseTypesFills the specified rectangle record and returns it in Result
RectExpandBaseTypesReturns in Result source rectangle expanded by (EX, EY)
RectIntersectBasics 
RectMoveBaseTypesReturns in Result source rectangle moved by (MoveX, MoveY)
RectScaleBaseTypesReturns in Result source rectangle scaled by (SX, SY)
ReflectionMatrix4sBase3DReturns matrix containing reflection by the specified plane transformation
ReflectionMatrix4sBase3DReturns matrix containing reflection by the specified plane transformation
ReflectVector3sBase3DReturns V reflected from surface with the normal N
ReflectVector3sBase3DReturns V reflected from surface with the normal N
ResizeImageBase2D 
SaveIDFBase2D 
SaveStringBasicsSaves a wide string to a stream. Returns True if success
SaveStringBasicsSaves a string to a stream. Returns True if success
SaveWavHeaderC2ResImport 
ScaleColorIBasicsReturns scale color. S is desired koefficient multiplied by 256
ScaleColorSBasics 
ScaleMatrix4sBase3DReturns scaling matrix
ScaleMatrix4sBase3DReturns scaling matrix
ScaleVector3sBase3DScales the vector V by the specified factor and returns it in Result
ScaleVector3sBase3DScales the vector V by the specified factor
ScaleVector4sBase3DScales the vector V by the specified factor and returns it in Result
ScaleVector4sBase3DScales the vector V by the specified factor
ScreenToClientOSUtils 
SetColor4sPropertyPropsSets a color property in Properties with the given in Res value.
Returns the resulting value in Res and True if new Res value differs from the initial one
SetColorPropertyPropsSets a color property in Properties with the given in Res value.
Returns the resulting value in Res and True if new Res value differs from the initial one
SetCursorPosOSUtils 
SetCursorVisibilityOSUtilsOS independent
SetQuaternionPropertyCast2Reads a quaternion from properties. If its not equivalent to the one contained in Res assigns it to Res and returns True.
SetVector3sPropertyCast2Reads a 3-component vector from properties. If its not equivalent to the one contained in Res assigns it to Res and returns True.
SetVector4sPropertyCast2Reads a 4-component vector from properties. If its not equivalent to the one contained in Res assigns it to Res and returns True.
SetWindowCaptionOSUtils 
ShowCursorOSUtils 
ShowWindowOSUtils 
SignBasics 
SignBasics 
SinCosBasics 
SkipBeforeSTRTextFilefunction SetLength(S : string; DLength : word):string;
SleepOSUtils 
SphereOOBBColDetCollisionsReturns True if the given sphere intersects with the given OOBB. Transform1 and Transform2 specifies location and orientation of the volumes within the world space and should not contain scale.
SplitBasicsSplits a string into array of strings using Delim as a delimiter If EmptyOK is True result strings can be empty. Returns number of strings in array
SplitABasicsSplits an ansi string into array of strings using Delim as a delimiter If EmptyOK is True result strings can be empty. Returns number of strings in array
SqrMagnitudeBase3DReturns the squared magnitude of V
StretchARGBImageBase2DStretches a rectangular area of an ARGB image to a rectangular area of another ARGB image
StrFormatBasics 
StringsToEnumABasicsReturns an enumeration string which consists of all elements of strings separated by StringDelimiter If EmptyOK is True empty elements are included in result
StrToFloatDefABasics 
StrToRealDefBasicsTests with general decimal separator
SubVector3sBase3D 
SubVector3sBase3D 
SubVector4sBase3D 
SubVector4sBase3D 
SwapBasics 
SwapIBasics 
SwapRBBase2D 
ThreadSafeDecrementOSUtils 
ThreadSafeIncrementOSUtils 
TimeUnitToMsBaseTypesConvert time unit to milliseconds
Transform3Vector3sBase3DReturns 3-dimensional vector V transformed by matrix M
Transform3Vector3sBase3DReturns 3-dimensional vector V transformed by matrix M
Transform3Vector3sTranspBase3DReturns 3-dimensional vector V transformed by transposed matrix M
Transform4Vector33sBase3DReturns 3-dimensional vector V transformed by matrix M
Transform4Vector33sBase3DReturns 3-dimensional vector V transformed by matrix M
Transform4Vector3sBase3DReturns expanded 3-dimensional vector V transformed by matrix M
Transform4Vector3sBase3DReturns expanded 3-dimensional vector V transformed by matrix M
Transform4Vector4sBase3DReturns 4-dimensional vector V transformed by matrix M
Transform4Vector4sBase3DReturns 4-dimensional vector V transformed by matrix M
TranslationMatrix4sBase3DReturns translation matrix
TranslationMatrix4sBase3DReturns translation matrix
TranspMulMatrix3sBase3DMatrix multiplication and transpose
TranspMulMatrix3sBase3DMatrix multiplication and transpose
TranspMulMatrix4sBase3DMatrix multiplication and transpose
TranspMulMatrix4sBase3DMatrix multiplication and transpose
TransposeMatrix3sBase3DReturns transposed matrix
TransposeMatrix4sBase3DReturns transposed matrix
TrimSpacesBasics 
TrimSpacesABasics 
UnpackSoundFormatC2TypesConverts a format value to TSoundFormat structure
VCLColorToColorBase2D 
Vec2sBase3DReturns a 2-dimensional vector with the specified components
Vec3sBase3DReturns a 3-dimensional vector with the specified components
Vec4sBase3DReturns a 4-dimensional vector with the specified components
VectorToColorBasics 
VertexContainsC2Visual 
VolumeColDetCollisionsChecks two arrays of bounding volumes for collision and returns result in TCollisionResult structure. Transform1 and Transform2 specifies location and orientation of the volume arrays within the world space and should not contain scale.
VolumeColTestCollisionsReturns True if there is an intersection between bounding volumes from the given arrays. Transform1 and Transform2 specifies location and orientation of the volume arrays within the world space and should not contain scale.
WMToMessageOSUtils 
WMToMessageOSUtils 
XRotationMatrix3sBase3DReturns rotation over X-axis matrix
XRotationMatrix3sBase3DReturns rotation over X-axis matrix
XRotationMatrix4sBase3DReturns rotation over X-axis matrix
XRotationMatrix4sBase3DReturns rotation over X-axis matrix
YRotationMatrix3sBase3DReturns rotation over Y-axis matrix
YRotationMatrix3sBase3DReturns rotation over Y-axis matrix
YRotationMatrix4sBase3DReturns rotation over Y-axis matrix
YRotationMatrix4sBase3DReturns rotation over Y-axis matrix
ZRotationMatrix3sBase3DReturns rotation over Z-axis matrix
ZRotationMatrix3sBase3DReturns rotation over Z-axis matrix
ZRotationMatrix4sBase3DReturns rotation over Z-axis matrix
ZRotationMatrix4sBase3DReturns rotation over Z-axis matrix

Last modified: Jan 6, 2010
Copyright (C) 2006-2010, casteng.com