Graphics interface.
FVF | |
| virtual tU32 | FVFGetTexCooDim (tFVF anFVF, tU32 anTexCooIndex) const =0 |
| Get the number of dimensions of the specified texture coordinates. anTexCooIndex is the index (0 to 7). More... | |
| virtual tU32 | FVFGetNumTexCoos (tFVF anFVF) const =0 |
| Get the number of texture coordinates of the specified FVF. More... | |
| virtual cString | FVFToString (tFVF aFVF) const =0 |
| Convert the specified FVF to a string. More... | |
| virtual tFVF | FVFFromString (const achar *aaszString) const =0 |
| Get a FVF from the specified string. More... | |
| virtual tU32 | FVFGetComponentOffset (tFVF aFVF, eFVF C) const =0 |
| Get the offset of the specified component. More... | |
| virtual tU32 | FVFGetStride (tFVF aFVF) const =0 |
| Get the size of a FVF. More... | |
Pixel Format | |
| virtual iPixelFormat * | CreatePixelFormat (const achar *aszFormat)=0 |
| Create a pixel format. More... | |
Bitmaps | |
| virtual iBitmapFormat * | CreateBitmapFormat (eBitmapType aType, const achar *aaszFormat, tU32 anNumMipMaps, tU32 anWidth, tU32 anHeight, tU32 anDepth)=0 |
| Create a new bitmap format. More... | |
| virtual iBitmapFormat * | CreateBitmapFormatEx (eBitmapType aType, iPixelFormat *pFmt, tU32 anNumMipMaps, tU32 anWidth, tU32 anHeight, tU32 anDepth)=0 |
| Create a new bitmap format. More... | |
| virtual iBitmapFormat * | CreateBitmapFormatEmpty ()=0 |
| Create a new empty bitmap format. More... | |
| virtual iBitmapBase * | CreateBitmap (iHString *ahspName, eBitmapType aType, const achar *aaszFormat, tU32 anNumMipMaps, tU32 anWidth, tU32 anHeight, tU32 anDepth)=0 |
| Create a new bitmap. More... | |
| virtual iBitmapBase * | CreateBitmapEx (iHString *ahspName, eBitmapType aType, iPixelFormat *pFmt, tU32 anNumMipMaps, tU32 anWidth, tU32 anHeight, tU32 anDepth)=0 |
| Create a new bitmap. More... | |
| virtual iBitmap2D * | CreateBitmap2DEx (tU32 nW, tU32 nH, iPixelFormat *pFmt)=0 |
| Create a 2D bitmap. More... | |
| virtual iBitmap2D * | CreateBitmap2D (tU32 nW, tU32 nH, const achar *aszPixFmt)=0 |
| Create a 2D bitmap. More... | |
| virtual iBitmap2D * | CreateBitmap2DMemoryEx (tU32 nW, tU32 nH, iPixelFormat *pFmt, tU32 anPitch, tPtr ptrAddr, tBool bFreeAddr)=0 |
| Create a 2D bitmap from the specified memory. More... | |
| virtual iBitmap2D * | CreateBitmap2DMemory (tU32 nW, tU32 nH, const achar *aszPixFmt, tU32 anPitch, tPtr ptrAddr, tBool bFreeAddr)=0 |
| Create a 2D bitmap from the specified memory. More... | |
| virtual iBitmapCube * | CreateBitmapCubeEx (tU32 ulSize, iPixelFormat *pFmt)=0 |
| Create a Cube bitmap. More... | |
| virtual iBitmapCube * | CreateBitmapCube (tU32 ulSize, const achar *aszPixFmt)=0 |
| Create a Cube bitmap. More... | |
| virtual iBitmap3D * | CreateBitmap3DEx (tU32 anW, tU32 anH, tU32 anD, iPixelFormat *apFmt)=0 |
| Create a 3D bitmap. More... | |
| virtual iBitmap3D * | CreateBitmap3D (tU32 anW, tU32 anH, tU32 anD, const achar *aaszPixFmt)=0 |
| Create a 3D bitmap. More... | |
| virtual iBitmap3D * | CreateBitmap3DMemoryEx (tU32 anW, tU32 anH, tU32 anD, iPixelFormat *apFmt, tU32 anRowPitch, tU32 anSlicePitch, tPtr aptrAddr, tBool abFreeAddr)=0 |
| Create a 3D bitmap from the specified memory. More... | |
| virtual iBitmap3D * | CreateBitmap3DMemory (tU32 anW, tU32 anH, tU32 anD, const achar *aszPixFmt, tU32 anRowPitch, tU32 anSlicePitch, tPtr aptrAddr, tBool abFreeAddr)=0 |
| Create a 3D bitmap from the specified memory. More... | |
| virtual iBitmapBase * | LoadBitmap (iFile *pFile)=0 |
| Load a bitmap from a file. More... | |
| virtual iBitmapBase * | LoadBitmapFromRes (iHString *ahspRes, iHString *ahspBasePath)=0 |
| Load a bitmap from a resource. More... | |
| virtual iBitmapBase * | LoadBitmapEx (const achar *aaszFormat, iFile *pFile)=0 |
| Load a bitmap from a file with the specified format. More... | |
| virtual tBool | SaveBitmap (const achar *aszFile, iBitmapBase *pBmp, tU32 ulCompression=0)=0 |
| Save a bitmap in a file. More... | |
| virtual tBool | SaveBitmapEx (const achar *aaszFormat, iFile *apFile, iBitmapBase *apBmp, tU32 anCompression)=0 |
| Save a bitmap in the specified format in a file. More... | |
| virtual cString | URLFindBitmapFilePath (const achar *aszRes, const achar *aszBasePath)=0 |
| Find the path/url matching the specified resource and basepath. More... | |
| virtual iFile * | OpenBitmapFile (const achar *aszRes, const achar *aszBasePath=NULL)=0 |
| Open a bitmap file. More... | |
Geometries | |
| virtual iGeometry * | CreateGeometryPolygonal (tU32 aulNumVertices, tU32 aulNumIndices, tGeometryCreateFlags aFlags, tFVF aFVF)=0 |
| Create a polygonal geometry. More... | |
| virtual iGeometry * | CreateGeometryPolygonalEx (iVertexArray *apVA, iIndexArray *apIA)=0 |
| Create a polygonal geometry from an exisiting vertex array and index array. More... | |
| virtual iGeometryModifier * | CreateGeometryModifier (const achar *aszName, iGeometry *apGeometry, iUnknown *apInitData)=0 |
| Create a geometry modifier. More... | |
| virtual iGeometry * | CreateGeometryPolygonalCube (tGeometryCreateFlags aFlags, tFVF aFVF, const sVec3f &avCenter, tF32 afWidth, tBool abCW, tU32 aulColor, const sMatrixf &amtxUV)=0 |
| Create a cube polygonal geometry. More... | |
| virtual iGeometry * | CreateGeometryPolygonalPlane (tGeometryCreateFlags aFlags, tFVF aFVF, ePlaneType aPlaneType, const sVec3f &avCenter, tF32 afWidth, tF32 afHeight, tU32 aulNumDiv, tBool abCW, tU32 aulColor, const sMatrixf &amtxUV)=0 |
| Create a plane polygonal geometry. More... | |
| virtual iGeometry * | CreateGeometryPolygonalCylinder (tGeometryCreateFlags aFlags, tFVF aFVF, tF32 baseRadius, tF32 topRadius, tF32 height, tI32 slices, tI32 stacks, tBool abCW, tU32 aulColor, const sMatrixf &amtxUV, tBool abCap, tBool abCentered)=0 |
| Create a cylinder polygonal geometry. More... | |
| virtual iGeometry * | CreateGeometryPolygonalSphere (tGeometryCreateFlags aFlags, tFVF aFVF, tF32 radius, tI32 slices, tI32 stacks, tBool abCW, tU32 aulColor, const sMatrixf &amtxUV)=0 |
| Create a sphere polygonal geometry. More... | |
| virtual iGeometry * | CreateGeometryPolygonalGeosphere (tGeometryCreateFlags aFlags, tFVF aFVF, tF32 radius, tI32 slices, tBool abCW, tU32 aulColor, const sMatrixf &amtxUV)=0 |
| Create a geosphere polygonal geometry. More... | |
| virtual iGeometry * | CreateGeometryPolygonalDiskSweep (tGeometryCreateFlags aFlags, tFVF aFVF, tF32 innerRadius, tF32 outerRadius, tI32 slices, tI32 stacks, tF32 startAngle, tF32 sweepAngle, tBool abCW, tU32 aulColor, const sMatrixf &amtxUV)=0 |
| Create a disk sweep polygonal geometry. More... | |
| virtual tBool | UpdateGeometryPolygonalDiskSweep (iGeometry *apGeom, tF32 innerRadius, tF32 outerRadius, tI32 slices, tI32 stacks, tF32 startAngle, tF32 sweepAngle, tBool abCW, tU32 aulColor, const sMatrixf &amtxUV)=0 |
| Update a disk polygonal geometry. More... | |
| virtual iGeometry * | CreateGeometryPolygonalDisk (tGeometryCreateFlags aFlags, tFVF aFVF, tF32 innerRadius, tF32 outerRadius, tI32 slices, tI32 stacks, tBool abCW, tU32 aulColor, const sMatrixf &amtxUV)=0 |
| Create a disk polygonal geometry. More... | |
Graphics context | |
| virtual tBool | InitializeDriver (iHString *ahspDriverName)=0 |
| Initialize the specified hardware driver. More... | |
| virtual tBool | GetIsDriverInitialized () const =0 |
| Get whether the driver has been initialized. {Property}. More... | |
| virtual iGraphicsDriver * | GetDriver () const =0 |
| Get the driver that has been initialized. {Property}. More... | |
| virtual tInt | GetDriverCaps (eGraphicsCaps aCaps) const =0 |
| Get the driver's capabilities. {Property}. More... | |
| virtual iGraphicsContext * | CreateContext (iOSWindow *apWindow, iUnknown *apExtended1, iUnknown *apExtended2, tU32 anWidth, tU32 anHeight, const achar *aaszBBFormat, const achar *aaszDSFormat, tBool abFullScreen, tU32 anSwapInterval, tTextureFlags aBackBufferFlags)=0 |
| Creates a new context. More... | |
| virtual iDeviceResourceManager * | GetGenericDeviceResourceManager () const =0 |
| Get the generice device resource manager. {Property}. More... | |
States | |
| virtual iSamplerStates * | CreateSamplerStates ()=0 |
| Create a new sampler states instance. More... | |
| virtual iDepthStencilStates * | CreateDepthStencilStates ()=0 |
| Create a new depth stencil states instance. More... | |
| virtual iRasterizerStates * | CreateRasterizerStates ()=0 |
| Create a new rasterizer states instance. More... | |
| virtual iFixedStates * | CreateFixedStates ()=0 |
| Create a new fixed pipeline states instance. More... | |
Textures | |
| virtual tBool | CheckTextureFormat (iBitmapFormat *apFormat, tTextureFlags aFlags)=0 |
| Check whether the specified texture format is supported and set the bitmap format object to the nearest matching native bitmap format. More... | |
| virtual iDeviceResourceManager * | GetTextureDeviceResourceManager () const =0 |
| Get the texture device resource manager. {Property}. More... | |
| virtual tU32 | GetNumTextures () const =0 |
| Get the number of textures in the manager. {Property}. More... | |
| virtual iTexture * | GetTextureFromName (iHString *ahspName) const =0 |
| Get a texture from its name. {Property}. More... | |
| virtual iTexture * | GetTextureFromIndex (tU32 anIndex) const =0 |
| Get a texture from its index. {Property}. More... | |
| virtual iTexture * | CreateTexture (iHString *ahspName, eBitmapType aType, const achar *aaszFormat, tU32 anNumMipMaps, tU32 anWidth, tU32 anHeight, tU32 anDepth, tTextureFlags aFlags)=0 |
| Create a new texture. More... | |
| virtual iTexture * | CreateTextureFromBitmap (iHString *ahspName, iBitmapBase *apBitmap, tTextureFlags aFlags)=0 |
| Create a new texture from the specified bitmap. More... | |
| virtual iTexture * | CreateTextureFromRes (iHString *ahspRes, iHString *ahspBasePath, tTextureFlags aFlags)=0 |
| Create a new texture from the specified resource. More... | |
| virtual void | SetRecreateTextureWhenChanged (tBool abEnabled)=0 |
| Set whether CreateTextureFromRes recreates the texture when the source resource has changed. {Property}. More... | |
| virtual tBool | GetRecreateTextureWhenChanged () const =0 |
| Get whether CreateTextureFromRes recreates the texture when the source resource has changed. {Property}. More... | |
| virtual tBool | BlitBitmapToTexture (iBitmap2D *apSrc, iTexture *apDest, tU32 anDestLevel, const sRecti &aSrcRect=sRecti(0, 0), const sRecti &aDestRect=sRecti(0, 0), eTextureBlitFlags aFlags=eTextureBlitFlags_None)=0 |
| Blit a bitmap to a texture. More... | |
| virtual tBool | BlitTextureToBitmap (iTexture *apSrc, tU32 anSrcLevel, iBitmap2D *apDest, const sRecti &aSrcRect=sRecti(0, 0), const sRecti &aDestRect=sRecti(0, 0), eTextureBlitFlags aFlags=eTextureBlitFlags_None)=0 |
| Blit a texture to a bitmap. More... | |
| virtual tBool | BlitTextureToTexture (iTexture *apSrc, tU32 anSrcLevel, iTexture *apDest, tU32 anDestLevel, const sRecti &aSrcRect=sRecti(0, 0), const sRecti &aDestRect=sRecti(0, 0), eTextureBlitFlags aFlags=eTextureBlitFlags_None)=0 |
| Blit a texture into another texture. More... | |
| virtual tBool | BlitBitmap3DToTexture (iBitmap3D *apSrc, iTexture *apDest, tU32 anDestLevel, const sVec3i &aSrcMin=sVec3i::Zero(), const sVec3i &aDestMin=sVec3i::Zero(), const sVec3i &avSize=sVec3i::Zero(), eTextureBlitFlags aFlags=eTextureBlitFlags_None)=0 |
| Blit a 3d bitmap to a 3d texture. More... | |
| virtual tBool | BlitTextureToBitmap3D (iTexture *apSrc, tU32 anSrcLevel, iBitmap3D *apDest, const sVec3i &aSrcMin=sVec3i::Zero(), const sVec3i &aDestMin=sVec3i::Zero(), const sVec3i &avSize=sVec3i::Zero(), eTextureBlitFlags aFlags=eTextureBlitFlags_None)=0 |
| Blit a 3d texture to a 3d bitmap. More... | |
| virtual iBitmapBase * | CreateBitmapFromTexture (iTexture *apSrc)=0 |
| Create a bitmap from a texture. More... | |
Shaders. | |
| virtual tU32 | GetNumShaderProfile (eShaderUnit aUnit) const =0 |
| Get the number of Shader profile supported in the specified unit. More... | |
| virtual iHString * | GetShaderProfile (eShaderUnit aUnit, tU32 anIndex) const =0 |
| Get the profile at the specified index. More... | |
| virtual iShaderConstants * | CreateShaderConstants (tU32 anMaxRegisters) const =0 |
| Creates an empty shader constants instance. More... | |
| virtual tBool | SerializeShaderConstants (iShaderConstants *apConsts, iDataTable *apDT, tSerializeFlags aFlags)=0 |
| Serialize shader constants in the specified datatable. More... | |
| virtual iDeviceResourceManager * | GetShaderDeviceResourceManager () const =0 |
| Get the shader device resource manager. {Property}. More... | |
| virtual tBool | IsShader (iFile *apFile) const =0 |
| Check if the given file contains a shader that can be loaded by this driver. More... | |
| virtual iShader * | LoadShader (iFile *apFile)=0 |
| Load a compiled shader from the specified file. More... | |
| virtual iFile * | CompileShader (iHString *ahspName, eShaderUnit aUnit, iHString *ahspProfileName, iFile *apProgram, iDataTable *apMacros, tShaderCompilerFlags aFlags)=0 |
| Compile a shader. More... | |
Vertex, index and instance array. | |
| virtual iVertexArray * | CreateVertexArray (tU32 anNumVertices, tFVF anFVF, eArrayUsage aUsage)=0 |
| Create a new driver vertex array instance. More... | |
| virtual iIndexArray * | CreateIndexArray (eGraphicsPrimitiveType aPrimitiveType, tU32 anNumIndex, tU32 anMaxVertexIndex, eArrayUsage aUsage)=0 |
| Create a new driver index array instance. More... | |
Draw operation set. | |
| virtual iDrawOperation * | CreateDrawOperation ()=0 |
| Creates a new draw operation. More... | |
| virtual iDrawOperationSet * | CreateDrawOperationSet ()=0 |
| Create a draw operation set. More... | |
Occlusion queries. | |
| virtual iOcclusionQuery * | CreateOcclusionQuery ()=0 |
| Create a new occlusion query object. More... | |
Objects compilation | |
| virtual tIntPtr | CompileSamplerStates (iSamplerStates *apStates)=0 |
| Compile a sampler states. More... | |
| virtual iSamplerStates * | GetCompiledSamplerStates (tIntPtr aHandle) const =0 |
| Get the specified compiled sampler states. {Property}. More... | |
| virtual tIntPtr | CompileRasterizerStates (iRasterizerStates *apStates)=0 |
| Compile a rasterizer states. More... | |
| virtual iRasterizerStates * | GetCompiledRasterizerStates (tIntPtr aHandle) const =0 |
| Get the specified compiled rasterizer states. {Property}. More... | |
| virtual tIntPtr | CompileDepthStencilStates (iDepthStencilStates *apStates)=0 |
| Compile a depth stencil states. More... | |
| virtual iDepthStencilStates * | GetCompiledDepthStencilStates (tIntPtr aHandle) const =0 |
| Get the specified compiled depth stencil states. {Property}. More... | |
Materials | |
| virtual iMaterial * | CreateMaterial ()=0 |
| Create an empty material. More... | |
| virtual iMaterialLibrary * | CreateMaterialLibrary ()=0 |
| Create a material library. More... | |
Graphics debugger | |
| virtual iGraphicsDrawOpCapture * | CreateDrawOpCapture ()=0 |
| Create a new draw op capture object. More... | |
| virtual void | SetDrawOpCapture (iGraphicsDrawOpCapture *apCapture)=0 |
| Set the draw op capture object. {Property}. More... | |
| virtual iGraphicsDrawOpCapture * | GetDrawOpCapture () const =0 |
| Get the draw op capture object. {Property}. More... | |
Colors | |
| virtual tF32 | ColorLuminance (const sVec3f &aColor)=0 |
| Get the lumiance of a 3d color. More... | |
| virtual tF32 | ColorLuminanceEx (const sVec3f &aColor, const sVec3f &avLuminanceDistribution)=0 |
| Get the lumiance of a 3d color, allow to specify a luminance distribution. More... | |
| virtual sVec3f | ColorGammaCorrect (const sVec3f &aC, tF32 afFactor)=0 |
| Correct the gamma of a color. More... | |
| virtual sVec3f | ColorAdjustContrast (const sVec3f &C, tF32 c)=0 |
| Adjust the contrast of a color. More... | |
| virtual sVec3f | ColorAdjustSaturation (const sVec3f &C, tF32 s)=0 |
| Adjust the saturation of a color. More... | |
| virtual sVec3f | ColorNegative (const sVec3f &C)=0 |
| Get the negative of a color. More... | |
| virtual sVec3f | ColorGrey (const sVec3f &C)=0 |
| Gray a color. More... | |
| virtual sVec3f | ColorBlackWhite (const sVec3f &C, tF32 s)=0 |
| Set a color to be black or white in function of the specified reference. More... | |
| virtual sVec4f | ColorConvert (eColorSpace aSource, eColorSpace aDest, const sVec4f &aColor)=0 |
| Convert a color from one color space to another. More... | |
| virtual sVec4f | ColorConvertEx (eColorSpace aSource, eColorSpace aDest, const sVec4f &aColor, const sVec4f &aXYZRef)=0 |
| Convert a color from one color space to another, allows to specify the XYZ reference. More... | |
| virtual tU32 | GetNumNamedColors () const =0 |
| Get the number of named colors. {Property}. More... | |
| virtual const achar * | GetColorName (tU32 anIndex) const =0 |
| Get the name of the color at the specified index. {Property}. More... | |
| virtual tU32 | GetColorIndex (iHString *ahspName) const =0 |
| Get the index of the color with the specified name. {Property}. More... | |
| virtual tU32 | GetColorValue (tU32 anIndex) const =0 |
| Get the value of the color at the specified index. {Property}. More... | |
| virtual const achar * | FindColorName (const sColor4f &aColor) const =0 |
| Find the color with the closest match to the specified color. More... | |
| virtual sVec3f | GetColor3FromName (iHString *ahspName) const =0 |
| Get a color from it's name. {Property}. More... | |
| virtual sVec4f | GetColor4FromName (iHString *ahspName) const =0 |
| Get a color from it's name. {Property}. More... | |
| virtual sVec4f | GetColor4FromNameA (iHString *ahspName, tF32 afAlpha) const =0 |
| Get a color from it's name, specifying the alpha. More... | |
| virtual sVec3f | GetCssColor3FromName (iHString *ahspName) const =0 |
| Get a color from it's name. {Property}. More... | |
| virtual sVec4f | GetCssColor4FromName (iHString *ahspName) const =0 |
| Get a css color from it's name. {Property}. More... | |
| virtual sVec4f | GetCssColor4FromNameA (iHString *ahspName, tF32 afAlpha) const =0 |
| Get a css color from it's name, specifying the alpha. More... | |
UDPoints | |
| virtual void | UDPointsSphereRandom (tVec3fCVec *apResults) const =0 |
| Generates random points on a unit sphere. More... | |
| virtual void | UDPointsSphereHammersley (tVec3fCVec *apResults) const =0 |
| Generates hammersley base2 points on a unit sphere. More... | |
| virtual void | UDPointsSphereHammersleyEx (tVec3fCVec *apResults, tI32 p1) const =0 |
| Generates hammersley base p1 points on a unit sphere. More... | |
| virtual void | UDPointsSphereHalton (tVec3fCVec *apResults, tI32 p2=3) const =0 |
| Generates halton p1=2,p2 points on a unit sphere. More... | |
| virtual void | UDPointsSphereHaltonEx (tVec3fCVec *apResults, tI32 p1, tI32 p2) const =0 |
| Generates halton p1,p2 points on a unit sphere. More... | |
| virtual void | UDPointsHemisphereRandom (tVec3fCVec *apResults) const =0 |
| Generates random points on a unit hemisphere. More... | |
| virtual void | UDPointsHemisphereHammersley (tVec3fCVec *apResults) const =0 |
| Generates hammersley base2 points on a unit hemisphere. More... | |
| virtual void | UDPointsHemisphereHammersleyEx (tVec3fCVec *apResults, tI32 p1) const =0 |
| Generates hammersley base p1 points on a unit hemisphere. More... | |
| virtual void | UDPointsHemisphereHalton (tVec3fCVec *apResults, tI32 p2=3) const =0 |
| Generates halton p1=2,p2 points on a unit hemisphere. More... | |
| virtual void | UDPointsHemisphereHaltonEx (tVec3fCVec *apResults, tI32 p1, tI32 p2) const =0 |
| Generates halton p1,p2 points on a unit hemisphere. More... | |
| virtual void | UDPointsPlaneRandom (tVec2fCVec *apResults) const =0 |
| Generate random points on a unit plane. More... | |
| virtual void | UDPointsPlaneHammersley (tVec2fCVec *apResults) const =0 |
| Generate hammersley base2 points on a unit plane. More... | |
| virtual void | UDPointsPlaneHammersleyEx (tVec2fCVec *apResults, tI32 p1) const =0 |
| Generate hammersley base p1 points on a unit plane. More... | |
| virtual void | UDPointsPlaneHalton (tVec2fCVec *apResults, tI32 p2=3) const =0 |
| Generate halton p1=2,p2 points on a unit plane. More... | |
| virtual void | UDPointsPlaneHaltonEx (tVec2fCVec *apResults, tI32 p1, tI32 p2) const =0 |
| Generate halton p1,p2 points on a unit plane. More... | |
Damped springs | |
| virtual tF32 | DampedSpringGetDampingRatio (const tF32 Ks, const tF32 Kd) const =0 |
| Get the damping ratio of a spring set with the specified Ks/Kd constants. More... | |
| virtual tF32 | DampedSpringComputeKdFromDampingRatio (const tF32 Ks, const tF32 E) const =0 |
| Compute the value of Kd for the specified Ks that will result in a spring with the specified damping ratio. More... | |
| virtual tF32 | DampedSpringAcceleration1 (tF32 D, tF32 V, const tF32 Ks, const tF32 Kd) const =0 |
| Computes the acceleration of a 1D damped spring system. More... | |
| virtual sVec2f | DampedSpringAcceleration2 (const sVec2f &D, const sVec2f &V, const tF32 Ks, const tF32 Kd) const =0 |
| Computes the acceleration of a 1D damped spring system. More... | |
| virtual sVec3f | DampedSpringAcceleration3 (const sVec3f &D, const sVec3f &V, const tF32 Ks, const tF32 Kd) const =0 |
| Computes the acceleration of a 1D damped spring system. More... | |
| virtual sVec4f | DampedSpringAcceleration4 (const sVec4f &D, const sVec4f &V, const tF32 Ks, const tF32 Kd) const =0 |
| Computes the acceleration of a 4D damped spring system. The spring acceleration is applied in the direction opposite from its displacement from a rest position, and a damping acceleration is applied in the direction opposite from its velocity. The damping ratio is : E = Kd/(2*sqrt(Ks)). More... | |
| virtual ni::iDampedSpring1 * | CreateDampedSpring1 (const tF32 Ks, const tF32 Kd) const =0 |
| Creates a 1D damped spring. More... | |
| virtual ni::iDampedSpring2 * | CreateDampedSpring2 (const tF32 Ks, const tF32 Kd) const =0 |
| Creates a 2D damped spring. More... | |
| virtual ni::iDampedSpring3 * | CreateDampedSpring3 (const tF32 Ks, const tF32 Kd) const =0 |
| Creates a 3D damped spring. More... | |
| virtual ni::iDampedSpring4 * | CreateDampedSpring4 (const tF32 Ks, const tF32 Kd) const =0 |
| Creates a 4D damped spring. More... | |
| virtual ni::iDampedSpringPosition1 * | CreateDampedSpringPosition1 (const tF32 Ks, const tF32 Kd) const =0 |
| Creates a 1D damped spring position. More... | |
| virtual ni::iDampedSpringPosition2 * | CreateDampedSpringPosition2 (const tF32 Ks, const tF32 Kd) const =0 |
| Creates a 2D damped spring position. More... | |
| virtual ni::iDampedSpringPosition3 * | CreateDampedSpringPosition3 (const tF32 Ks, const tF32 Kd) const =0 |
| Creates a 3D damped spring position. More... | |
| virtual ni::iDampedSpringPosition4 * | CreateDampedSpringPosition4 (const tF32 Ks, const tF32 Kd) const =0 |
| Creates a 4D damped spring position. More... | |
Objects | |
| virtual iTransform * | CreateTransform () const =0 |
| Creates a new transform. More... | |
| virtual iFrustum * | CreateFrustum () const =0 |
| Creates a new frustum. More... | |
| virtual iBoundingVolume * | CreateAABB () const =0 |
| Creates a new AABB. More... | |
| virtual iIntersection * | CreateIntersection () const =0 |
| Creates an intersection. More... | |
| virtual iCamera * | CreateCamera () const =0 |
| Creates a new camera instance. More... | |
| virtual iNUSpline * | CreateNUSpline (eNUSplineType aType) const =0 |
| Creates a new Non-uniform spline. More... | |
Overlays | |
| virtual iOverlay * | CreateOverlayColor (const sColor4f &aColor)=0 |
| Creates a color overlay. More... | |
| virtual iOverlay * | CreateOverlayResource (iHString *ahspRes)=0 |
| Create an overlay from the specified resource. More... | |
| virtual iOverlay * | CreateOverlayTexture (iTexture *apTexture)=0 |
| Creates an overlay that will use the specified texture. More... | |
| virtual iOverlay * | CreateOverlayImage (iImage *apImage)=0 |
| Creates an overlay that will use the specified image. More... | |
| virtual iOverlay * | CreateOverlayMaterial (iMaterial *apMaterial)=0 |
| Creates an overlay that will use the specified material. More... | |
Font | |
| virtual iFont * | LoadFont (iHString *ahspName)=0 |
| Load a font. More... | |
| virtual iFont * | LoadFontEx (iHString *ahspName, tFontLoadFlags aFlags)=0 |
| Load a font. More... | |
| virtual iFont * | CreateFont (iHString *ahspName, iFile *pFile)=0 |
| Create a font from the given file. More... | |
| virtual iFont * | CreateFontFromBitmap (iHString *ahspName, iBitmap2D *pBmp)=0 |
| Create a font from the given bitmap. More... | |
| virtual iFont * | CreateFont8x8 (iHString *ahspName)=0 |
| Create the default 8x8 system font. More... | |
| virtual tBool | RegisterSystemFonts ()=0 |
| Register all the system fonts. More... | |
| virtual tBool | RegisterSystemFont (iHString *ahspName, iHString *ahspFilePath, iFont *apFont)=0 |
| Register a new font as a system font. More... | |
| virtual tU32 | GetNumSystemFonts () const =0 |
| Get the number of system fonts registered. {Property}. More... | |
| virtual iHString * | GetSystemFontName (tU32 anIndex) const =0 |
| Get the name of the specified system font. {Property}. More... | |
| virtual iHString * | GetSystemFontFilePath (tU32 anIndex) const =0 |
| Get the file path of the specified system font. {Property}. More... | |
| virtual iHString * | GetSystemFontFileName (tU32 anIndex) const =0 |
| Get the file name of the specified system font. {Property}. More... | |
| virtual tU32 | GetNumFonts () const =0 |
| Get the number of fonts registered. {Property}. More... | |
| virtual iFont * | GetFontFromIndex (tU32 anIndex) const =0 |
| Get the font at the given index. {Property}. More... | |
| virtual iFont * | GetFontFromName (iHString *ahspName) const =0 |
| Get a font from its exact name. {Property}. More... | |
| virtual iFont * | FindFont (iHString *ahspName, tFontLoadFlags mode) const =0 |
| Find a loaded font which matches the specified names. More... | |
| virtual tBool | ClearAllFontCaches ()=0 |
| Clear all font caches. More... | |
| virtual tU32 | GetFontCacheID () const =0 |
| Get the global font cache ID. More... | |
Images and Canvas. | |
| virtual iImage * | CreateImage (tU32 anWidth, tU32 anHeight)=0 |
| Create a new blank empty image. More... | |
| virtual iImage * | CreateImageFromFile (iFile *apFile)=0 |
| Create a new image from the specified bitmap file. More... | |
| virtual iImage * | CreateImageFromResource (iHString *ahspRes)=0 |
| Create a new image from the specified resource. More... | |
| virtual iImage * | CreateImageFromBitmap (iBitmap2D *apBitmap)=0 |
| Create a new image from the specified bitmap. More... | |
| virtual iImage * | CreateImageFromTexture (iTexture *apTexture)=0 |
| Create a new image from the specified texture. More... | |
| virtual iImage * | CreateImageFromBitmapAndTexture (iBitmap2D *apBitmap, iTexture *apTexture)=0 |
| Create a new image from the specified bitmap and texture. More... | |
| virtual iImage * | CreateImageEx (tU32 anWidth, tU32 anHeight, iBitmap2D *apBmp, iTexture *apTex, iTexture *apDepthStencil)=0 |
| Create a new image. More... | |
| virtual iImageMap * | CreateImageMap (const achar *aaszBaseName, const achar *aaszPxf)=0 |
| Create an image map. More... | |
| virtual iGraphicsContext * | CreateImageGraphicsContext (iImage *apImage, iGraphicsContext *apGraphicsContext)=0 |
| Create a graphics context that uses the specified Image as main render target and depth buffer. More... | |
| virtual iCanvas * | CreateCanvas (iGraphicsContext *apContext, iMaterial *apResetMaterial)=0 |
| Creates a new canvas. More... | |
Text object | |
| virtual Ptr< iTextObject > | CreateTextObject (const sVec2f &avSize, const achar *aaszText)=0 |
| Create a new text object. More... | |
Video | |
| virtual tBool | IsVideoFile (iFile *apFile) const =0 |
| Check whether the given file is a supported video file. More... | |
| virtual iVideoDecoder * | CreateVideoDecoder (iHString *ahspName, iFile *apFile, tU32 aFlags)=0 |
| Create a video decoder. More... | |
Additional Inherited Members | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
Get the number of dimensions of the specified texture coordinates. anTexCooIndex is the index (0 to 7).
Get the number of texture coordinates of the specified FVF.
Get a FVF from the specified string.
Get the offset of the specified component.
|
pure virtual |
Create a pixel format.
| aszFormat | is a achar string which describe the pixel format to create. |
|
pure virtual |
Create a new bitmap format.
|
pure virtual |
Create a new bitmap format.
|
pure virtual |
Create a new empty bitmap format.
|
pure virtual |
Create a new bitmap.
|
pure virtual |
Create a new bitmap.
|
pure virtual |
Create a 2D bitmap.
Create a 2D bitmap.
|
pure virtual |
Create a 2D bitmap from the specified memory.
|
pure virtual |
Create a 2D bitmap from the specified memory.
|
pure virtual |
Create a Cube bitmap.
|
pure virtual |
Create a Cube bitmap.
|
pure virtual |
Create a 3D bitmap.
|
pure virtual |
Create a 3D bitmap.
|
pure virtual |
Create a 3D bitmap from the specified memory.
|
pure virtual |
Create a 3D bitmap from the specified memory.
|
pure virtual |
Load a bitmap from a file.
|
pure virtual |
Load a bitmap from a resource.
|
pure virtual |
Load a bitmap from a file with the specified format.
|
pure virtual |
Save a bitmap in a file.
|
pure virtual |
Save a bitmap in the specified format in a file.
|
pure virtual |
Find the path/url matching the specified resource and basepath.
|
pure virtual |
Open a bitmap file.
| aszRes | is the resource to open. |
| aszBasePath | is an optional path where the resources will be searched first. Only the directory of the path is used. |
|
pure virtual |
Create a polygonal geometry.
|
pure virtual |
Create a polygonal geometry from an exisiting vertex array and index array.
|
pure virtual |
Create a geometry modifier.
| aszName | is the name of the modifier. |
| apGeometry | is the geometry that is gonna be modified by the modifier. |
| apInitData | is a modifier specific initialization parameter. |
|
pure virtual |
Create a cube polygonal geometry.
|
pure virtual |
Create a plane polygonal geometry.
|
pure virtual |
Create a cylinder polygonal geometry.
|
pure virtual |
Create a sphere polygonal geometry.
|
pure virtual |
Create a geosphere polygonal geometry.
|
pure virtual |
Create a disk sweep polygonal geometry.
|
pure virtual |
Update a disk polygonal geometry.
|
pure virtual |
Create a disk polygonal geometry.
Initialize the specified hardware driver.
|
pure virtual |
Get whether the driver has been initialized. {Property}.
|
pure virtual |
Get the driver that has been initialized. {Property}.
|
pure virtual |
Get the driver's capabilities. {Property}.
|
pure virtual |
Creates a new context.
|
pure virtual |
Get the generice device resource manager. {Property}.
|
pure virtual |
Create a new sampler states instance.
|
pure virtual |
Create a new depth stencil states instance.
|
pure virtual |
Create a new rasterizer states instance.
|
pure virtual |
Create a new fixed pipeline states instance.
|
pure virtual |
Check whether the specified texture format is supported and set the bitmap format object to the nearest matching native bitmap format.
|
pure virtual |
Get the texture device resource manager. {Property}.
|
pure virtual |
Get the number of textures in the manager. {Property}.
Get a texture from its name. {Property}.
Get a texture from its index. {Property}.
|
pure virtual |
Create a new texture.
|
pure virtual |
Create a new texture from the specified bitmap.
|
pure virtual |
Create a new texture from the specified resource.
Set whether CreateTextureFromRes recreates the texture when the source resource has changed. {Property}.
|
pure virtual |
Get whether CreateTextureFromRes recreates the texture when the source resource has changed. {Property}.
|
pure virtual |
Blit a bitmap to a texture.
|
pure virtual |
Blit a texture to a bitmap.
|
pure virtual |
Blit a texture into another texture.
|
pure virtual |
Blit a 3d bitmap to a 3d texture.
|
pure virtual |
Blit a 3d texture to a 3d bitmap.
|
pure virtual |
Create a bitmap from a texture.
|
pure virtual |
Get the number of Shader profile supported in the specified unit.
|
pure virtual |
Get the profile at the specified index.
|
pure virtual |
Creates an empty shader constants instance.
|
pure virtual |
Serialize shader constants in the specified datatable.
|
pure virtual |
Get the shader device resource manager. {Property}.
Check if the given file contains a shader that can be loaded by this driver.
Load a compiled shader from the specified file.
|
pure virtual |
Compile a shader.
|
pure virtual |
Create a new driver vertex array instance.
|
pure virtual |
Create a new driver index array instance.
|
pure virtual |
Creates a new draw operation.
|
pure virtual |
Create a draw operation set.
|
pure virtual |
Create a new occlusion query object.
|
pure virtual |
Compile a sampler states.
|
pure virtual |
Get the specified compiled sampler states. {Property}.
|
pure virtual |
Compile a rasterizer states.
|
pure virtual |
Get the specified compiled rasterizer states. {Property}.
|
pure virtual |
Compile a depth stencil states.
|
pure virtual |
Get the specified compiled depth stencil states. {Property}.
|
pure virtual |
Create an empty material.
|
pure virtual |
Create a material library.
|
pure virtual |
Create a new draw op capture object.
|
pure virtual |
Set the draw op capture object. {Property}.
|
pure virtual |
Get the draw op capture object. {Property}.
Get the lumiance of a 3d color.
|
pure virtual |
Get the lumiance of a 3d color, allow to specify a luminance distribution.
Correct the gamma of a color.
Adjust the contrast of a color.
Adjust the saturation of a color.
Set a color to be black or white in function of the specified reference.
|
pure virtual |
Convert a color from one color space to another.
|
pure virtual |
Convert a color from one color space to another, allows to specify the XYZ reference.
|
pure virtual |
Get the number of named colors. {Property}.
Get the name of the color at the specified index. {Property}.
Get the index of the color with the specified name. {Property}.
Get the value of the color at the specified index. {Property}.
Find the color with the closest match to the specified color.
Get a color from it's name. {Property}.
Get a color from it's name. {Property}.
Get a color from it's name, specifying the alpha.
Get a color from it's name. {Property}.
Get a css color from it's name. {Property}.
Get a css color from it's name, specifying the alpha.
|
pure virtual |
Generates random points on a unit sphere.
|
pure virtual |
Generates hammersley base2 points on a unit sphere.
|
pure virtual |
Generates hammersley base p1 points on a unit sphere.
|
pure virtual |
Generates halton p1=2,p2 points on a unit sphere.
|
pure virtual |
Generates halton p1,p2 points on a unit sphere.
|
pure virtual |
Generates random points on a unit hemisphere.
|
pure virtual |
Generates hammersley base2 points on a unit hemisphere.
|
pure virtual |
Generates hammersley base p1 points on a unit hemisphere.
|
pure virtual |
Generates halton p1=2,p2 points on a unit hemisphere.
|
pure virtual |
Generates halton p1,p2 points on a unit hemisphere.
|
pure virtual |
Generate random points on a unit plane.
|
pure virtual |
Generate hammersley base2 points on a unit plane.
|
pure virtual |
Generate hammersley base p1 points on a unit plane.
|
pure virtual |
Generate halton p1=2,p2 points on a unit plane.
|
pure virtual |
Generate halton p1,p2 points on a unit plane.
Get the damping ratio of a spring set with the specified Ks/Kd constants.
|
pure virtual |
Compute the value of Kd for the specified Ks that will result in a spring with the specified damping ratio.
|
pure virtual |
Computes the acceleration of a 1D damped spring system.
|
pure virtual |
Computes the acceleration of a 1D damped spring system.
|
pure virtual |
Computes the acceleration of a 1D damped spring system.
|
pure virtual |
Computes the acceleration of a 4D damped spring system. The spring acceleration is applied in the direction opposite from its displacement from a rest position, and a damping acceleration is applied in the direction opposite from its velocity. The damping ratio is : E = Kd/(2*sqrt(Ks)).
| D | is the displacement of the spring/object |
| V | is the current velocity |
| Ks | spring acceleration constant, control the spring component of the acceleration - the stiffness of the spring (the higher the value the faster the spring will reach its target). |
| Kd | damping acceleration constant, control the damping component of the acceleration. |
|
pure virtual |
Creates a 1D damped spring.
|
pure virtual |
Creates a 2D damped spring.
|
pure virtual |
Creates a 3D damped spring.
|
pure virtual |
Creates a 4D damped spring.
|
pure virtual |
Creates a 1D damped spring position.
|
pure virtual |
Creates a 2D damped spring position.
|
pure virtual |
Creates a 3D damped spring position.
|
pure virtual |
Creates a 4D damped spring position.
|
pure virtual |
Creates a new transform.
|
pure virtual |
Creates a new frustum.
|
pure virtual |
Creates a new AABB.
|
pure virtual |
Creates an intersection.
|
pure virtual |
Creates a new camera instance.
|
pure virtual |
Creates a new Non-uniform spline.
Creates a color overlay.
Create an overlay from the specified resource.
Creates an overlay that will use the specified texture.
Creates an overlay that will use the specified image.
Creates an overlay that will use the specified material.
Load a font.
|
pure virtual |
Load a font.
Create a font from the given file.
Create a font from the given bitmap.
Create the default 8x8 system font.
|
pure virtual |
Register all the system fonts.
|
pure virtual |
Register a new font as a system font.
|
pure virtual |
Get the number of system fonts registered. {Property}.
Get the name of the specified system font. {Property}.
Get the file path of the specified system font. {Property}.
Get the file name of the specified system font. {Property}.
|
pure virtual |
Get the number of fonts registered. {Property}.
Get the font at the given index. {Property}.
Get a font from its exact name. {Property}.
|
pure virtual |
Find a loaded font which matches the specified names.
|
pure virtual |
Clear all font caches.
|
pure virtual |
Get the global font cache ID.
Create a new blank empty image.
Create a new image from the specified bitmap file.
Create a new image from the specified resource.
Create a new image from the specified bitmap.
Create a new image from the specified texture.
|
pure virtual |
Create a new image from the specified bitmap and texture.
|
pure virtual |
Create a new image.
|
pure virtual |
Create an image map.
|
pure virtual |
Create a graphics context that uses the specified Image as main render target and depth buffer.
|
pure virtual |
Creates a new canvas.
| apContext | is the graphics context where the canvas will draw |
| apResetMaterial | if not NULL is the material that will be used to reset the default material's value when ResetStates() is called |
|
pure virtual |
Create a new text object.
Check whether the given file is a supported video file.
|
pure virtual |
Create a video decoder.
1.8.7