C# Класс Clandestine.Texture

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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