C# Класс Axiom.RenderSystems.DirectX9.D3DHardwarePixelBuffer

DirectX implementation of HardwarePixelBuffer
Наследование: Axiom.Graphics.HardwarePixelBuffer
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
HWMipmaps bool
device SlimDX.Direct3D9.Device
doMipmapGen bool
fsaaSurface SlimDX.Direct3D9.Surface
mipTex SlimDX.Direct3D9.BaseTexture
sliceTRT List
surface SlimDX.Direct3D9.Surface
tempSurface SlimDX.Direct3D9.Surface
tempVolume SlimDX.Direct3D9.Volume
volume SlimDX.Direct3D9.Volume

Открытые методы

Метод Описание
Bind ( SlimDX.Direct3D9 device, SlimDX.Direct3D9 surface, bool update ) : void

Call this to associate a D3D surface with this pixel buffer

Blit ( Axiom.Graphics.HardwarePixelBuffer src, BasicBox srcBox, BasicBox dstBox ) : void

Copies a box from another PixelBuffer to a region of the this PixelBuffer.

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.

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.

ClearSliceRTT ( int zoffset ) : void

Notify TextureBuffer of destruction of render target

D3DHardwarePixelBuffer ( BufferUsage usage ) : System
GenMipmaps ( ) : void

Internal function to update mipmaps on update of level 0

GetRenderTarget ( int zoffset ) : RenderTexture

Get rendertarget for z slice

GetSurface ( Device d3D9Device ) : Surface
LockDeviceAccess ( ) : void
SetMipmapping ( bool doMipmapGen, bool HWMipmaps, SlimDX.Direct3D9 mipTex ) : void

Function to set mipmap generation

UnlockDeviceAccess ( ) : void

Защищенные методы

Метод Описание
CreateRenderTextures ( bool update ) : void

Create (or update) render textures for slices

DestroyRenderTextures ( ) : void

Destroy render textures for slices

FromD3DLock ( PixelBox rval, SlimDX rectangle ) : void

Util functions to convert a D3D locked rectangle to a pixel box

LockImpl ( BasicBox lockBox, BufferLocking options ) : PixelBox

Lock a box

ToD3DBox ( BasicBox lockBox ) : SlimDX.Direct3D9.Box

Convert Axiom Box to D3D box

ToD3DBoxExtent ( PixelBox lockBox ) : SlimDX.Direct3D9.Box

Convert Axiom PixelBox extent to D3D box

ToD3DRectangle ( BasicBox lockBox ) : Rectangle

Convert Axiom integer Box to D3D rectangle

ToD3DRectangleExtent ( PixelBox lockBox ) : Rectangle

Convert Axiom PixelBox extent to D3D rectangle

UnlockImpl ( ) : void

Unlock a box

dispose ( bool disposeManagedResources ) : void

Описание методов

Bind() публичный Метод

Call this to associate a D3D surface with this pixel buffer
public Bind ( SlimDX.Direct3D9 device, SlimDX.Direct3D9 surface, bool update ) : void
device SlimDX.Direct3D9
surface SlimDX.Direct3D9
update bool
Результат void

Blit() публичный Метод

Copies a box from another PixelBuffer to a region of the this PixelBuffer.
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 Blit ( Axiom.Graphics.HardwarePixelBuffer src, BasicBox srcBox, BasicBox dstBox ) : void
src Axiom.Graphics.HardwarePixelBuffer Source/dest pixel buffer
srcBox Axiom.Media.BasicBox Image.BasicBox describing the source region in this buffer
dstBox Axiom.Media.BasicBox Image.BasicBox describing the destination region in this buffer
Результат void

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.
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
Результат void

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.
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
Результат void

ClearSliceRTT() публичный Метод

Notify TextureBuffer of destruction of render target
public ClearSliceRTT ( int zoffset ) : void
zoffset int
Результат void

CreateRenderTextures() защищенный Метод

Create (or update) render textures for slices
protected CreateRenderTextures ( bool update ) : void
update bool are we updating an existing texture
Результат void

D3DHardwarePixelBuffer() публичный Метод

public D3DHardwarePixelBuffer ( BufferUsage usage ) : System
usage BufferUsage
Результат System

DestroyRenderTextures() защищенный Метод

Destroy render textures for slices
protected DestroyRenderTextures ( ) : void
Результат void

FromD3DLock() защищенный статический Метод

