Sdílet prostřednictvím


OcclusionQuery Members

The following tables list the members exposed by the OcclusionQuery type.

Public Constructors

Name Description
Public Method OcclusionQuery Initializes a new instance of OcclusionQuery with the specified device.

Public Properties

Name Description
Public Property GraphicsDevice Gets the graphics device being queried.
Public Property IsComplete Gets a value that indicates if the occlusion query has completed.
Public Property IsDisposed Gets a value that indicates whether the object is disposed.
Public Property IsSupported Specifies if occlusion queries are supported on the related graphics device.
Public Property Name Gets the name of this occlusion query
Public Property PixelCount Gets the number of visible pixels.
Public Property Tag Gets the resource tag for this occlusion query.

Public Methods

Name Description
Public Method Begin Begins application of the query.
Public Method Dispose Overloaded. Immediately releases the unmanaged resources used by this object.
Public Method End Ends the application of the query.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method ToString Retrieves a string representation of this object.

Protected Methods

Name Description
Protected Method Finalize Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.
Protected Method MemberwiseClone (Inherited from Object.)
Protected Method raise_Disposing Raises the Disposing event when called from within a derived class.

Public Events

Name Description
Public Event Disposing Occurs when Dispose is called or when this object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime.

See Also

Reference

OcclusionQuery Class
Microsoft.Xna.Framework.Graphics Namespace