beastapi/beastframebuffer.h Source File

beastframebuffer.h
Go to the documentation of this file.
1 /*
2 Copyright 2014 Autodesk, Inc. All rights reserved.
3 Use of this software is subject to the terms of the Autodesk license agreement
4 provided at the time of installation or download, or which otherwise
5 accompanies this software in either electronic or hard copy form.
6 */
7 
8 
13 #ifndef BEASTFRAMEBUFFER_H
14 #define BEASTFRAMEBUFFER_H
15 
16 #include "beastapitypes.h"
17 #ifdef __cplusplus
18 extern "C" {
19 #endif // __cplusplus
20 
26  ILB_CS_R = 0,
36 };
37 
44 ILB_DLL_FUNCTION ILBStatus ILBGetChannelCount(ILBFramebufferHandle fb, int32* channels);
45 
55  int32 index,
56  ILBStringHandle* name);
57 
67  int32* width,
68  int32* height);
69 
77 
85 
93 
109 ILB_DLL_FUNCTION ILBStatus ILBReadRegionHDR(ILBFramebufferHandle fb,
110  int32 minX,
111  int32 minY,
112  int32 maxX,
113  int32 maxY,
114  ILBChannelSelection channels,
115  float* target);
116 
134 ILB_DLL_FUNCTION ILBStatus ILBReadRegionLDR(ILBFramebufferHandle fb,
135  int32 minX,
136  int32 minY,
137  int32 maxX,
138  int32 maxY,
139  ILBChannelSelection channels,
140  float gamma,
141  unsigned char* target);
142 
143 
154 
155 #ifdef __cplusplus
156 }
157 #endif // __cplusplus
158 
159 #endif // BEASTFRAMEBUFFER_H
Definition: beastframebuffer.h:31
Definition: beastframebuffer.h:32
This header is the base for getting platform consistent types for the Beast API.
ILBStatus ILBGetFramebufferPass(ILBFramebufferHandle fb, ILBRenderPassHandle *pass)
Returns which pass this frame buffer is generated from.
Definition: beastframebuffer.h:34
ILBStatus ILBGetFramebufferTarget(ILBFramebufferHandle fb, ILBTargetHandle *target)
Returns which target this frame buffer is generated from.
ILBStatus ILBDestroyFramebuffer(ILBFramebufferHandle fb)
Destroys and frees all memory related to a framebuffer.
ILBStatus ILBGetChannelName(ILBFramebufferHandle fb, int32 index, ILBStringHandle *name)
Gets the name for a channel.
Definition: beastframebuffer.h:30
Definition: beastframebuffer.h:26
ILBStatus ILBReadRegionHDR(ILBFramebufferHandle fb, int32 minX, int32 minY, int32 maxX, int32 maxY, ILBChannelSelection channels, float *target)
Reads back a region in a framebuffer.
Handle for Beast render pass Intentionally hidden implementation.
Definition: beastapitypes.h:501
Definition: beastframebuffer.h:27
Definition: beastframebuffer.h:29
Definition: beastframebuffer.h:28
Handle for Beast target entities Intentionally hidden implementation.
Definition: beastapitypes.h:493
ILBStatus ILBGetChannelCount(ILBFramebufferHandle fb, int32 *channels)
Gets the number of channels in the framebuffer.
ILBChannelSelection
Default selections of channels when reading out pixel/vertex data.
Definition: beastframebuffer.h:25
ILBStatus ILBGetFramebufferTargetEntity(ILBFramebufferHandle fb, ILBTargetEntityHandle *entity)
Returns which target entity this frame buffer is generated from.
Definition: beastframebuffer.h:33
ILBStatus ILBReadRegionLDR(ILBFramebufferHandle fb, int32 minX, int32 minY, int32 maxX, int32 maxY, ILBChannelSelection channels, float gamma, unsigned char *target)
Reads back a region in a framebuffer.
Definition: beastframebuffer.h:35
ILBStatus ILBGetResolution(ILBFramebufferHandle fb, int32 *width, int32 *height)
Gets the resolution for a framebuffer.
Handle for Beast framebuffers Intentionally hidden implementation.
Definition: beastapitypes.h:485
ILBStatus
Status codes for Beast API calls.
Definition: beastapitypes.h:153
Handle for Beast target specification Intentionally hidden implementation.
Definition: beastapitypes.h:478
Handle for Beast strings Intentionally hidden implementation.
Definition: beastapitypes.h:471