C# Class Axiom.RenderSystems.Xna.XnaHardwarePixelBuffer

Xna implementation of HardwarePixelBuffer
Inheritance: Axiom.Graphics.HardwarePixelBuffer
Afficher le fichier Open project: WolfgangSt/axiom Class Usage Examples

Protected Properties

Свойство Type Description
HWMipmaps bool
device Microsoft.Xna.Framework.Graphics.GraphicsDevice
doMipmapGen bool
fsaaSurface Microsoft.Xna.Framework.Graphics.RenderTarget2D
mipLevel ushort
mipTex Microsoft.Xna.Framework.Graphics.Texture
sliceTRT List
surface Microsoft.Xna.Framework.Graphics.Texture2D
tempSurface Microsoft.Xna.Framework.Graphics.Texture2D
tempVolume Microsoft.Xna.Framework.Graphics.Texture3D
volume Microsoft.Xna.Framework.Graphics.Texture3D

Méthodes publiques

Méthode Description
Bind ( Microsoft.Xna.Framework.Graphics device, Microsoft.Xna.Framework.Graphics surface, bool update ) : void
Bind ( Microsoft.Xna.Framework.Graphics device, Microsoft.Xna.Framework.Graphics surface, ushort miplevel, bool update ) : void

Call this to associate a Xna Texture2D with this pixel buffer

BlitFromMemory ( PixelBox src, BasicBox dstBox ) : void

Copies a region from normal memory to a region of this pixelbuffer. The source image can be in any pixel format supported by Axiom, and in any size.

The source and destination regions dimensions don't have to match, in which case scaling is done. This scaling is generally done using a bilinear filter in hardware, but it is faster to pass the source image in the right dimensions. Only call this function when both buffers are unlocked.

BlitToMemory ( BasicBox srcBox, PixelBox dst ) : void

Copies a region of this pixelbuffer to normal memory.

The source and destination regions don't have to match, in which case scaling is done. Only call this function when the buffer is unlocked.

GenMipmaps ( ) : void

Internal function to update mipmaps on update of level 0

GetRenderTarget ( int slice ) : RenderTexture
XnaHardwarePixelBuffer ( BufferUsage usage ) : System
XnaHardwarePixelBuffer ( int width, int height, int depth, PixelFormat format, BufferUsage usage, bool useSystemMemory, bool useShadowBuffer ) : System

Méthodes protégées

Méthode Description
CreateRenderTextures ( bool update ) : void

Create (or update) render textures for slices

DestroyRenderTextures ( ) : void

Destroy render textures for slices

LockImpl ( BasicBox lockBox, BufferLocking options ) : PixelBox

Internal implementation of HardwareBuffer.Lock.

UnlockImpl ( ) : void

Internal implementation of HardwareBuffer.Unlock.

Private Methods

Méthode Description
SetMipmapping ( bool doMipmapGen, bool MipmapsHardwareGenerated, Microsoft texture ) : void

Method Details

Bind() public méthode

public Bind ( Microsoft.Xna.Framework.Graphics device, Microsoft.Xna.Framework.Graphics surface, bool update ) : void
device Microsoft.Xna.Framework.Graphics
surface Microsoft.Xna.Framework.Graphics
update bool
Résultat void

Bind() public méthode

Call this to associate a Xna Texture2D with this pixel buffer
public Bind ( Microsoft.Xna.Framework.Graphics device, Microsoft.Xna.Framework.Graphics surface, ushort miplevel, bool update ) : void
device Microsoft.Xna.Framework.Graphics
surface Microsoft.Xna.Framework.Graphics
miplevel ushort
update bool
Résultat void

BlitFromMemory() public méthode

Copies a region from normal memory to a region of this pixelbuffer. The source image can be in any pixel format supported by Axiom, and in any size.
The source and destination regions dimensions don't have to match, in which case scaling is done. This scaling is generally done using a bilinear filter in hardware, but it is faster to pass the source image in the right dimensions. Only call this function when both buffers are unlocked.
public BlitFromMemory ( PixelBox src, BasicBox dstBox ) : void
src Axiom.Media.PixelBox PixelBox containing the source pixels and format in memory
dstBox Axiom.Media.BasicBox Image.BasicBox describing the destination region in this buffer
Résultat void

