C# Class Axiom.RenderSystems.OpenGL.GLTexture

OpenGL specialization of texture handling.
Inheritance: Axiom.Core.Texture
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Méthodes publiques

Méthode Description
GetBuffer ( int face, int mipmap ) : Axiom.Graphics.HardwarePixelBuffer
Unload ( ) : void

Deletes the texture memory.

Méthodes protégées

Méthode Description
GenerateMipMaps ( byte data, bool useSoftware, bool isCompressed, int faceNum ) : void
createInternalResources ( ) : void
dispose ( bool disposeManagedResources ) : void

Implementation of IDisposable to determine how resources are disposed of.

freeInternalResources ( ) : void
load ( ) : void

Private Methods

Méthode Description
CreateRenderTexture ( ) : void

Used to generate a texture capable of serving as a rendering target.

GLTexture ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, Axiom.RenderSystems.OpenGL.BaseGLSupport glSupport ) : System

Constructor used when creating a manual texture.

MostSignificantBitSet ( int val ) : int

Helper method for getting the next highest power of 2 value from the specified value.

Example: Input: 3 Result: 4, Input: 96 Output: 128

RescaleNPower2 ( Image src ) : byte[]
_createSurfaceList ( ) : void

Method Details

GenerateMipMaps() protected méthode

protected GenerateMipMaps ( byte data, bool useSoftware, bool isCompressed, int faceNum ) : void
data byte
useSoftware bool
isCompressed bool
faceNum int
Résultat void

GetBuffer() public méthode

public GetBuffer ( int face, int mipmap ) : Axiom.Graphics.HardwarePixelBuffer
face int
mipmap int
Résultat Axiom.Graphics.HardwarePixelBuffer

Unload() public méthode

Deletes the texture memory.
public Unload ( ) : void
Résultat void

createInternalResources() protected méthode

protected createInternalResources ( ) : void
Résultat void

dispose() protected méthode

Implementation of IDisposable to determine how resources are disposed of.
protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
Résultat void

freeInternalResources() protected méthode

protected freeInternalResources ( ) : void
Résultat void

load() protected méthode

protected load ( ) : void
Résultat void