C# 클래스 Axiom.RenderSystems.DirectX9.D3DHardwarePixelBuffer

DirectX implementation of HardwarePixelBuffer
상속: Axiom.Graphics.HardwarePixelBuffer
파일 보기 프로젝트 열기: WolfgangSt/axiom 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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