Description | Hierarchy | Fields | Methods | Properties |
type TVideoDriver = class(TReferenceCounted)
Interface to driver which is able to perform 2d and 3d graphics functions.
This interface is one of the most important interfaces of the Irrlicht Engine: All rendering and texture manipulation is done with this interface. You are able to use the Irrlicht Engine by only invoking methods of this interface if you like to, although the TSceneManager interface provides a lot of powerful classes and methods to make the programmer's life easier.
![]() |
constructor Create(Ref: Pointer); |
![]() |
function AddDynamicLight(const Light: TLight): LongInt; inline; |
![]() |
function AddMaterialRenderer(Renderer: TMaterialRenderer; const MName: AnsiString = ''): LongInt; inline; |
![]() |
function AddRenderTargetTexture(const Size: TSize; const MName: StringType = 'rt'; ColorFormat: TColorFormat = cfUnknown): TTexture; inline; |
![]() |
function AddTexture(const Size: TSize; const MName: StringType; Format: TColorFormat = cfA8R8G8B8): TTexture; overload; inline; |
![]() |
function AddTexture(const MName: StringType; Image: TImage; MipMapData: Pointer = nil): TTexture; overload; inline; |
![]() |
function BeginScene(BackBuffer: Boolean; ZBuffer: Boolean; BackgroundColor: TARGBColor): Boolean; overload; inline; |
![]() |
function BeginScene(BackBuffer: Boolean; ZBuffer: Boolean; BackgroundColor: TARGBColor; const ExposedVideoData: TExposedVideoData): Boolean; overload; inline; |
![]() |
function BeginScene(BackBuffer: Boolean; ZBuffer: Boolean; BackgroundColor: TARGBColor; const ExposedVideoData: TExposedVideoData; const SourceRect: TRect): Boolean; overload; inline; |
![]() |
function CreateAttributesFromMaterial(const Material: TMaterial): TAttributes; inline; |
![]() |
function CreateImage(ToCopy: TImage; const Pos: TPoint; const Size: TSize): TImage; overload; inline; |
![]() |
function CreateImage(Format: TColorFormat; const Size: TSize): TImage; overload; inline; |
![]() |
function CreateImage(Format: TColorFormat; ToCopy: TImage): TImage; overload; inline; |
![]() |
function CreateImage(Texture: TTexture; const Pos: TPoint; const Size: TSize): TImage; overload; inline; |
![]() |
function CreateImageFromData(Format: TColorFormat; const Size: TSize; Data: Pointer; OwnForeignMemory: Boolean = False; DeleteMemory: Boolean = True): TImage; inline; |
![]() |
function CreateImageFromFile(const FileName: StringType): TImage; overload; inline; |
![]() |
function CreateImageFromFile(RFile: TReadFile): TImage; overload; inline; |
![]() |
function CreateScreenShot: TImage; inline; |
![]() |
function EndScene: Boolean; inline; |
![]() |
function FindTexture(const FileName: StringType): TTexture; inline; |
![]() |
function GetDynamicLight(Index: LongWord): PLight; inline; |
![]() |
function GetFog: TFog; inline; |
![]() |
function GetGPUProgrammingServices: TGPUProgrammingServices; inline; |
![]() |
function GetImageLoader(Index: LongWord): TImageLoader; inline; |
![]() |
function GetImageWriter(Index: LongWord): TImageWriter; inline; |
![]() |
function GetMaterialRenderer(Index: LongWord): TMaterialRenderer; inline; |
![]() |
function GetMeshManipulator: TMeshManipulator; inline; |
![]() |
function GetPrimitiveCountDrawn(Mode: LongWord = 0): LongWord; inline; |
![]() |
function GetTexture(ReadFile: TReadFile): TTexture; overload; inline; |
![]() |
function GetTexture(const FileName: StringType): TTexture; overload; inline; |
![]() |
function GetTextureByIndex(Index: LongWord): TTexture; inline; |
![]() |
function GetTextureCreationFlag(Flag: TTextureCreationFlag): Boolean; inline; |
![]() |
function GetTransform(State: TTransformationState): TMatrix4; inline; |
![]() |
function QueryFeature(Feature: TVideoDriverFeature): Boolean; inline; |
![]() |
function SetClipPlane(Index: LongWord; const Plane: TPlane; Enable: Boolean = False): Boolean; inline; |
![]() |
function SetRenderTarget(Target: TRenderTarget; ClearTarget: Boolean = True; DoClearZBuffer: Boolean = True; Color: TARGBColor = 0): Boolean; inline; |
![]() |
function WriteImageToFile(Image: TImage; WFile: TWriteFile; Param: LongWord = 0): Boolean; overload; inline; |
![]() |
function WriteImageToFile(Image: TImage; const FileName: StringType; Param: LongWord = 0): Boolean; overload; inline; |
![]() |
procedure AddExternalImageLoader(Loader: TImageLoader); inline; |
![]() |
procedure AddExternalImageWriter(Writer: TImageWriter); inline; |
![]() |
procedure ClearZBuffer; inline; |
![]() |
procedure DeleteAllDynamicLights; inline; |
![]() |
procedure DisableFeature(Feature: TVideoDriverFeature ; Disable: Boolean = True); inline; |
![]() |
procedure Draw2DImage(Texture: TTexture; const DestPos: TPoint; const SourceRect, ClipRect: TRect; Color: TARGBColor = $ffffffff; UseAlphaChannel: Boolean = False); overload; inline; |
![]() |
procedure Draw2DImage(Texture: TTexture; const DestPos: TPoint; const SourceRect: TRect); overload; inline; |
![]() |
procedure Draw2DImage(Texture: TTexture; const DestRect, SourceRect, ClipRect: TRect; EdgeColors: array of TARGBColor; UseAlphaChannel: Boolean = False); overload; |
![]() |
procedure Draw2DImage(Texture: TTexture; const DestRect, SourceRect: TRect); overload; inline; |
![]() |
procedure Draw2DImage(Texture: TTexture; const DestPos: TPoint); overload; inline; |
![]() |
procedure Draw2DImageBatch(Texture: TTexture; const Positions: array of TPoint; const SourceRects: array of TRect); overload; |
![]() |
procedure Draw2DImageBatch(Texture: TTexture; const Positions: array of TPoint; const SourceRects: array of TRect; const ClipRect: TRect; Color: TARGBColor = $ffffffff; UseAlphaChannel: Boolean = False); overload; |
![]() |
procedure Draw2DLine(const PStart, PEnd: TPoint; Color: TARGBColor = $ffffffff); inline; |
![]() |
procedure Draw2DPolygon(const Center: TPoint; Radius: Single; Color: TARGBColor = $64ffffff; VertexCount: LongInt=10); inline; |
![]() |
procedure Draw2DRectangle(Color: TARGBColor; const Pos, Clip: TRect); overload; inline; |
![]() |
procedure Draw2DRectangle(Color: TARGBColor; const Pos: TRect); overload; inline; |
![]() |
procedure Draw2DRectangle(const Pos: TRect; LeftUp, RightUp, LeftDown, RightDown: TARGBColor; const ClipRect: TRect); overload; inline; |
![]() |
procedure Draw2DRectangle(const Pos: TRect; LeftUp, RightUp, LeftDown, RightDown: TARGBColor); overload; inline; |
![]() |
procedure Draw2DRectangleOutline(const Pos: TRect; Color: TARGBColor = $ffffffff); inline; |
![]() |
procedure Draw2DVertexPrimitiveList(Vertices: Pointer; VertexCount: LongWord; IndexList: Pointer; PrimCount: LongWord; VType: TVertexType = vtStandard; PType: TPrimitiveType = ptTriangles; IType: TIndexType = it16Bit); inline; |
![]() |
procedure Draw3DBox(const Box: TBoundingBox; Color: TARGBColor=$ffffffff); inline; |
![]() |
procedure Draw3DLine(const VStart, VEnd: TVector3D; Color: TARGBColor = $ffffffff); inline; |
![]() |
procedure Draw3DTriangle(const Triangle: TTriangle; Color: TARGBColor = $ffffffff); inline; |
![]() |
procedure DrawIndexedTriangleFan(Vertices: PVertex; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
![]() |
procedure DrawIndexedTriangleFan(Vertices: PVertex2TCoords; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
![]() |
procedure DrawIndexedTriangleFan(Vertices: PVertexTangents; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
![]() |
procedure DrawIndexedTriangleList(Vertices: PVertex2TCoords; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
![]() |
procedure DrawIndexedTriangleList(Vertices: PVertex; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
![]() |
procedure DrawIndexedTriangleList(Vertices: PVertexTangents; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
![]() |
procedure DrawMeshBuffer(Buffer: TMeshBuffer); inline; |
![]() |
procedure DrawPixel(X, Y: LongWord; Color: TARGBColor); inline; |
![]() |
procedure DrawStencilShadow(ClearStencilBuffer: Boolean = False; LeftUp: TARGBColor = $ff000000; RightUp: TARGBColor = $ff000000; LeftDown: TARGBColor = $ff000000; RightDown: TARGBColor = $ff000000); inline; |
![]() |
procedure DrawStencilShadowVolume(Triangles: PVector3D; Count: LongWord; ZFail: Boolean = True); inline; |
![]() |
procedure DrawVertexPrimitiveList(Vertices: Pointer; VertexCount: LongWord; IndexList: Pointer; PrimCount: LongWord; VType: TVertexType = vtStandard; PType: TPrimitiveType = ptTriangles; IType: TIndexType = it16Bit); inline; |
![]() |
procedure EnableClipPlane(Index: LongWord; Enable: Boolean=True); inline; |
![]() |
procedure EnableMaterial2D(Enable: Boolean = True); inline; |
![]() |
procedure FillMaterialStructureFromAttributes(out Material: TMaterial; Attributes: TAttributes); inline; |
![]() |
procedure MakeColorKeyTexture(Texture: TTexture; Color: TARGBColor; ZeroTexels: Boolean = False); overload; inline; |
![]() |
procedure MakeColorKeyTexture(Texture: TTexture; ColorKeyPixelPos: TPoint; ZeroTexels: Boolean = False); overload; inline; |
![]() |
procedure MakeNormalMapTexture(Texture: TTexture; Amplitude: Single = 1.0); inline; |
![]() |
procedure RemoveAllHardwareBuffers; inline; |
![]() |
procedure RemoveAllTextures; inline; |
![]() |
procedure RemoveTexture(Texture: TTexture); inline; |
![]() |
procedure RemvoveHardwareBuffer(Buffer: TMeshBuffer); inline; |
![]() |
procedure RenameTexture(Texture: TTexture; const NewName: StringType); inline; |
![]() |
procedure SetFog(const NFog: TFog); inline; |
![]() |
procedure SetMaterial(const Material: TMaterial); inline; |
![]() |
procedure SetMaterialRendererName(Index: LongInt; const RName: AnsiString); inline; |
![]() |
procedure SetTextureCreationFlag(Flag: TTextureCreationFlag; Enabled: Boolean = True); inline; |
![]() |
procedure SetTransform(State: TTransformationState; const Mat: TMatrix4); inline; |
![]() |
procedure TurnLightOn(LightIndex: LongInt; TurnOn: Boolean = True); inline; |
![]() |
property ColorFormat: TColorFormat read GetColorFormat; |
![]() |
property CurrentRenderTargetSize: TPoint read GetCurrentRenderTargetSize; |
![]() |
property DriverType: TVideoDriverType read FDriverType; |
![]() |
property ExposedVideoData: TExposedVideoData read GetExposedVideoData; |
![]() |
property FPS: LongInt read GetFPS; |
![]() |
property ImageLoaderCount: LongWord read GetImageLoaderCount; |
![]() |
property ImageWriterCount: LongWord read GetImageWriterCount; |
![]() |
property Material2D: PMaterial read GetMaterial2D; |
![]() |
property MaterialRendererCount: LongWord read GetMaterialRendererCount; |
![]() |
property MaxDynamicLightAmount: LongWord read GetMaximalDynamicLightAmount; |
![]() |
property MaxPrimitiveCount: LongWord read GetMaximalPrimitiveCount; |
![]() |
property MaxTextureSize: TSize read GetMaxTextureSize; |
![]() |
property MinHardwareBufferVertexCount: LongWord write SetMinHardwareBufferVertexCount; |
![]() |
property Name: StringType read GetName; |
![]() |
property OverrideMaterial: POverrideMaterial read GetOverrideMaterial; |
![]() |
property ScreenSize: TSize read GetScreenSize; |
![]() |
property TextureCount: LongWord read GetTextureCount; |
![]() |
property VendorInfo: AnsiString read GetVendorInfo; |
![]() |
property ViewPort: TRect read GetViewPort write SetViewPort; |
![]() |
property WasRecentlyReset: Boolean read CheckDriverReset; |
![]() |
constructor Create(Ref: Pointer); |
Constructor. Only used internally. |
![]() |
function AddDynamicLight(const Light: TLight): LongInt; inline; |
Adds a dynamic light, returning an index to the light. Parameters
ReturnsAn index to the light, or -1 if an error occurs. |
![]() |
function AddMaterialRenderer(Renderer: TMaterialRenderer; const MName: AnsiString = ''): LongInt; inline; |
Adds a new material renderer to the video device. Parameters
ReturnsThe number of the material type which can be set in TMaterialType to use the renderer. -1 is returned if an error occured. For example if you tried to add an material renderer to the software renderer or the null device, which do not accept material renderers. |
![]() |
function AddRenderTargetTexture(const Size: TSize; const MName: StringType = 'rt'; ColorFormat: TColorFormat = cfUnknown): TTexture; inline; |
Adds a new render target texture to the texture cache. Parameters
ReturnsThe created texture or nil if the texture could not be created. This pointer should not be dropped. See TReferenceCounted::drop() for more information. |
![]() |
function AddTexture(const Size: TSize; const MName: StringType; Format: TColorFormat = cfA8R8G8B8): TTexture; overload; inline; |
Creates an empty texture of specified size. Parameters
ReturnsThe newly created texture. This pointer should not be dropped. See TReferenceCounted.Drop for more information. |
![]() |
function AddTexture(const MName: StringType; Image: TImage; MipMapData: Pointer = nil): TTexture; overload; inline; |
Creates a texture from an IImage. Parameters
ReturnsThe newly created texture. This pointer should not be dropped. See TReferenceCounted.Drop for more information. |
![]() |
function BeginScene(BackBuffer: Boolean; ZBuffer: Boolean; BackgroundColor: TARGBColor): Boolean; overload; inline; |
Applications must call this method before performing any rendering. Parameters
ReturnsWhether the operation was successful. |
![]() |
function BeginScene(BackBuffer: Boolean; ZBuffer: Boolean; BackgroundColor: TARGBColor; const ExposedVideoData: TExposedVideoData): Boolean; overload; inline; |
Applications must call this method before performing any rendering. Parameters
ReturnsWhether the operation was successful. |
![]() |
function BeginScene(BackBuffer: Boolean; ZBuffer: Boolean; BackgroundColor: TARGBColor; const ExposedVideoData: TExposedVideoData; const SourceRect: TRect): Boolean; overload; inline; |
Applications must call this method before performing any rendering. Parameters
ReturnsWhether the operation was successful. |
![]() |
function CreateAttributesFromMaterial(const Material: TMaterial): TAttributes; inline; |
Creates material attributes list from a material. Parameters
ReturnsThe TAttributes container holding the material properties. |
![]() |
function CreateImage(ToCopy: TImage; const Pos: TPoint; const Size: TSize): TImage; overload; inline; |
Warning: this symbol is deprecated. Creates a software image from a part of another image. Create an empty image and use CopyTo. Parameters
ReturnsThe created image. If you no longer need the image, you should call TImage.Drop. See TReferenceCounted.Drop for more information. |
![]() |
function CreateImage(Format: TColorFormat; const Size: TSize): TImage; overload; inline; |
Creates an empty software image. Parameters
ReturnsThe created image. If you no longer need the image, you should call TImage.Drop. See TReferenceCounted.Drop for more information. |
![]() |
function CreateImage(Format: TColorFormat; ToCopy: TImage): TImage; overload; inline; |
Warning: this symbol is deprecated. Creates a software image by converting it to given format from another image. Create an empty image and use CopyTo. Parameters
ReturnsThe created image. If you no longer need the image, you should call TImage.Drop. See TReferenceCounted.Drop for more information. |
![]() |
function CreateImage(Texture: TTexture; const Pos: TPoint; const Size: TSize): TImage; overload; inline; |
Creates a software image from a part of a texture. Parameters
ReturnsThe created image. If you no longer need the image, you should call TImage.Drop. See TReferenceCounted.Drop for more information. |
![]() |
function CreateImageFromData(Format: TColorFormat; const Size: TSize; Data: Pointer; OwnForeignMemory: Boolean = False; DeleteMemory: Boolean = True): TImage; inline; |
Creates a software image from a byte array. Parameters
ReturnsThe created image. If you no longer need the image, you should call TImage.Drop. See TReferenceCounted.Drop for more information. |
![]() |
function CreateImageFromFile(const FileName: StringType): TImage; overload; inline; |
Creates a software image from a file. Parameters
ReturnsThe created image. If you no longer need the image, you should call TImage.Drop. See TReferenceCounted.Drop for more information. |
![]() |
function CreateImageFromFile(RFile: TReadFile): TImage; overload; inline; |
Creates a software image from a file. Parameters
ReturnsThe created image. If you no longer need the image, you should call TImage.Drop. See TReferenceCounted.Drop for more information. |
![]() |
function CreateScreenShot: TImage; inline; |
Creates a screenshot of the last rendered frame. |
![]() |
function FindTexture(const FileName: StringType): TTexture; inline; |
Check if the image is already loaded. Parameters
ReturnsThe loaded texture, or nil if not found. |
![]() |
function GetDynamicLight(Index: LongWord): PLight; inline; |
Returns light data which was previously set by IVideoDriver::addDynamicLight(). Parameters
ReturnsA pointer to the light data. |
![]() |
function GetFog: TFog; inline; |
![]() |
function GetGPUProgrammingServices: TGPUProgrammingServices; inline; |
Gets the IGPUProgrammingServices interface. ReturnsThe IGPUProgrammingServices. Returns nilif the video driver does not support this. For example the Software driver and the Null driver will always return nil. |
![]() |
function GetImageLoader(Index: LongWord): TImageLoader; inline; |
Retrieve the given image loader. Parameters
ReturnsThe specified loader, or nil if there is no loader with that index. |
![]() |
function GetImageWriter(Index: LongWord): TImageWriter; inline; |
Retrieve the given image writer. Parameters
ReturnsThe specified writer, or nil if there is no writer with that index. |
![]() |
function GetMaterialRenderer(Index: LongWord): TMaterialRenderer; inline; |
Get access to a material renderer by index. value which was returned by AddMaterialRenderer. Parameters
ReturnsThe Material renderer or nil if not existing. |
![]() |
function GetMeshManipulator: TMeshManipulator; inline; |
Returns the mesh manipulator. |
![]() |
function GetPrimitiveCountDrawn(Mode: LongWord = 0): LongWord; inline; |
Returns amount of primitives (mostly triangles) which were drawn in the last frame. Like the FPS property, this method provides statistical information. Parameters
ReturnsNumber of primitives drawn in the last frame. |
![]() |
function GetTexture(ReadFile: TReadFile): TTexture; overload; inline; |
Get access to a named texture. Parameters
ReturnsThe texture, or nil if the texture could not be loaded. This pointer should not be dropped. See TReferenceCounted.Drop for more information. |
![]() |
function GetTexture(const FileName: StringType): TTexture; overload; inline; |
Get access to a named texture. Parameters
ReturnsThe texture, or nil if the texture could not be loaded. This pointer should not be dropped. See TReferenceCounted.Drop for more information. |
![]() |
function GetTextureByIndex(Index: LongWord): TTexture; inline; |
Returns a texture by index. this index might change when adding or removing textures. Parameters
ReturnsThe texture, or nil if the texture was not set or index is out of bounds. This pointer should not be dropped. See TReferenceCounted.Drop for more information. |
![]() |
function GetTextureCreationFlag(Flag: TTextureCreationFlag): Boolean; inline; |
Returns if a texture creation flag is enabled or disabled. Parameters
ReturnsThe current texture creation mode. |
![]() |
function GetTransform(State: TTransformationState): TMatrix4; inline; |
Returns the transformation set by setTransform. Parameters
ReturnsMatrix describing the transformation. |
![]() |
function QueryFeature(Feature: TVideoDriverFeature): Boolean; inline; |
Returns whether a given feature is available in the driver. Parameters
ReturnsWhether this feature is available. |
![]() |
function SetClipPlane(Index: LongWord; const Plane: TPlane; Enable: Boolean = False): Boolean; inline; |
Set or unset a clipping plane. Parameters
ReturnsTrue if the clipping plane is usable. |
![]() |
function SetRenderTarget(Target: TRenderTarget; ClearTarget: Boolean = True; DoClearZBuffer: Boolean = True; Color: TARGBColor = 0): Boolean; inline; |
Sets or resets special render targets. Parameters
ReturnsTrue if sucessful and false if not. |
![]() |
function WriteImageToFile(Image: TImage; WFile: TWriteFile; Param: LongWord = 0): Boolean; overload; inline; |
Writes the provided image to a file. Parameters
ReturnsTrue on success. |
![]() |
function WriteImageToFile(Image: TImage; const FileName: StringType; Param: LongWord = 0): Boolean; overload; inline; |
Writes the provided image to a file. Parameters
ReturnsTrue on success. |
![]() |
procedure AddExternalImageLoader(Loader: TImageLoader); inline; |
Adds an external image loader to the engine. Parameters
|
![]() |
procedure AddExternalImageWriter(Writer: TImageWriter); inline; |
Adds an external image writer to the engine. Parameters
|
![]() |
procedure ClearZBuffer; inline; |
Clears the ZBuffer. |
![]() |
procedure DeleteAllDynamicLights; inline; |
Deletes all dynamic lights which were previously added with AddDynamicLight. |
![]() |
procedure DisableFeature(Feature: TVideoDriverFeature ; Disable: Boolean = True); inline; |
Disable a feature of the driver. Can also be used to enable the features again. It is not possible to enable unsupported features this way, though. Parameters
|
![]() |
procedure Draw2DImage(Texture: TTexture; const DestPos: TPoint; const SourceRect, ClipRect: TRect; Color: TARGBColor = $ffffffff; UseAlphaChannel: Boolean = False); overload; inline; |
Draws a part of the texture into the rectangle. Note that colors must be an array of 4 colors if used. Parameters
|
![]() |
procedure Draw2DImage(Texture: TTexture; const DestPos: TPoint; const SourceRect: TRect); overload; inline; |
Draws a part of the texture into the rectangle. Note that colors must be an array of 4 colors if used. Parameters
|
![]() |
procedure Draw2DImage(Texture: TTexture; const DestRect, SourceRect, ClipRect: TRect; EdgeColors: array of TARGBColor; UseAlphaChannel: Boolean = False); overload; |
Draws a part of the texture into the rectangle. Note that colors must be an array of 4 colors if used. Parameters
|
![]() |
procedure Draw2DImage(Texture: TTexture; const DestRect, SourceRect: TRect); overload; inline; |
Draws a part of the texture into the rectangle. Note that colors must be an array of 4 colors if used. Parameters
|
![]() |
procedure Draw2DImage(Texture: TTexture; const DestPos: TPoint); overload; inline; |
Draws a part of the texture into the rectangle. Note that colors must be an array of 4 colors if used. Parameters
|
![]() |
procedure Draw2DImageBatch(Texture: TTexture; const Positions: array of TPoint; const SourceRects: array of TRect); overload; |
Draws a set of 2d images, using a color and the alpha channel of the texture. Parameters
|
![]() |
procedure Draw2DImageBatch(Texture: TTexture; const Positions: array of TPoint; const SourceRects: array of TRect; const ClipRect: TRect; Color: TARGBColor = $ffffffff; UseAlphaChannel: Boolean = False); overload; |
Draws a set of 2d images, using a color and the alpha channel of the texture. Parameters
|
![]() |
procedure Draw2DLine(const PStart, PEnd: TPoint; Color: TARGBColor = $ffffffff); inline; |
Draws a 2d line. Parameters
|
![]() |
procedure Draw2DPolygon(const Center: TPoint; Radius: Single; Color: TARGBColor = $64ffffff; VertexCount: LongInt=10); inline; |
Draws a non filled concyclic regular 2d polyon. Parameters
|
![]() |
procedure Draw2DRectangle(Color: TARGBColor; const Pos, Clip: TRect); overload; inline; |
Draws a 2d rectangle. Parameters
|
![]() |
procedure Draw2DRectangle(Color: TARGBColor; const Pos: TRect); overload; inline; |
Draws a 2d rectangle. Parameters
|
![]() |
procedure Draw2DRectangle(const Pos: TRect; LeftUp, RightUp, LeftDown, RightDown: TARGBColor; const ClipRect: TRect); overload; inline; |
Draws a 2d rectangle with a gradient. Parameters
|
![]() |
procedure Draw2DRectangle(const Pos: TRect; LeftUp, RightUp, LeftDown, RightDown: TARGBColor); overload; inline; |
Draws a 2d rectangle with a gradient. Parameters
|
![]() |
procedure Draw2DRectangleOutline(const Pos: TRect; Color: TARGBColor = $ffffffff); inline; |
Draws a 2d rectangle. Parameters
|
![]() |
procedure Draw2DVertexPrimitiveList(Vertices: Pointer; VertexCount: LongWord; IndexList: Pointer; PrimCount: LongWord; VType: TVertexType = vtStandard; PType: TPrimitiveType = ptTriangles; IType: TIndexType = it16Bit); inline; |
Parameters
|
![]() |
procedure Draw3DBox(const Box: TBoundingBox; Color: TARGBColor=$ffffffff); inline; |
Draws a 3d axis aligned box. VideoDriver.SetMaterial(someMaterial); VideoDriver.SetTransform(tsWorld, identityMatrix); for some properly set up material before drawing the box. Parameters
|
![]() |
procedure Draw3DLine(const VStart, VEnd: TVector3D; Color: TARGBColor = $ffffffff); inline; |
Draws a 3d line. VideoDriver.SetMaterial(someMaterial); VideoDriver.SetTransform(tsWorld, identityMatrix); for some properly set up material before drawing the box. Some drivers support line thickness set in the material. Parameters
|
![]() |
procedure Draw3DTriangle(const Triangle: TTriangle; Color: TARGBColor = $ffffffff); inline; |
Draws a 3d triangle. VideoDriver.SetMaterial(someMaterial); VideoDriver.SetTransform(tsWorld, identityMatrix); for some properly set up material before drawing the triangle.
Parameters
|
![]() |
procedure DrawIndexedTriangleFan(Vertices: PVertex; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
Draws an indexed triangle fan of TVertex. Parameters
|
![]() |
procedure DrawIndexedTriangleFan(Vertices: PVertex2TCoords; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
Draws an indexed triangle fan of TVertex2TCoords. Parameters
|
![]() |
procedure DrawIndexedTriangleFan(Vertices: PVertexTangents; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
Draws an indexed triangle fan of TVertexTangents. Parameters
|
![]() |
procedure DrawIndexedTriangleList(Vertices: PVertex2TCoords; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
Draws an indexed triangle list of TVertex2TCoords. Parameters
|
![]() |
procedure DrawIndexedTriangleList(Vertices: PVertex; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
Draws an indexed triangle list of TVertex. Parameters
|
![]() |
procedure DrawIndexedTriangleList(Vertices: PVertexTangents; VertexCount: LongWord; IndexList: PWord; TriangleCount: LongWord); overload; inline; |
Draws an indexed triangle list of TVertexTangents. Parameters
|
![]() |
procedure DrawMeshBuffer(Buffer: TMeshBuffer); inline; |
Draws a mesh buffer. Parameters
|
![]() |
procedure DrawPixel(X, Y: LongWord; Color: TARGBColor); inline; |
Draws a single pixel. Parameters
|
![]() |
procedure DrawStencilShadow(ClearStencilBuffer: Boolean = False; LeftUp: TARGBColor = $ff000000; RightUp: TARGBColor = $ff000000; LeftDown: TARGBColor = $ff000000; RightDown: TARGBColor = $ff000000); inline; |
Fills the stencil shadow with color. Parameters
|
![]() |
procedure DrawStencilShadowVolume(Triangles: PVector3D; Count: LongWord; ZFail: Boolean = True); inline; |
Draws a shadow volume into the stencil buffer. Parameters
|
![]() |
procedure DrawVertexPrimitiveList(Vertices: Pointer; VertexCount: LongWord; IndexList: Pointer; PrimCount: LongWord; VType: TVertexType = vtStandard; PType: TPrimitiveType = ptTriangles; IType: TIndexType = it16Bit); inline; |
Draws a vertex primitive list. Parameters
|
![]() |
procedure EnableMaterial2D(Enable: Boolean = True); inline; |
Enable the 2d override material. Parameters
|
![]() |
procedure FillMaterialStructureFromAttributes(out Material: TMaterial; Attributes: TAttributes); inline; |
Fills an SMaterial structure from attributes. Parameters
|
![]() |
procedure MakeColorKeyTexture(Texture: TTexture; Color: TARGBColor; ZeroTexels: Boolean = False); overload; inline; |
Warning: this symbol is deprecated.
Sets a boolean alpha channel on the texture based on the color at a position. Parameters
|
![]() |
procedure MakeColorKeyTexture(Texture: TTexture; ColorKeyPixelPos: TPoint; ZeroTexels: Boolean = False); overload; inline; |
Warning: this symbol is deprecated.
Sets a boolean alpha channel on the texture based on the color at a position. Parameters
|
![]() |
procedure MakeNormalMapTexture(Texture: TTexture; Amplitude: Single = 1.0); inline; |
Creates a normal map from a height map texture. component of the texture as addition. This value is used by the mtParallaxMapSolid material and similar materials. Parameters
|
![]() |
procedure RemoveAllHardwareBuffers; inline; |
Removes all hardware buffers. |
![]() |
procedure RemoveAllTextures; inline; |
Removes all textures from the texture cache and deletes them. pointer to the instances of TTexture may no longer be valid, if it was not grabbed before by other parts of the engine for storing it longer. So it is a good idea to set all materials which are using this texture to nil or another texture first. ReturnsThis method can free a lot of memory! Please note that after calling this, the |
![]() |
procedure RemoveTexture(Texture: TTexture); inline; |
Removes a texture from the texture cache and deletes it. Parameters
|
![]() |
procedure RemvoveHardwareBuffer(Buffer: TMeshBuffer); inline; |
Removes hardware buffer for a mesh buffer. |
![]() |
procedure RenameTexture(Texture: TTexture; const NewName: StringType); inline; |
Renames a texture. Parameters |
![]() |
procedure SetFog(const NFog: TFog); inline; |
Sets the fog mode. |
![]() |
procedure SetMaterial(const Material: TMaterial); inline; |
Sets a material. Parameters
|
![]() |
procedure SetMaterialRendererName(Index: LongInt; const RName: AnsiString); inline; |
Sets the name of a material renderer. Parameters
|
![]() |
procedure SetTextureCreationFlag(Flag: TTextureCreationFlag; Enabled: Boolean = True); inline; |
Enables or disables a texture creation flag. Parameters
|
![]() |
procedure SetTransform(State: TTransformationState; const Mat: TMatrix4); inline; |
Sets transformation matrices. Parameters
|
![]() |
procedure TurnLightOn(LightIndex: LongInt; TurnOn: Boolean = True); inline; |
Turns a dynamic light on or off. Parameters
|
![]() |
property ColorFormat: TColorFormat read GetColorFormat; |
The current color format of the color buffer. |
![]() |
property DriverType: TVideoDriverType read FDriverType; |
The driver type. |
![]() |
property ExposedVideoData: TExposedVideoData read GetExposedVideoData; |
Returns driver and operating system specific data about the TVideoDriver. |
![]() |
property ImageLoaderCount: LongWord read GetImageLoaderCount; |
The number of installed image loaders. |
![]() |
property ImageWriterCount: LongWord read GetImageWriterCount; |
The number of installed image writers. |
![]() |
property Material2D: PMaterial read GetMaterial2D; |
The 2d override material for altering its values. |
![]() |
property MaterialRendererCount: LongWord read GetMaterialRendererCount; |
The number of currently available material renderers. |
![]() |
property MaxDynamicLightAmount: LongWord read GetMaximalDynamicLightAmount; |
The maximum number of dynamic lights the device can handle. |
![]() |
property MaxPrimitiveCount: LongWord read GetMaximalPrimitiveCount; |
The maximum number of primitives (mostly vertices) which the device is able to render with one DrawVertexPrimitiveList call. |
![]() |
property MaxTextureSize: TSize read GetMaxTextureSize; |
The maximum texture size supported. |
![]() |
property MinHardwareBufferVertexCount: LongWord write SetMinHardwareBufferVertexCount; |
The minimum number of vertices for which a hw buffer will be created. |
![]() |
property Name: StringType read GetName; |
The |
![]() |
property OverrideMaterial: POverrideMaterial read GetOverrideMaterial; |
The global Material which might override local materials. |
![]() |
property ScreenSize: TSize read GetScreenSize; |
The size of the screen or render window. |
![]() |
property TextureCount: LongWord read GetTextureCount; |
The number of textures currently loaded. |
![]() |
property VendorInfo: AnsiString read GetVendorInfo; |
The graphics card vendor name. |
![]() |
property ViewPort: TRect read GetViewPort write SetViewPort; |
The view port, i.e. the rectangle defining the area of rendering operations. |
![]() |
property WasRecentlyReset: Boolean read CheckDriverReset; |
Whether the driver was recently reset. |