C# Class Microsoft.Xna.Framework.Graphics.ESTexture2D

Inheritance: IDisposable
显示文件 Open project: Jorgemagic/MonoGame Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
DrawAtPoint ( System.Vector2 point ) : void
DrawInRect ( Rectangle rect ) : void
ESTexture2D ( Bitmap image, OpenTK.Graphics.ES11 filter ) : System
ESTexture2D ( Bitmap image, OpenTK.Graphics.ES20 filter ) : System
ESTexture2D ( CGImage cgImage, All filter ) : System
ESTexture2D ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, All filter ) : System
ESTexture2D ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, OpenTK.Graphics.ES11 filter ) : System
ESTexture2D ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, OpenTK.Graphics.ES20 filter ) : System
ESTexture2D ( UIImage uiImage, All filter ) : System
GetBits ( int width, int length, int height, BinaryReader rdr ) : byte[]
InitWithBitmapGL11 ( Bitmap imageSource, OpenTK.Graphics.ES11 filter ) : void
InitWithBitmapGL20 ( Bitmap imageSource, OpenTK.Graphics.ES20 filter ) : void
InitWithData ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, All filter ) : void
InitWithDataGL11 ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, OpenTK.Graphics.ES11 filter ) : void
InitWithDataGL20 ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, OpenTK.Graphics.ES20 filter ) : void
InitiFromDxt3File ( BinaryReader rdr, int length, int width, int height ) : ESTexture2D

Private Methods

Method Description
ColorsFromPacked ( uint colors, uint c0, uint c1, bool flag ) : void
GetBits ( uint source, int first, int length, int shift ) : byte
GetBits64 ( ulong source, int first, int length, int shift ) : byte
InitWithCGImage ( CGImage image, All filter ) : void
SetColorFromPacked ( byte data, int offset, byte alpha, uint packed ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

DrawAtPoint() public method

public DrawAtPoint ( System.Vector2 point ) : void
point System.Vector2
return void

DrawInRect() public method

public DrawInRect ( Rectangle rect ) : void
rect System.Drawing.Rectangle
return void

ESTexture2D() public method

public ESTexture2D ( Bitmap image, OpenTK.Graphics.ES11 filter ) : System
image System.Drawing.Bitmap
filter OpenTK.Graphics.ES11
return System

ESTexture2D() public method

public ESTexture2D ( Bitmap image, OpenTK.Graphics.ES20 filter ) : System
image System.Drawing.Bitmap
filter OpenTK.Graphics.ES20
return System

ESTexture2D() public method

public ESTexture2D ( CGImage cgImage, All filter ) : System
cgImage MonoMac.CoreGraphics.CGImage
filter All
return System

ESTexture2D() public method

public ESTexture2D ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, All filter ) : System
data System.IntPtr
pixelFormat SurfaceFormat
width int
height int
size System.Drawing.Size
filter All
return System

ESTexture2D() public method

public ESTexture2D ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, OpenTK.Graphics.ES11 filter ) : System
data System.IntPtr
pixelFormat SurfaceFormat
width int
height int
size System.Drawing.Size
filter OpenTK.Graphics.ES11
return System

ESTexture2D() public method

public ESTexture2D ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, OpenTK.Graphics.ES20 filter ) : System
data System.IntPtr
pixelFormat SurfaceFormat
width int
height int
size System.Drawing.Size
filter OpenTK.Graphics.ES20
return System

ESTexture2D() public method

public ESTexture2D ( UIImage uiImage, All filter ) : System
uiImage UIImage
filter All
return System

GetBits() public static method

public static GetBits ( int width, int length, int height, BinaryReader rdr ) : byte[]
width int
length int
height int
rdr System.IO.BinaryReader
return byte[]

InitWithBitmapGL11() public method

public InitWithBitmapGL11 ( Bitmap imageSource, OpenTK.Graphics.ES11 filter ) : void
imageSource System.Drawing.Bitmap
filter OpenTK.Graphics.ES11
return void

InitWithBitmapGL20() public method

public InitWithBitmapGL20 ( Bitmap imageSource, OpenTK.Graphics.ES20 filter ) : void
imageSource System.Drawing.Bitmap
filter OpenTK.Graphics.ES20
return void

InitWithData() public method

public InitWithData ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, All filter ) : void
data System.IntPtr
pixelFormat SurfaceFormat
width int
height int
size System.Drawing.Size
filter All
return void

InitWithDataGL11() public method

public InitWithDataGL11 ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, OpenTK.Graphics.ES11 filter ) : void
data System.IntPtr
pixelFormat SurfaceFormat
width int
height int
size System.Drawing.Size
filter OpenTK.Graphics.ES11
return void

InitWithDataGL20() public method

public InitWithDataGL20 ( IntPtr data, SurfaceFormat pixelFormat, int width, int height, Size size, OpenTK.Graphics.ES20 filter ) : void
data System.IntPtr
pixelFormat SurfaceFormat
width int
height int
size System.Drawing.Size
filter OpenTK.Graphics.ES20
return void

InitiFromDxt3File() public static method

public static InitiFromDxt3File ( BinaryReader rdr, int length, int width, int height ) : ESTexture2D
rdr System.IO.BinaryReader
length int
width int
height int
return ESTexture2D