C# 클래스 IrrlichtNETCP.Texture

상속: NativeElement
파일 보기 프로젝트 열기: Paulus/irrlichtnetcp 1 사용 예제들

공개 메소드들

메소드 설명
GetPixel ( int x, int y ) : Color

Gets the current color of the pixel.

Lock ( ) : IntPtr

Call this before any modification/read of the texture via GetPixel/SetPixel If you try to modify/acces the texture without it, it will still work but really slower Because it will lock and unlock the texture each time you access a pixel.

MakeColorKey ( VideoDriver drv ) : void
MakeColorKey ( VideoDriver drv, Color color ) : void
MakeColorKey ( VideoDriver drv, IrrlichtNETCP.Position2D colorKeyPixelPos ) : void
Modify ( ModifyPixel callback ) : void

Modifies the texture using a simple callback called on each pixel's modification.

RegenerateMipMapLevels ( ) : void
Retrieve ( ) : ].Color[

Safe and fast way to retrieve all pixels of the texture.

SafeCopyInto ( Texture tex ) : void
Save ( string name ) : void

Saves the texture to a file

SetPixel ( int x, int y, Color color ) : void

Sets the current color of a pixel

Texture ( IntPtr raw ) : System
Unlock ( ) : void

You must always call this after each lock.

보호된 메소드들

메소드 설명
ModifyA1R5G5B5 ( ModifyPixel callback ) : void
ModifyA8R8G8B8 ( ModifyPixel callback ) : void
ModifyR5G6B5 ( ModifyPixel callback ) : void
RetrieveA1R5G5B5 ( ) : ].Color[
RetrieveA8R8G8B8 ( ) : ].Color[
RetrieveR5G6B5 ( ) : ].Color[

비공개 메소드들

메소드 설명
LockResult_GetPixel ( IntPtr lockr, IntPtr texture, int x, int y, [ color ) : void
LockResult_SetPixel ( IntPtr lockr, IntPtr texture, int x, int y, int color ) : void
Texture_GetColorFormat ( IntPtr raw ) : ColorFormat
Texture_GetDriverType ( IntPtr raw ) : DriverType
Texture_GetName ( IntPtr raw ) : string
Texture_GetOriginalSize ( IntPtr raw, [ toR ) : void
Texture_GetPitch ( IntPtr raw ) : int
Texture_Lock ( IntPtr texture ) : IntPtr
Texture_RegenerateMipMapLevels ( IntPtr raw ) : void
Texture_UnLock ( IntPtr texture ) : void

메소드 상세

GetPixel() 공개 메소드

Gets the current color of the pixel.
public GetPixel ( int x, int y ) : Color
x int Width of the pixel
y int Height of the pixel
리턴 Color

Lock() 공개 메소드

Call this before any modification/read of the texture via GetPixel/SetPixel If you try to modify/acces the texture without it, it will still work but really slower Because it will lock and unlock the texture each time you access a pixel.
public Lock ( ) : IntPtr
리턴 System.IntPtr

MakeColorKey() 공개 메소드

public MakeColorKey ( VideoDriver drv ) : void
drv VideoDriver
리턴 void

MakeColorKey() 공개 메소드

public MakeColorKey ( VideoDriver drv, Color color ) : void
drv VideoDriver
color Color
리턴 void

MakeColorKey() 공개 메소드

public MakeColorKey ( VideoDriver drv, IrrlichtNETCP.Position2D colorKeyPixelPos ) : void
drv VideoDriver
colorKeyPixelPos IrrlichtNETCP.Position2D
리턴 void

Modify() 공개 메소드

Modifies the texture using a simple callback called on each pixel's modification.
public Modify ( ModifyPixel callback ) : void
callback ModifyPixel Callback called for each pixel
리턴 void

ModifyA1R5G5B5() 보호된 메소드

protected ModifyA1R5G5B5 ( ModifyPixel callback ) : void
callback ModifyPixel
리턴 void

ModifyA8R8G8B8() 보호된 메소드

protected ModifyA8R8G8B8 ( ModifyPixel callback ) : void
callback ModifyPixel
리턴 void

ModifyR5G6B5() 보호된 메소드

protected ModifyR5G6B5 ( ModifyPixel callback ) : void
callback ModifyPixel
리턴 void

RegenerateMipMapLevels() 공개 메소드

public RegenerateMipMapLevels ( ) : void
리턴 void

Retrieve() 공개 메소드

Safe and fast way to retrieve all pixels of the texture.
public Retrieve ( ) : ].Color[
리턴 ].Color[

RetrieveA1R5G5B5() 보호된 메소드

protected RetrieveA1R5G5B5 ( ) : ].Color[
리턴 ].Color[

RetrieveA8R8G8B8() 보호된 메소드

protected RetrieveA8R8G8B8 ( ) : ].Color[
리턴 ].Color[

RetrieveR5G6B5() 보호된 메소드

protected RetrieveR5G6B5 ( ) : ].Color[
리턴 ].Color[

SafeCopyInto() 공개 메소드

public SafeCopyInto ( Texture tex ) : void
tex Texture
리턴 void

Save() 공개 메소드

Saves the texture to a file
public Save ( string name ) : void
name string Path to the file in Irrlicht's working directory
리턴 void

SetPixel() 공개 메소드

Sets the current color of a pixel
public SetPixel ( int x, int y, Color color ) : void
x int Width of the pixel
y int Height of the pixel
color Color Color of the pixel
리턴 void

Texture() 공개 메소드

public Texture ( IntPtr raw ) : System
raw System.IntPtr
리턴 System

Unlock() 공개 메소드

You must always call this after each lock.
public Unlock ( ) : void
리턴 void