C# 클래스 Clandestine.Texture

파일 보기 프로젝트 열기: mrmikey/nes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Filename string
TexPointer int
bitmap System.Drawing.Bitmap

공개 메소드들

메소드 설명
Destroy ( ) : void
DoDeferredTextureOperations ( ) : void
ForceDestroyAllTextures ( ) : void
GetTexture ( string name ) : Texture
SetTexture ( string name, Texture texture, bool makeCopy ) : void

Either changes the name of an existing texture (and it's entry in the global texture array), or creates a new texture sharing the data of the existing one but with a different name. (Bitmap object and GL graphics memory is shared.) This call is NOT necessary in ordinary usage! EVERY Texture gets put in the global texture array once created, even if the name assigned is just a Guid.

ALL Textures already exist in the global texture array! This call is NOT necessary in ordinary Texture usage! Textures created using the new Texture(Bitmap) constructor have a GUID assigned.

Texture ( Bitmap bitmap ) : System
Texture ( Bitmap bitmap, bool treatAsIndexed ) : System
Texture ( string bitmapFilename ) : System
Texture ( string identifier, Bitmap bitmap ) : System
Texture ( string identifier, Bitmap bitmap, bool treatAsIndexed ) : System
TextureExists ( string name ) : bool
createNewGlTexture ( ) : void

비공개 메소드들

메소드 설명
ChromaKey32bppBitmap ( Bitmap bmp, Color chroma ) : void
ChromaKeyIfNecessary ( Bitmap bmp, bool treatAsIndexed ) : Bitmap
ConvertTo32bppBitmap ( Bitmap bmp ) : Bitmap
Texture ( ) : System
doDeferredOperations ( ) : void
doDestroy ( ) : void
resizeIfNecessary ( Bitmap bmpOriginal ) : Bitmap

메소드 상세

Destroy() 공개 메소드

public Destroy ( ) : void
리턴 void

DoDeferredTextureOperations() 공개 정적인 메소드

public static DoDeferredTextureOperations ( ) : void
리턴 void

ForceDestroyAllTextures() 공개 정적인 메소드

public static ForceDestroyAllTextures ( ) : void
리턴 void

GetTexture() 공개 정적인 메소드

public static GetTexture ( string name ) : Texture
name string
리턴 Texture

SetTexture() 공개 정적인 메소드

Either changes the name of an existing texture (and it's entry in the global texture array), or creates a new texture sharing the data of the existing one but with a different name. (Bitmap object and GL graphics memory is shared.) This call is NOT necessary in ordinary usage! EVERY Texture gets put in the global texture array once created, even if the name assigned is just a Guid.
ALL Textures already exist in the global texture array! This call is NOT necessary in ordinary Texture usage! Textures created using the new Texture(Bitmap) constructor have a GUID assigned.
public static SetTexture ( string name, Texture texture, bool makeCopy ) : void
name string
texture Texture
makeCopy bool
리턴 void

Texture() 공개 메소드

public Texture ( Bitmap bitmap ) : System
bitmap System.Drawing.Bitmap
리턴 System

Texture() 공개 메소드

public Texture ( Bitmap bitmap, bool treatAsIndexed ) : System
bitmap System.Drawing.Bitmap
treatAsIndexed bool
리턴 System

Texture() 공개 메소드

public Texture ( string bitmapFilename ) : System
bitmapFilename string
리턴 System

Texture() 공개 메소드

public Texture ( string identifier, Bitmap bitmap ) : System
identifier string
bitmap System.Drawing.Bitmap
리턴 System

Texture() 공개 메소드

public Texture ( string identifier, Bitmap bitmap, bool treatAsIndexed ) : System
identifier string
bitmap System.Drawing.Bitmap
treatAsIndexed bool
리턴 System

TextureExists() 공개 정적인 메소드

public static TextureExists ( string name ) : bool
name string
리턴 bool

createNewGlTexture() 공개 메소드

public createNewGlTexture ( ) : void
리턴 void

프로퍼티 상세

Filename 공개적으로 프로퍼티

public string Filename
리턴 string

TexPointer 공개적으로 프로퍼티

public int TexPointer
리턴 int

bitmap 공개적으로 프로퍼티

public Bitmap,System.Drawing bitmap
리턴 System.Drawing.Bitmap