Video.RenderToTexture Method

Language:

Enables the Video to trigger the TextureReadyToRender event to generate Texture objects for rendering video in Microsoft Direct3D.

Definition

Visual Basic Public Sub RenderToTexture( _
    ByVal graphicsDevice As Device _
)
C# public void RenderToTexture(
    Device graphicsDevice
);
C++ public:
void RenderToTexture(
    DevicegraphicsDevice
);
JScript public function RenderToTexture(
    graphicsDevice : Device
);

Parameters

graphicsDevice Microsoft.DirectX.Direct3D.Device
The parent Direct3D.Device that renders the video textures.

Remarks

When rendering a video in Direct3D using this method, be sure to hook the TextureReadyToRender event to retrieve the Texture objects.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center