C# 클래스 Axiom.RenderSystems.Xna.XnaHardwarePixelBuffer

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

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
SetMipmapping ( bool doMipmapGen, bool MipmapsHardwareGenerated, Microsoft texture ) : void

메소드 상세

Bind() 공개 메소드

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

Bind() 공개 메소드

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
리턴 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

CreateRenderTextures() 보호된 메소드

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

DestroyRenderTextures() 보호된 메소드

Destroy render textures for slices
protected DestroyRenderTextures ( ) : void
리턴 void

GenMipmaps() 공개 메소드

Internal function to update mipmaps on update of level 0
public GenMipmaps ( ) : void
리턴 void

GetRenderTarget() 공개 메소드

public GetRenderTarget ( int slice ) : RenderTexture
slice int
리턴 Axiom.Graphics.RenderTexture

LockImpl() 보호된 메소드

Internal implementation of HardwareBuffer.Lock.
protected LockImpl ( BasicBox lockBox, BufferLocking options ) : PixelBox
lockBox Axiom.Media.BasicBox
options BufferLocking
리턴 Axiom.Media.PixelBox

UnlockImpl() 보호된 메소드

Internal implementation of HardwareBuffer.Unlock.
protected UnlockImpl ( ) : void
리턴 void

XnaHardwarePixelBuffer() 공개 메소드

public XnaHardwarePixelBuffer ( BufferUsage usage ) : System
usage BufferUsage
리턴 System

XnaHardwarePixelBuffer() 공개 메소드

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

프로퍼티 상세

HWMipmaps 보호되어 있는 프로퍼티

Hardware Mipmaps?
protected bool HWMipmaps
리턴 bool

device 보호되어 있는 프로퍼티

Xna Device
protected GraphicsDevice,Microsoft.Xna.Framework.Graphics device
리턴 Microsoft.Xna.Framework.Graphics.GraphicsDevice

doMipmapGen 보호되어 있는 프로퍼티

Doing Mipmapping?
protected bool doMipmapGen
리턴 bool

fsaaSurface 보호되어 있는 프로퍼티

FSAA Surface abstracted by this buffer
protected RenderTarget2D,Microsoft.Xna.Framework.Graphics fsaaSurface
리턴 Microsoft.Xna.Framework.Graphics.RenderTarget2D

mipLevel 보호되어 있는 프로퍼티

Surface abstracted by this buffer
protected ushort mipLevel
리턴 ushort

mipTex 보호되어 있는 프로퍼티

The Mipmap texture?
protected Texture,Microsoft.Xna.Framework.Graphics mipTex
리턴 Microsoft.Xna.Framework.Graphics.Texture

sliceTRT 보호되어 있는 프로퍼티

Render targets
protected List sliceTRT
리턴 List

surface 보호되어 있는 프로퍼티

protected Texture2D,Microsoft.Xna.Framework.Graphics surface
리턴 Microsoft.Xna.Framework.Graphics.Texture2D

tempSurface 보호되어 있는 프로퍼티

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

tempVolume 보호되어 있는 프로퍼티

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

volume 보호되어 있는 프로퍼티

Volume abstracted by this buffer
protected Texture3D,Microsoft.Xna.Framework.Graphics volume
리턴 Microsoft.Xna.Framework.Graphics.Texture3D