![]() |
![]() |
![]() |
Device.GetTexture Method |
Language: |
Retrieves a texture assigned to a stage for a device.
Visual Basic .NET Public Function GetTexture( _
ByVal stage As Integer _
) As TextureC# public Texture GetTexture(
int stage
);Managed C++ public: Texture* GetTexture(
int stage
);JScript .NET public function GetTexture(
stage : int
) : Texture;
stage System.Int32. Stage identifier of the texture to retrieve. Stage identifiers are zero-based.
Microsoft.DirectX.Direct3D.Texture . A BaseTexture object that represents the returned texture.
Typically, methods that return state do not work on devices created using PureDevice. This method, however, is an exception.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center