Device.GetTexture Method |
Language: |
Retrieves a texture assigned to a stage for a device.
Visual Basic Public Function GetTexture( _
ByVal stage As Integer _
) As TextureC# public Texture GetTexture(
int stage
);C++ public:
Texture^ GetTexture(
int stage
);JScript 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.
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