|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMicrosoft.Xna.Framework.GraphicsDeviceManager
public class GraphicsDeviceManager
Handles the configuration and management of the graphics device.
Field Summary | |
---|---|
int |
BackBufferHeight
|
int |
BackBufferWidth
|
static int |
DefaultBackBufferHeight
Specifies the default minimum back-buffer height. |
static int |
DefaultBackBufferWidth
Specifies the default minimum back-buffer width. |
Microsoft.Xna.Framework.Graphics.DepthFormat |
DepthStencilFormat
|
System.Event<System.EventArgs> |
Disposed
|
boolean |
IsFullScreen
|
Microsoft.Xna.Framework.Graphics.ShaderProfile |
MinimumPixelShaderProfile
|
Microsoft.Xna.Framework.Graphics.ShaderProfile |
MinimumVertexShaderProfile
|
boolean |
PreferMultiSampling
|
Microsoft.Xna.Framework.Graphics.SurfaceFormat |
PreferredBackBufferFormat
|
boolean |
SynchronizeWithVerticalRetrace
|
static Microsoft.Xna.Framework.Graphics.SurfaceFormat[] |
ValidAdapterFormats
|
static Microsoft.Xna.Framework.Graphics.SurfaceFormat[] |
ValidBackBufferFormats
|
static Microsoft.Xna.Framework.Graphics.DeviceType[] |
ValidDeviceTypes
|
Fields inherited from interface Microsoft.Xna.Framework.IGraphicsDeviceService |
---|
DeviceCreated, DeviceDisposing, DeviceReset, DeviceResetting |
Constructor Summary | |
---|---|
GraphicsDeviceManager(Game game)
Creates a new GraphicsDeviceManager and registers it to handle the configuration and management of the graphics device for the specified Game. |
Method Summary | |
---|---|
void |
ApplyChanges()
Applies any changes to device-related properties, changing the graphics device as necessary. |
boolean |
BeginDraw()
|
void |
CreateDevice()
Called to ensure that the device manager has created a valid device. |
void |
Dispose()
|
void |
EndDraw()
|
Microsoft.Xna.Framework.Graphics.GraphicsDevice |
getGraphicsDevice()
Retrieves a GraphicsDevice. |
Microsoft.Xna.Framework.Graphics.GraphicsProfile |
getGraphicsProfile()
|
void |
setGraphicsProfile(Microsoft.Xna.Framework.Graphics.GraphicsProfile value)
|
void |
ToggleFullScreen()
Toggles between full screen and windowed mode. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DefaultBackBufferWidth
public static final int DefaultBackBufferHeight
public static final Microsoft.Xna.Framework.Graphics.SurfaceFormat[] ValidAdapterFormats
public static final Microsoft.Xna.Framework.Graphics.SurfaceFormat[] ValidBackBufferFormats
public static final Microsoft.Xna.Framework.Graphics.DeviceType[] ValidDeviceTypes
public Microsoft.Xna.Framework.Graphics.ShaderProfile MinimumPixelShaderProfile
public Microsoft.Xna.Framework.Graphics.ShaderProfile MinimumVertexShaderProfile
public boolean PreferMultiSampling
public Microsoft.Xna.Framework.Graphics.SurfaceFormat PreferredBackBufferFormat
public int BackBufferHeight
public int BackBufferWidth
public boolean SynchronizeWithVerticalRetrace
public boolean IsFullScreen
public Microsoft.Xna.Framework.Graphics.DepthFormat DepthStencilFormat
public final System.Event<System.EventArgs> Disposed
Constructor Detail |
---|
public GraphicsDeviceManager(Game game)
game
- Game the GraphicsDeviceManager should be associated with.Method Detail |
---|
public Microsoft.Xna.Framework.Graphics.GraphicsDevice getGraphicsDevice()
IGraphicsDeviceService
getGraphicsDevice
in interface IGraphicsDeviceService
public Microsoft.Xna.Framework.Graphics.GraphicsProfile getGraphicsProfile()
public void setGraphicsProfile(Microsoft.Xna.Framework.Graphics.GraphicsProfile value)
public void ApplyChanges()
public boolean BeginDraw()
BeginDraw
in interface IGraphicsDeviceManager
public void CreateDevice()
CreateDevice
in interface IGraphicsDeviceManager
public void Dispose()
Dispose
in interface System.IDisposable
public void EndDraw()
EndDraw
in interface IGraphicsDeviceManager
public void ToggleFullScreen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |