C# Класс Axiom.RenderSystems.Xna.XnaHardwarePixelBuffer

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

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

Свойство Тип Описание
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