Util functions to convert a D3D locked rectangle to a pixel box
protected static FromD3DLock ( PixelBox rval, SlimDX rectangle ) : void
rval Axiom.Media.PixelBox
rectangle SlimDX
Результат void

GenMipmaps() публичный Метод

Internal function to update mipmaps on update of level 0
public GenMipmaps ( ) : void
Результат void

GetRenderTarget() публичный Метод

Get rendertarget for z slice
public GetRenderTarget ( int zoffset ) : RenderTexture
zoffset int
Результат Axiom.Graphics.RenderTexture

GetSurface() публичный Метод

public GetSurface ( Device d3D9Device ) : Surface
d3D9Device Device
Результат Surface

LockDeviceAccess() публичный статический Метод

public static LockDeviceAccess ( ) : void
Результат void

LockImpl() защищенный Метод

Lock a box
protected LockImpl ( BasicBox lockBox, BufferLocking options ) : PixelBox
lockBox Axiom.Media.BasicBox
options BufferLocking
Результат Axiom.Media.PixelBox

SetMipmapping() публичный Метод

Function to set mipmap generation
public SetMipmapping ( bool doMipmapGen, bool HWMipmaps, SlimDX.Direct3D9 mipTex ) : void
doMipmapGen bool
HWMipmaps bool
mipTex SlimDX.Direct3D9
Результат void

ToD3DBox() защищенный статический Метод

Convert Axiom Box to D3D box
protected static ToD3DBox ( BasicBox lockBox ) : SlimDX.Direct3D9.Box
lockBox Axiom.Media.BasicBox
Результат SlimDX.Direct3D9.Box

ToD3DBoxExtent() защищенный статический Метод

Convert Axiom PixelBox extent to D3D box
protected static ToD3DBoxExtent ( PixelBox lockBox ) : SlimDX.Direct3D9.Box
lockBox Axiom.Media.PixelBox
Результат SlimDX.Direct3D9.Box

ToD3DRectangle() защищенный статический Метод

Convert Axiom integer Box to D3D rectangle
protected static ToD3DRectangle ( BasicBox lockBox ) : Rectangle
lockBox Axiom.Media.BasicBox
Результат System.Drawing.Rectangle

ToD3DRectangleExtent() защищенный статический Метод

Convert Axiom PixelBox extent to D3D rectangle
protected static ToD3DRectangleExtent ( PixelBox lockBox ) : Rectangle
lockBox Axiom.Media.PixelBox
Результат System.Drawing.Rectangle

UnlockDeviceAccess() публичный статический Метод

public static UnlockDeviceAccess ( ) : void
Результат void

UnlockImpl() защищенный Метод

Unlock a box
protected UnlockImpl ( ) : void
Результат void

dispose() защищенный Метод

protected dispose ( bool disposeManagedResources ) : void
disposeManagedResources bool
Результат void

Описание свойств

HWMipmaps защищенное свойство

Hardware Mipmaps?
protected bool HWMipmaps
Результат bool

device защищенное свойство

D3DDevice pointer
protected Device,SlimDX.Direct3D9 device
Результат SlimDX.Direct3D9.Device

doMipmapGen защищенное свойство

Doing Mipmapping?
protected bool doMipmapGen
Результат bool

fsaaSurface защищенное свойство

FSAA Surface abstracted by this buffer
protected Surface,SlimDX.Direct3D9 fsaaSurface
Результат SlimDX.Direct3D9.Surface

mipTex защищенное свойство

The Mipmap texture?
protected BaseTexture,SlimDX.Direct3D9 mipTex
Результат SlimDX.Direct3D9.BaseTexture

sliceTRT защищенное свойство

Render targets
protected List sliceTRT
Результат List

surface защищенное свойство

Surface abstracted by this buffer
protected Surface,SlimDX.Direct3D9 surface
Результат SlimDX.Direct3D9.Surface

tempSurface защищенное свойство

Temporary surface in main memory if direct locking of mSurface is not possible
protected Surface,SlimDX.Direct3D9 tempSurface
Результат SlimDX.Direct3D9.Surface

tempVolume защищенное свойство

Temporary volume in main memory if direct locking of mVolume is not possible
protected Volume,SlimDX.Direct3D9 tempVolume
Результат SlimDX.Direct3D9.Volume

volume защищенное свойство

Volume abstracted by this buffer
protected Volume,SlimDX.Direct3D9 volume
Результат SlimDX.Direct3D9.Volume