C# Class NewTOAPIA.GL.Imaging.BinaryTextureProcessor

This class serves as a base class for all image processors that follow a particular pattern. That pattern is there is a single fragment shader that is executed across the entirety of the image. Grayscale conversion would be one example. I takes care of drawing into a Quad to ensure each texel of the source image is operated on. A subclasser need only supply the fragment shader string. This class will allocate a texture object based on the width and height specified and return that texture object to the caller during the ProcessImage() call.
Inheritance: GIObject, IBinaryTextureProcessor
Afficher le fichier Open project: Wiladams/NewTOAPIA

Méthodes publiques

Свойство Type Description
FixedFrag string
FixedVert string

Méthodes publiques

Méthode Description
BinaryTextureProcessor ( GraphicsInterface gi, int width, int height ) : System
BinaryTextureProcessor ( GraphicsInterface gi, int width, int height, string fragmentString ) : System
CreateRenderTarget ( ) : GLRenderTarget
ProcessTwoTextures ( GLTexture2D baseTexture, GLTexture2D blendTexture ) : GLTexture2D

Peform conversion to grayscale

Méthodes protégées

Méthode Description
BindRenderTarget ( ) : void
BindShaderProgram ( ) : void
BindTexture ( GLTextureUnit aUnit, GLTexture aTexture ) : void
BindTextures ( ) : void
CreateOutputTexture ( int width, int height ) : GLTexture2D
RenderGeometry ( ) : void
SetUniformVariables ( ) : void
UnbindRenderTarget ( ) : void
UnbindShaderProgram ( ) : void
UnbindTextures ( ) : void

Method Details

BinaryTextureProcessor() public méthode

public BinaryTextureProcessor ( GraphicsInterface gi, int width, int height ) : System
gi GraphicsInterface
width int
height int
Résultat System

BinaryTextureProcessor() public méthode

public BinaryTextureProcessor ( GraphicsInterface gi, int width, int height, string fragmentString ) : System
gi GraphicsInterface
width int
height int
fragmentString string
Résultat System

BindRenderTarget() protected méthode

protected BindRenderTarget ( ) : void
Résultat void

BindShaderProgram() protected méthode

protected BindShaderProgram ( ) : void
Résultat void

BindTexture() protected méthode

protected BindTexture ( GLTextureUnit aUnit, GLTexture aTexture ) : void
aUnit GLTextureUnit
aTexture GLTexture
Résultat void

BindTextures() protected méthode

protected BindTextures ( ) : void
Résultat void

CreateOutputTexture() protected méthode

protected CreateOutputTexture ( int width, int height ) : GLTexture2D
width int
height int
Résultat GLTexture2D

CreateRenderTarget() public méthode

public CreateRenderTarget ( ) : GLRenderTarget
Résultat GLRenderTarget

ProcessTwoTextures() public méthode

Peform conversion to grayscale
public ProcessTwoTextures ( GLTexture2D baseTexture, GLTexture2D blendTexture ) : GLTexture2D
baseTexture GLTexture2D
blendTexture GLTexture2D
Résultat GLTexture2D

RenderGeometry() protected méthode

protected RenderGeometry ( ) : void
Résultat void

SetUniformVariables() protected méthode

protected SetUniformVariables ( ) : void
Résultat void

UnbindRenderTarget() protected méthode

protected UnbindRenderTarget ( ) : void
Résultat void

UnbindShaderProgram() protected méthode

protected UnbindShaderProgram ( ) : void
Résultat void

UnbindTextures() protected méthode

protected UnbindTextures ( ) : void
Résultat void

Property Details

FixedFrag public_oe static_oe property

This string represents a fragment shader that is a pass-through when you have a texture object.
public static string FixedFrag
Résultat string

FixedVert public_oe static_oe property

public static string FixedVert
Résultat string