• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

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 Source

GraphicsDevice()

Declaration
public GraphicsDevice()

Fields

| Improve this Doc View Source

PlatformType

Declaration
public const PlatformType PlatformType = PlatformType.OpenGL
Field Value
Type Description
PlatformType

Properties

| Improve this Doc View Source

RenderTarget

Declaration
public RenderTarget RenderTarget { get; set; }
Property Value
Type Description
RenderTarget
| Improve this Doc View Source

ScreenBounds

The Bounds of the Screen

Declaration
public Rectangle ScreenBounds { get; }
Property Value
Type Description
Rectangle

Methods

| Improve this Doc View Source

AttachWindow(GameWindow)

Declaration
public void AttachWindow(GameWindow window)
Parameters
Type Name Description
GameWindow window
| Improve this Doc View Source

BeginDraw()

Declaration
public void BeginDraw()
| Improve this Doc View Source

Clear(Color)

Declaration
public void Clear(Color color)
Parameters
Type Name Description
Color color
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

EndDraw()

Declaration
public void EndDraw()
| Improve this Doc View Source

GetCurrentRenderTarget()

Declaration
public RenderTarget GetCurrentRenderTarget()
Returns
Type Description
RenderTarget
| Improve this Doc View Source

SetRenderTarget(RenderTarget)

Declaration
public void SetRenderTarget(RenderTarget target)
Parameters
Type Name Description
RenderTarget target
| Improve this Doc View Source

SetShader(Shader, Shader)

Declaration
public void SetShader(Shader newShader, Shader previousShader)
Parameters
Type Name Description
Shader newShader
Shader previousShader

Implements

System.IDisposable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX