Class GraphicsDevice
Inheritance
System.Object
GraphicsDevice
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Inferno.Graphics
Assembly: Inferno.Desktop.dll
Syntax
public class GraphicsDevice : IDisposable
Constructors
| Improve this Doc View SourceGraphicsDevice()
Declaration
public GraphicsDevice()
Fields
| Improve this Doc View SourcePlatformType
Declaration
public const PlatformType PlatformType = PlatformType.OpenGL
Field Value
| Type | Description |
|---|---|
| PlatformType |
Properties
| Improve this Doc View SourceRenderTarget
Declaration
public RenderTarget RenderTarget { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderTarget |
ScreenBounds
The Bounds of the Screen
Declaration
public Rectangle ScreenBounds { get; }
Property Value
| Type | Description |
|---|---|
| Rectangle |
Methods
| Improve this Doc View SourceAttachWindow(GameWindow)
Declaration
public void AttachWindow(GameWindow window)
Parameters
| Type | Name | Description |
|---|---|---|
| GameWindow | window |
BeginDraw()
Declaration
public void BeginDraw()
Clear(Color)
Declaration
public void Clear(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color |
Dispose()
Declaration
public void Dispose()
EndDraw()
Declaration
public void EndDraw()
GetCurrentRenderTarget()
Declaration
public RenderTarget GetCurrentRenderTarget()
Returns
| Type | Description |
|---|---|
| RenderTarget |
SetRenderTarget(RenderTarget)
Declaration
public void SetRenderTarget(RenderTarget target)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTarget | target |
SetShader(Shader, Shader)
Declaration
public void SetShader(Shader newShader, Shader previousShader)
Parameters
| Type | Name | Description |
|---|---|---|
| Shader | newShader | |
| Shader | previousShader |
Implements
System.IDisposable