OcclusionQuery Constructor
Initializes a new instance of OcclusionQuery with the specified device.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public OcclusionQuery (
GraphicsDevice graphicsDevice
)
Parameters
- graphicsDevice
The graphics device to associate with this query.
Exceptions
Exception type | Condition |
---|---|
ArgumentNullException | graphicsDevice is null. |
InvalidOperationException | This resource could not be created. |
See Also
Reference
OcclusionQuery Class
OcclusionQuery Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista