C# 클래스 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.
상속: Axiom.Core.Texture
파일 보기 프로젝트 열기: WolfgangSt/axiom

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
createInternalResources ( ) : void
dispose ( bool disposeManagedResources ) : void

Implementation of IDisposable to determine how resources are disposed of.

freeInternalResources ( ) : void
load ( ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

CopyToTexture() 공개 메소드

public CopyToTexture ( Axiom target ) : void
target Axiom
리턴 void

GetBuffer() 공개 메소드

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. ///
리턴 Axiom.Graphics.HardwarePixelBuffer

Unload() 공개 메소드

public Unload ( ) : void
리턴 void

XnaTexture() 공개 메소드

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
리턴 System

createInternalResources() 보호된 메소드

protected createInternalResources ( ) : void
리턴 void

dispose() 보호된 메소드

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

freeInternalResources() 보호된 메소드

protected freeInternalResources ( ) : void
리턴 void

load() 보호된 메소드

protected load ( ) : void
리턴 void