Property | Type | Description | |
---|---|---|---|
HWMipmaps | bool | ||
device | Microsoft.Xna.Framework.Graphics.GraphicsDevice | ||
doMipmapGen | bool | ||
fsaaSurface | |||
mipLevel | ushort | ||
mipTex | |||
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 |
Method | 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 ( |
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 ( |
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 ) : |
||
XnaHardwarePixelBuffer ( BufferUsage usage ) : System | ||
XnaHardwarePixelBuffer ( int width, int height, int depth, PixelFormat format, BufferUsage usage, bool useSystemMemory, bool useShadowBuffer ) : System |
|
Method | Description | |
---|---|---|
CreateRenderTextures ( bool update ) : void |
Create (or update) render textures for slices
|
|
DestroyRenderTextures ( ) : void |
Destroy render textures for slices
|
|
LockImpl ( |
Internal implementation of HardwareBuffer.Lock.
|
|
UnlockImpl ( ) : void |
Internal implementation of HardwareBuffer.Unlock.
|
Method | Description | |
---|---|---|
SetMipmapping ( bool doMipmapGen, bool MipmapsHardwareGenerated, Microsoft texture ) : void |
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 | |
return | void |
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 | |
return | void |
public BlitFromMemory ( |
||
src | PixelBox containing the source pixels and format in memory | |
dstBox | Image.BasicBox describing the destination region in this buffer | |
return | void |
public BlitToMemory ( |
||
srcBox | BasicBox describing the source region of this buffer | |
dst | PixelBox describing the destination pixels and format in memory | |
return | void |
protected CreateRenderTextures ( bool update ) : void | ||
update | bool | are we updating an existing texture |
return | void |
public GetRenderTarget ( int slice ) : |
||
slice | int | |
return |
protected LockImpl ( |
||
lockBox | ||
options | BufferLocking | |
return |
public XnaHardwarePixelBuffer ( BufferUsage usage ) : System | ||
usage | BufferUsage | |
return | System |
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 | |
return | System |
protected GraphicsDevice,Microsoft.Xna.Framework.Graphics device | ||
return | Microsoft.Xna.Framework.Graphics.GraphicsDevice |
protected RenderTarget2D,Microsoft.Xna.Framework.Graphics fsaaSurface | ||
return |
protected Texture,Microsoft.Xna.Framework.Graphics mipTex | ||
return |
protected Texture2D,Microsoft.Xna.Framework.Graphics surface | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |
protected Texture2D,Microsoft.Xna.Framework.Graphics tempSurface | ||
return | Microsoft.Xna.Framework.Graphics.Texture2D |
protected Texture3D,Microsoft.Xna.Framework.Graphics tempVolume | ||
return | Microsoft.Xna.Framework.Graphics.Texture3D |