C# Class Axiom.RenderSystems.OpenGL.GLTexture

OpenGL specialization of texture handling.
Inheritance: Axiom.Core.Texture
Show file Open project: WolfgangSt/axiom Class Usage Examples

Public Methods

Method Description
GetBuffer ( int face, int mipmap ) : Axiom.Graphics.HardwarePixelBuffer
Unload ( ) : void

Deletes the texture memory.

Protected Methods

Method 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

Method 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 method

protected GenerateMipMaps ( byte data, bool useSoftware, bool isCompressed, int faceNum ) : void
data byte
useSoftware bool
isCompressed bool
faceNum int
return void

GetBuffer() public method

public GetBuffer ( int face, int mipmap ) : Axiom.Graphics.HardwarePixelBuffer
face int
mipmap int
return Axiom.Graphics.HardwarePixelBuffer

Unload() public method

Deletes the texture memory.
public Unload ( ) : void
return void

createInternalResources() protected method

protected createInternalResources ( ) : void
return void

dispose() protected method

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

freeInternalResources() protected method

protected freeInternalResources ( ) : void
return void

load() protected method

protected load ( ) : void
return void