C# Class ShowIt.DisplaySurface

The DisplaySurface represents a surface that can display an image. It is meant to have behavior that is similar to a Monitor on a desktop in that it has a resolution, contrast, brightness, sharpness and the like. The Display has an offscreen buffer, which matches the specified resolution. All rendering occurs in the offscreen buffer, which is then displayed when rendering occurs. This allows for various shaders to run while rendering to the offscreen buffer. This is how the contrast, brightness and the like can be implemented.
Inheritance: IHaveTexture
ファイルを表示 Open project: Wiladams/NewTOAPIA

Public Methods

Method Description
DisplaySurface ( GraphicsInterface gi, Resolution res, IHaveTexture imageSource ) : System
RefreshDisplayImage ( ) : void

This is called by whomever is managing the display surface. The effect will be to get the current texture from the image source and render it into the offscreen buffer applying any image filters that may be active.

Method Details

DisplaySurface() public method

public DisplaySurface ( GraphicsInterface gi, Resolution res, IHaveTexture imageSource ) : System
gi NewTOAPIA.GL.GraphicsInterface
res Resolution
imageSource IHaveTexture
return System

RefreshDisplayImage() public method

This is called by whomever is managing the display surface. The effect will be to get the current texture from the image source and render it into the offscreen buffer applying any image filters that may be active.
public RefreshDisplayImage ( ) : void
return void