Gorgon
Show / Hide Table of Contents

Interface IGraphicsContext

A graphics context for passing the graphics interfaces to various views.

Namespace: Gorgon.Editor.Rendering
Assembly: Gorgon.Editor.API.dll
Syntax
public interface IGraphicsContext

Properties

| Edit this page View Source

Blitter

Property to return the blitter used to arbitrarily render a full texture.

Declaration
GorgonTextureBlitter Blitter { get; }
Property Value
Type Description
GorgonTextureBlitter
| Edit this page View Source

FontFactory

Property to return the factory used to create fonts.

Declaration
GorgonFontFactory FontFactory { get; }
Property Value
Type Description
GorgonFontFactory
| Edit this page View Source

Graphics

Property to return the graphics interface.

Declaration
GorgonGraphics Graphics { get; }
Property Value
Type Description
GorgonGraphics
| Edit this page View Source

Renderer2D

Property to return the 2D renderer.

Declaration
Gorgon2D Renderer2D { get; }
Property Value
Type Description
Gorgon2D
| Edit this page View Source

VideoAdapter

Property to return information about the video adapter selected.

Declaration
IGorgonVideoAdapterInfo VideoAdapter { get; }
Property Value
Type Description
IGorgonVideoAdapterInfo

Methods

| Edit this page View Source

LeaseSwapPresenter(Control)

Function to retrieve the swap chain for a specific control.

Declaration
GorgonSwapChain LeaseSwapPresenter(Control control)
Parameters
Type Name Description
Control control

The control that will be bound to the swap chain.

Returns
Type Description
GorgonSwapChain

A new swap chain bound to the control.

| Edit this page View Source

ReturnSwapPresenter(ref GorgonSwapChain)

Function to return a leased out swap chain.

Declaration
void ReturnSwapPresenter(ref GorgonSwapChain swapChain)
Parameters
Type Name Description
GorgonSwapChain swapChain

The swap chain to return.

Extension Methods

GorgonDebugExtensions.ValidateObject<T>(T, string)
GorgonNullExtensions.AsNullable<T>(object)
GorgonNullExtensions.IfNull<T>(object, T)
GorgonNullExtensions.IsNull(object)
  • Edit this page
  • View Source
In this article
Back to top Copyright 2023 - Licensed under the MIT license by Michael Winsor (Tape_Worm).
Send comments on this topic to the author