Свойство | Тип | Описание | |
---|---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 |
|
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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 | |
Результат | 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 | |
Результат | void |
public BlitFromMemory ( |
||
src | PixelBox containing the source pixels and format in memory | |
dstBox | Image.BasicBox describing the destination region in this buffer | |
Результат | void |
public BlitToMemory ( |
||
srcBox | BasicBox describing the source region of this buffer | |
dst | PixelBox describing the destination pixels and format in memory | |
Результат | void |
protected CreateRenderTextures ( bool update ) : void | ||
update | bool | are we updating an existing texture |
Результат | void |
public GetRenderTarget ( int slice ) : |
||
slice | int | |
Результат |
protected LockImpl ( |
||
lockBox | ||
options | BufferLocking | |
Результат |
public XnaHardwarePixelBuffer ( BufferUsage usage ) : System | ||
usage | BufferUsage | |
Результат | 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 | |
Результат | System |
protected GraphicsDevice,Microsoft.Xna.Framework.Graphics device | ||
Результат | Microsoft.Xna.Framework.Graphics.GraphicsDevice |
protected RenderTarget2D,Microsoft.Xna.Framework.Graphics fsaaSurface | ||
Результат |
protected Texture,Microsoft.Xna.Framework.Graphics mipTex | ||
Результат |
protected Texture2D,Microsoft.Xna.Framework.Graphics surface | ||
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
protected Texture2D,Microsoft.Xna.Framework.Graphics tempSurface | ||
Результат | Microsoft.Xna.Framework.Graphics.Texture2D |
protected Texture3D,Microsoft.Xna.Framework.Graphics tempVolume | ||
Результат | Microsoft.Xna.Framework.Graphics.Texture3D |