C# Class Sharpex2D.Rendering.OpenGL.OpenGLTexture

Inheritance: ITexture
显示文件 Open project: ThuCommix/Sharpex2D Class Usage Examples

Private Properties

Property Type Description
Bind void
OpenGLTexture System.Collections.Generic
Unbind void

Public Methods

Method Description
Lock ( ) : void

Locks the texture.

Unlock ( ) : void

Unlocks the data.

this ( int x, int y ) : Color

Gets or sets the color of the specified texel.

Private Methods

Method Description
Bind ( ) : void

Binds the current texture.

OpenGLTexture ( Bitmap bitmap ) : System.Collections.Generic

Initializes a new OpenGLTexture class.

Unbind ( ) : void

Unbinds the texture.

Method Details

Lock() public method

Locks the texture.
public Lock ( ) : void
return void

Unlock() public method

Unlocks the data.
public Unlock ( ) : void
return void

this() public method

Gets or sets the color of the specified texel.
public this ( int x, int y ) : Color
x int The x offset.
y int The y offset.
return System.Drawing.Color