BlitToMemory() public méthode

Copies a region of this pixelbuffer to normal memory.
The source and destination regions don't have to match, in which case scaling is done. Only call this function when the buffer is unlocked.
public BlitToMemory ( BasicBox srcBox, PixelBox dst ) : void
srcBox Axiom.Media.BasicBox BasicBox describing the source region of this buffer
dst Axiom.Media.PixelBox PixelBox describing the destination pixels and format in memory
Résultat void

CreateRenderTextures() protected méthode

Create (or update) render textures for slices
protected CreateRenderTextures ( bool update ) : void
update bool are we updating an existing texture
Résultat void

DestroyRenderTextures() protected méthode

Destroy render textures for slices
protected DestroyRenderTextures ( ) : void
Résultat void

GenMipmaps() public méthode

Internal function to update mipmaps on update of level 0
public GenMipmaps ( ) : void
Résultat void

GetRenderTarget() public méthode

public GetRenderTarget ( int slice ) : RenderTexture
slice int
Résultat Axiom.Graphics.RenderTexture

LockImpl() protected méthode

Internal implementation of HardwareBuffer.Lock.
protected LockImpl ( BasicBox lockBox, BufferLocking options ) : PixelBox
lockBox Axiom.Media.BasicBox
options BufferLocking
Résultat Axiom.Media.PixelBox

UnlockImpl() protected méthode

Internal implementation of HardwareBuffer.Unlock.
protected UnlockImpl ( ) : void
Résultat void

XnaHardwarePixelBuffer() public méthode

public XnaHardwarePixelBuffer ( BufferUsage usage ) : System
usage BufferUsage
Résultat System

XnaHardwarePixelBuffer() public méthode

public XnaHardwarePixelBuffer ( int width, int height, int depth, PixelFormat format, BufferUsage usage, bool useSystemMemory, bool useShadowBuffer ) : System
width int
height int
depth int
format PixelFormat
usage BufferUsage
useSystemMemory bool
useShadowBuffer bool
Résultat System

Property Details

HWMipmaps protected_oe property

Hardware Mipmaps?
protected bool HWMipmaps
Résultat bool

device protected_oe property

Xna Device
protected GraphicsDevice,Microsoft.Xna.Framework.Graphics device
Résultat Microsoft.Xna.Framework.Graphics.GraphicsDevice

doMipmapGen protected_oe property

Doing Mipmapping?
protected bool doMipmapGen
Résultat bool

fsaaSurface protected_oe property

FSAA Surface abstracted by this buffer
protected RenderTarget2D,Microsoft.Xna.Framework.Graphics fsaaSurface
Résultat Microsoft.Xna.Framework.Graphics.RenderTarget2D

mipLevel protected_oe property

Surface abstracted by this buffer
protected ushort mipLevel
Résultat ushort

mipTex protected_oe property

The Mipmap texture?
protected Texture,Microsoft.Xna.Framework.Graphics mipTex
Résultat Microsoft.Xna.Framework.Graphics.Texture

sliceTRT protected_oe property

Render targets
protected List sliceTRT
Résultat List

surface protected_oe property

protected Texture2D,Microsoft.Xna.Framework.Graphics surface
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

tempSurface protected_oe property

Temporary surface in main memory if direct locking of mSurface is not possible
protected Texture2D,Microsoft.Xna.Framework.Graphics tempSurface
Résultat Microsoft.Xna.Framework.Graphics.Texture2D

tempVolume protected_oe property

Temporary volume in main memory if direct locking of mVolume is not possible
protected Texture3D,Microsoft.Xna.Framework.Graphics tempVolume
Résultat Microsoft.Xna.Framework.Graphics.Texture3D

volume protected_oe property

Volume abstracted by this buffer
protected Texture3D,Microsoft.Xna.Framework.Graphics volume
Résultat Microsoft.Xna.Framework.Graphics.Texture3D