C# Class Axiom.RenderSystems.Xna.XnaTexture

Summary description for XnaTexture.
When loading a cubic texture, the image with the texture base name plus the "_rt", "_lf", "_up", "_dn", "_fr", "_bk" suffixes will automaticaly be loaded to construct it.
Inheritance: Axiom.Core.Texture
Mostra file Open project: WolfgangSt/axiom

Public Methods

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

Return hardware pixel buffer for a surface. This buffer can then be used to copy data from and to a particular level of the texture.

The buffer is invalidated when the resource is unloaded or destroyed. Do not use it after the lifetime of the containing texture.

Unload ( ) : void
XnaTexture ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, Microsoft.Xna.Framework.Graphics device ) : System

Protected Methods

Method Description
createInternalResources ( ) : void
dispose ( bool disposeManagedResources ) : void

Implementation of IDisposable to determine how resources are disposed of.

freeInternalResources ( ) : void
load ( ) : void

Private Methods

Method Description
ChooseXnaFormat ( ) : Microsoft.Xna.Framework.Graphics.SurfaceFormat
ClearSurfaceList ( ) : void
ConstructCubeFaceNames ( string name ) : void
CreateCubeTexture ( ) : void

CreateDepthStencil ( ) : void

Depth Stencil buffers are actually created whenever a RenderTarget is created. This method is used as a layover from xna 3.1

CreateNormalTexture ( ) : void
CreateSurfaceList ( ) : void
GetSurfaceAtLevel ( int face, int mip ) : XnaHardwarePixelBuffer
InitDevice ( ) : void
LoadCubeTexture ( ) : void

LoadNormalTexture ( ) : void
LoadVolumeTexture ( ) : void

SetFinalAttributes ( int width, int height, int depth, PixelFormat format ) : void

SetSrcAttributes ( int width, int height, int depth, PixelFormat format ) : void

Method Details

CopyToTexture() public method

public CopyToTexture ( Axiom target ) : void
target Axiom
return void

GetBuffer() public method

Return hardware pixel buffer for a surface. This buffer can then be used to copy data from and to a particular level of the texture.
The buffer is invalidated when the resource is unloaded or destroyed. Do not use it after the lifetime of the containing texture.
public GetBuffer ( int face, int mipmap ) : Axiom.Graphics.HardwarePixelBuffer
face int /// Face number, in case of a cubemap texture. Must be 0 /// for other types of textures. /// For cubemaps, this is one of /// +X (0), -X (1), +Y (2), -Y (3), +Z (4), -Z (5) ///
mipmap int /// Mipmap level. This goes from 0 for the first, largest /// mipmap level to getNumMipmaps()-1 for the smallest. ///
return Axiom.Graphics.HardwarePixelBuffer

Unload() public method

public Unload ( ) : void
return void

XnaTexture() public method

public XnaTexture ( ResourceManager parent, string name, System.UInt64 handle, string group, bool isManual, IManualResourceLoader loader, Microsoft.Xna.Framework.Graphics device ) : System
parent ResourceManager
name string
handle System.UInt64
group string
isManual bool
loader IManualResourceLoader
device Microsoft.Xna.Framework.Graphics
return System

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