Microsoft DirectX 8.1 (Visual Basic) |
Provides access to the parent cube texture or texture (mipmap) object, if this surface is a child level of a cube texture or a mipmap.
object.GetContainer( _ Riid As GUID) As Unknown
An Unknown object to fill with the container object, if the query succeeds. See Remarks.
If the method fails, an error is raised and Err.Number can be set to D3DERR_INVALIDCALL.
For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.
If the surface is created using Direct3DDevice8.CreateImageSurface, Direct3DDevice8.CreateRenderTarget, or Direct3DDevice8.CreateDepthStencilSurface, the surface is considered stand alone. In this case, GetContainer will return the Direct3D device used to create the surface.