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 SourceBlitter
Property to return the blitter used to arbitrarily render a full texture.
Declaration
GorgonTextureBlitter Blitter { get; }
Property Value
Type | Description |
---|---|
GorgonTextureBlitter |
FontFactory
Property to return the factory used to create fonts.
Declaration
GorgonFontFactory FontFactory { get; }
Property Value
Type | Description |
---|---|
GorgonFontFactory |
Graphics
Property to return the graphics interface.
Declaration
GorgonGraphics Graphics { get; }
Property Value
Type | Description |
---|---|
GorgonGraphics |
Renderer2D
Property to return the 2D renderer.
Declaration
Gorgon2D Renderer2D { get; }
Property Value
Type | Description |
---|---|
Gorgon2D |
VideoAdapter
Property to return information about the video adapter selected.
Declaration
IGorgonVideoAdapterInfo VideoAdapter { get; }
Property Value
Type | Description |
---|---|
IGorgonVideoAdapterInfo |
Methods
| Edit this page View SourceLeaseSwapPresenter(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. |
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. |