beastapi/beastframebuffer.h File Reference
The Beast framebuffer functions.
|
ILBStatus | ILBDestroyFramebuffer (ILBFramebufferHandle fb) |
|
ILBStatus | ILBGetChannelCount (ILBFramebufferHandle fb, int32 *channels) |
|
ILBStatus | ILBGetChannelName (ILBFramebufferHandle fb, int32 index, ILBStringHandle *name) |
|
ILBStatus | ILBGetFramebufferPass (ILBFramebufferHandle fb, ILBRenderPassHandle *pass) |
|
ILBStatus | ILBGetFramebufferTarget (ILBFramebufferHandle fb, ILBTargetHandle *target) |
|
ILBStatus | ILBGetFramebufferTargetEntity (ILBFramebufferHandle fb, ILBTargetEntityHandle *entity) |
|
ILBStatus | ILBGetResolution (ILBFramebufferHandle fb, int32 *width, int32 *height) |
|
ILBStatus | ILBReadRegionHDR (ILBFramebufferHandle fb, int32 minX, int32 minY, int32 maxX, int32 maxY, ILBChannelSelection channels, float *target) |
|
ILBStatus | ILBReadRegionLDR (ILBFramebufferHandle fb, int32 minX, int32 minY, int32 maxX, int32 maxY, ILBChannelSelection channels, float gamma, unsigned char *target) |
|
Default selections of channels when reading out pixel/vertex data.
Enumerator |
---|
ILB_CS_R |
Red channel only.
|
ILB_CS_G |
Green channel only.
|
ILB_CS_B |
Blue channel only.
|
ILB_CS_A |
Alpha channel only.
|
ILB_CS_Z |
Z-channel only.
|
ILB_CS_RGB |
Red, green and blue channels only.
|
ILB_CS_RGBA |
Red, green, blue and alpha channels.
|
ILB_CS_RGBZ |
Red, green, blue and Z channels.
|
ILB_CS_RGBAZ |
Red, green, blue, alpha and Z channels.
|
ILB_CS_ALL |
All channels.
|
Destroys and frees all memory related to a framebuffer.
The framebuffer handle will be invalid afterwards.
Note this will happen automatically when the job is destroyed. Use this function to avoid using more temporary memory than necessary when importing results.
- Parameters
-
fb | the framebuffer to erase |
- Returns
- The result of the operation.
Gets the number of channels in the framebuffer.
- Parameters
-
fb | the framebuffer to get the channel count for |
channels | pointer to the variable to receive the number of channels |
- Returns
- The result of the operation.
Gets the name for a channel.
- Parameters
-
fb | the framebuffer to get the channel from |
index | the index of the channel to get |
name | pointer to the string handle to receive the channel name |
- Returns
- The result of the operation.
Returns which pass this frame buffer is generated from.
- Parameters
-
fb | the framebuffer to erase |
pass | the pass which the frame buffer is generated from |
- Returns
- The result of the operation.
Returns which target this frame buffer is generated from.
- Parameters
-
fb | the framebuffer to erase |
target | the target which the frame buffer is generated from |
- Returns
- The result of the operation.
Returns which target entity this frame buffer is generated from.
- Parameters
-
fb | the framebuffer to erase |
entity | the target entity which the frame buffer is generated from |
- Returns
- The result of the operation.
Gets the resolution for a framebuffer.
- Parameters
-
fb | the framebuffer to get the resolution of |
width | pointer to where the width shall be written |
height | pointer to where the height shall be written |
- Returns
- The result of the operation.
Reads back a region in a framebuffer.
The region is specified as inclusive for the lower part and exclusive for the higher part. I.E to read a 512x512 buffer use 0, 0, 512, 512
- Parameters
-
fb | the framebuffer to read from |
minX | the left limit of the region |
minY | the lower limit of the region |
maxX | the right limit of the region |
maxY | the upper limit of the region |
channels | what channels to read out from the buffer |
target | the buffer to write the result to. Must be (maxY - minY) * (maxX - minX) * channelCount floats big |
- Returns
- The result of the operation.
Reads back a region in a framebuffer.
The region is specified as inclusive for the lower part and exclusive for the higher part. I.E to read a 512x512 buffer use 0, 0, 512, 512
- Parameters
-
fb | the framebuffer to read from |
minX | the left limit of the region |
minY | the lower limit of the region |
maxX | the right limit of the region |
maxY | the upper limit of the region |
channels | what channels to read out from the buffer |
gamma | the gamma space to encode the image data in |
target | the buffer to write the result to. Must be (maxY - minY) * (maxX - minX) * channelCount bytes big |
- Returns
- The result of the operation.
Go to the source code of this file.