#include "beastapitypes.h"
The beast manager is the core object for all interaction with the Beast API.
Macros | |
#define | ILB_BEAST_INTERFACE_VERSION 5 |
Enumerations | |
enum | ILBCacheScope { ILB_CS_GLOBAL, ILB_CS_LOCAL } |
enum | ILBLogSink { ILB_LS_NULL, ILB_LS_STDOUT, ILB_LS_STDERR, ILB_LS_FILE, ILB_LS_DEBUG_OUTPUT } |
enum | ILBLogType { ILB_LT_ERROR, ILB_LT_INFO } |
Functions | |
ILBStatus | ILBClearCache (ILBManagerHandle beastManager) |
static ILBStatus | ILBCreateManager (ILBConstString cacheDirectory, ILBCacheScope cacheScope, ILBConstString licenseKey, ILBManagerHandle *beastManager) |
ILBStatus | ILBDestroyManager (ILBManagerHandle beastManager) |
ILBStatus | ILBSetBeastPath (ILBManagerHandle beastManager, ILBConstString beastPath) |
static ILBStatus | ILBSetLogTarget (ILBLogType type, ILBLogSink sink, ILBConstString filename) |
ILBStatus | ILBSetLogTargetFileHandle (ILBLogType type, ILBFileHandle handle) |
ILBStatus | ILBSetStringEncodingImp (ILBStringEncoding encoding) |
#define ILB_BEAST_INTERFACE_VERSION 5 |
Revision number for released headers.
Will increase with every public release with interface changes
enum ILBCacheScope |
Sets the scope for the cache.
enum ILBLogSink |
Enum selecting where to route messages.
enum ILBLogType |
ILBStatus ILBClearCache | ( | ILBManagerHandle | beastManager | ) |
Clears the cache.
Will only work if there are no scenes present.
beastManager | the beastManager to clear the cache for |
|
inlinestatic |
Creates a Beast Manager.
cacheDirectory | sets the directory where the Beast Manager stores cached and temporary files. |
cacheScope | sets whether the cache is local to this beast manager or it can be reopened by another Beast Manager in the same directory. |
licenseKey | the license key provided to you as part of your evaluation/purchase. |
beastManager | a pointer to a Beast manager object that will receive the newly allocated handle |
ILBStatus ILBDestroyManager | ( | ILBManagerHandle | beastManager | ) |
Destroys a Beast Manager
Will invalidate all resources and handles associated it as well.
beastManager | the Beast Manager to destroy |
ILBStatus ILBSetBeastPath | ( | ILBManagerHandle | beastManager, |
ILBConstString | beastPath | ||
) |
Sets where the Beast binaries are located.
The default search order is:
beastManager | the BeastManager to set the root |
beastPath | the path to the Beast binaries |
|
inlinestatic |
Sets where log messages should be routed.
Note this function is global rather than connected since some log messages happens before a beast manager may be present or known. Note, this method is not thread safe! Don't call it while other threads are using Beast
type | the message type to route to this target |
sink | where to route the messages |
filename | the file to write the log info to. Only used if sink is ILB_LS_FILE |
ILBStatus ILBSetLogTargetFileHandle | ( | ILBLogType | type, |
ILBFileHandle | handle | ||
) |
Sets where log messages should be routed.
Note this function is global rather than connected since some log messages happens before a beast manager may be present or known. Note, this method is not thread safe! Don't call it while other threads are using Beast
type | the message type to route to this target |
handle | where to route the messages, or ILB_INVALID_FILE_HANDLE to disable logging |
ILBStatus ILBSetStringEncodingImp | ( | ILBStringEncoding | encoding | ) |
Sets the character type for Beast.
Should generally not be called explicitly but automatically called from ILBCreateManager or ILBSetLogTarget.
encoding | the encoding for input and output strings. |