Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SharpKmyGfx.Framebuffer Class Reference
Inheritance diagram for SharpKmyGfx.Framebuffer:

Public Member Functions

 Framebuffer (IntPtr obj)
 
void Dispose ()
 
Texture getTexture (int index)
 
void readPixelsRGBAU8 (int target, int x, int y, int w, int h, UInt32[] buffer)
 
void readPixelsRGBAF32 (int target, int x, int y, int w, int h, float[] buffer)
 
void readPixelsDepthF32 (int x, int y, int w, int h, float[] buffer)
 
void readPixelsRU16 (int target, int x, int y, int w, int h, UInt16[] buffer)
 

Static Public Member Functions

static Framebuffer getTemporaryFramebuffer (TEXTUREFFORMAT colorFmt, TEXTUREFFORMAT depthFmt, int width, int height)
 
static void releaseTemporaryFramebuffer (Framebuffer fb)
 

Public Attributes

IntPtr mobj = IntPtr.Zero
 

Constructor & Destructor Documentation

◆ Framebuffer()

SharpKmyGfx.Framebuffer.Framebuffer ( IntPtr  obj)

Member Function Documentation

◆ Dispose()

void SharpKmyGfx.Framebuffer.Dispose ( )

◆ getTemporaryFramebuffer()

static Framebuffer SharpKmyGfx.Framebuffer.getTemporaryFramebuffer ( TEXTUREFFORMAT  colorFmt,
TEXTUREFFORMAT  depthFmt,
int  width,
int  height 
)
static

◆ getTexture()

Texture SharpKmyGfx.Framebuffer.getTexture ( int  index)

◆ readPixelsDepthF32()

void SharpKmyGfx.Framebuffer.readPixelsDepthF32 ( int  x,
int  y,
int  w,
int  h,
float[]  buffer 
)

◆ readPixelsRGBAF32()

void SharpKmyGfx.Framebuffer.readPixelsRGBAF32 ( int  target,
int  x,
int  y,
int  w,
int  h,
float[]  buffer 
)

◆ readPixelsRGBAU8()

void SharpKmyGfx.Framebuffer.readPixelsRGBAU8 ( int  target,
int  x,
int  y,
int  w,
int  h,
UInt32[]  buffer 
)

◆ readPixelsRU16()

void SharpKmyGfx.Framebuffer.readPixelsRU16 ( int  target,
int  x,
int  y,
int  w,
int  h,
UInt16[]  buffer 
)

◆ releaseTemporaryFramebuffer()

static void SharpKmyGfx.Framebuffer.releaseTemporaryFramebuffer ( Framebuffer  fb)
static

Member Data Documentation

◆ mobj

IntPtr SharpKmyGfx.Framebuffer.mobj = IntPtr.Zero