beastapi/beasttexture.h Source File

beasttexture.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 
12 #ifndef BEASTTEXTURE_H
13 #define BEASTTEXTURE_H
14 
15 #include "beastapitypes.h"
16 
17 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif // __cplusplus
21 
25 typedef enum {
30  //ILB_TG_SRGB,
32 
36 typedef enum {
62 
73 ILB_DLL_FUNCTION ILBStatus ILBReferenceTexture(ILBManagerHandle beastManager,
74  ILBConstString uniqueName,
75  ILBConstString filename,
76  ILBTextureHandle* target);
77 
78 
93 ILB_DLL_FUNCTION ILBStatus ILBBeginTexture(ILBManagerHandle beastManager,
94  ILBConstString uniqueName,
95  int32 width,
96  int32 height,
97  ILBPixelFormat inputFormat,
98  ILBTextureHandle* target);
99 
100 
111 ILB_DLL_FUNCTION ILBStatus ILBFindTexture(ILBManagerHandle beastManager,
112  ILBConstString uniqueName,
113  ILBTextureHandle* target);
114 
131 ILB_DLL_FUNCTION ILBStatus ILBAddPixelDataHDR(ILBTextureHandle texture,
132  const float* data,
133  int32 pixelCount);
134 
151 ILB_DLL_FUNCTION ILBStatus ILBAddPixelDataLDR(ILBTextureHandle texture,
152  const unsigned char* data,
153  int32 pixelCount);
154 
161 ILB_DLL_FUNCTION ILBStatus ILBEndTexture(ILBTextureHandle texture);
162 
173 ILB_DLL_FUNCTION ILBStatus ILBSetInputGamma(ILBTextureHandle texture, ILBImageGammaType type, float gamma);
174 
175 #ifdef __cplusplus
176 }
177 #endif // __cplusplus
178 
179 
180 #endif // BEASTTEXTURE_H
Gamma ramp, will always be combined with a gamma value.
Definition: beasttexture.h:29
This header is the base for getting platform consistent types for the Beast API.
ILBStatus ILBEndTexture(ILBTextureHandle texture)
Finalizes creation of a texture.
Color with alpha byte pixels.
Definition: beasttexture.h:60
const ILBCharType * ILBConstString
Beast api const string type.
Definition: beastapitypes.h:245
ILBStatus ILBAddPixelDataLDR(ILBTextureHandle texture, const unsigned char *data, int32 pixelCount)
Adds pixels to a texture.
ILBStatus ILBFindTexture(ILBManagerHandle beastManager, ILBConstString uniqueName, ILBTextureHandle *target)
Finds a cached texture.
ILBStatus ILBReferenceTexture(ILBManagerHandle beastManager, ILBConstString uniqueName, ILBConstString filename, ILBTextureHandle *target)
References in an external texture.
ILBStatus ILBSetInputGamma(ILBTextureHandle texture, ILBImageGammaType type, float gamma)
Sets what gamma encoding the colors in LDR texture has.
Color with alpha floating point pixels.
Definition: beasttexture.h:48
Handle for Beast textures Intentionally hidden implementation.
Definition: beastapitypes.h:450
ILBPixelFormat
Format for pixel data.
Definition: beasttexture.h:36
Color byte pixels.
Definition: beasttexture.h:56
ILBStatus ILBAddPixelDataHDR(ILBTextureHandle texture, const float *data, int32 pixelCount)
Adds pixels to a texture.
ILBImageGammaType
Gamma for input pixels data.
Definition: beasttexture.h:25
Handle for Beast managers Intentionally hidden implementation.
Monochrome byte pixels.
Definition: beasttexture.h:52
Color floating point pixels.
Definition: beasttexture.h:44
ILBStatus
Status codes for Beast API calls.
Definition: beastapitypes.h:153
ILBStatus ILBBeginTexture(ILBManagerHandle beastManager, ILBConstString uniqueName, int32 width, int32 height, ILBPixelFormat inputFormat, ILBTextureHandle *target)
Begins creation of a texture.
Monochrome floating point pixels.
Definition: beasttexture.h:40