70#define PH_NUM_RENDER_LAYERS 4
71#define PH_NUM_RENDER_STATE_INTEGERS 4
72#define PH_NUM_RENDER_STATE_REALS 4
73#define PH_MAX_NAME_LENGTH 128
PH_API PhBool phInit()
Definition ph_c_core.cpp:44
PH_API void phDeleteFrame(PhUInt64 frameId)
Definition ph_c_core.cpp:271
PH_API PhBool phSaveFrame(PhUInt64 frameId, const PhChar *filePath, const PhFrameSaveInfo *saveInfo)
Save a frame to the filesystem.
Definition ph_c_core.cpp:301
PH_API void phAsyncGetRenderStatistics(PhUInt64 engineId, PhFloat32 *out_percentageProgress, PhFloat32 *out_samplesPerSecond)
Definition ph_c_core.cpp:476
#define PH_MAX_NAME_LENGTH
Definition ph_c_core.h:73
#define PH_NUM_RENDER_LAYERS
Definition ph_c_core.h:70
PH_API PhSize phAsyncPollUpdatedFrameRegions(PhUInt64 engineId, PhUInt64 bufferId, PhFrameRegionInfo *out_regionInfos, PhSize maxRegionInfos)
Polls for multiple changed regions during engine runtime.
Definition ph_c_core.cpp:541
PH_API PhBool phExit()
Definition ph_c_core.cpp:55
#define PH_NUM_RENDER_STATE_REALS
Definition ph_c_core.h:72
PH_API void phConfigRendererResourceDirectory(const PhChar *directory)
Definition ph_c_core.cpp:37
PH_API void phGetRenderDimension(PhUInt64 engineId, PhUInt32 *out_widthPx, PhUInt32 *out_heightPx)
Definition ph_c_core.cpp:173
PH_API PhBool phLoadFrame(PhUInt64 frameId, const PhChar *filePath)
Definition ph_c_core.cpp:283
PH_API void phGetObservableRenderData(PhUInt64 engineId, struct PHObservableRenderData *out_data)
Definition ph_c_core.cpp:184
PH_API void phGetFrameRgbData(PhUInt64 frameId, const PhFloat32 **out_data)
Definition ph_c_core.cpp:260
PH_API void phDeleteEngine(PhUInt64 engineId)
Definition ph_c_core.cpp:86
PH_API void phDeleteBuffer(PhUInt64 bufferId)
Definition ph_c_core.cpp:676
PH_API void phRender(PhUInt64 engineId)
Definition ph_c_core.cpp:124
PH_API PhFloat32 phFrameOpMSE(PhUInt64 expectedFrameId, PhUInt64 estimatedFramIde)
Definition ph_c_core.cpp:444
PH_ERenderStateType
Definition ph_c_core.h:92
@ REAL
Definition ph_c_core.h:94
@ INTEGER
Definition ph_c_core.h:93
PH_API void phAsyncPeekFrameRaw(PhUInt64 engineId, PhUInt64 layerIndex, PhUInt32 xPx, PhUInt32 yPx, PhUInt32 widthPx, PhUInt32 heightPx, PhUInt64 frameId)
Definition ph_c_core.cpp:620
PH_API void phAquireFrameRaw(PhUInt64 engineId, PhUInt64 channelIndex, PhUInt64 frameId)
Definition ph_c_core.cpp:157
PH_API void phAsyncGetRenderState(PhUInt64 engineId, struct PHRenderState *out_state)
Definition ph_c_core.cpp:495
PH_API PhSize phAsyncPollMergedUpdatedFrameRegions(PhUInt64 engineId, PhUInt64 bufferId, PhSize mergeSize, PhFrameRegionInfo *out_regionInfos, PhSize maxRegionInfos)
Polls for multiple changed regions during engine runtime.
Definition ph_c_core.cpp:571
PH_API PhBool phSaveFrameToBuffer(PhUInt64 frameId, PhUInt64 bufferId, PhBufferFormat format, const PhFrameSaveInfo *saveInfo)
Save a frame to a buffer.
Definition ph_c_core.cpp:337
PH_API void phUpdate(PhUInt64 engineId)
Definition ph_c_core.cpp:133
PH_EATTRIBUTE
Definition ph_c_core.h:63
@ NORMAL
Definition ph_c_core.h:65
@ DEPTH
Definition ph_c_core.h:66
@ LIGHT_ENERGY
Definition ph_c_core.h:64
PH_API void phEnterCommand(PhUInt64 engineId, const PhChar *commandFragment)
Definition ph_c_core.cpp:98
PH_API void phAquireFrame(PhUInt64 engineId, PhUInt64 channelIndex, PhUInt64 frameId)
Definition ph_c_core.cpp:142
PH_API PhBool phLoadCommands(PhUInt64 engineId, const PhChar *filePath)
Definition ph_c_core.cpp:110
PH_API void phCreateEngine(PhUInt64 *out_engineId, const PhUInt32 numRenderThreads)
Creates an engine.
Definition ph_c_core.cpp:66
PH_API void phCreateFrame(PhUInt64 *out_frameId, PhUInt32 widthPx, PhUInt32 heightPx)
Definition ph_c_core.cpp:236
#define PH_API
**************************************************** Microsoft Visual Studio */
Definition ph_c_core.h:57
PH_API void phGetBufferBytes(PhUInt64 bufferId, const PhUChar **out_bytesPtr, PhSize *out_numBytes)
Definition ph_c_core.cpp:659
PH_API void phSetWorkingDirectory(PhUInt64 engineId, const PhChar *workingDirectory)
Definition ph_c_core.cpp:638
PH_API void phAsyncGetRenderProgress(PhUInt64 engineId, PhRenderProgress *out_progress)
Definition ph_c_core.cpp:462
PH_API void phGetFrameDimension(PhUInt64 frameId, PhUInt32 *out_widthPx, PhUInt32 *out_heightPx)
Definition ph_c_core.cpp:247
PH_API void phCreateBuffer(PhUInt64 *out_bufferId)
Definition ph_c_core.cpp:650
PH_API void phSetNumRenderThreads(PhUInt64 engineId, const PhUInt32 numRenderThreads)
Definition ph_c_core.cpp:77
PH_API void phAsyncPeekFrame(PhUInt64 engineId, PhUInt64 layerIndex, PhUInt32 xPx, PhUInt32 yPx, PhUInt32 widthPx, PhUInt32 heightPx, PhUInt64 frameId)
Definition ph_c_core.cpp:602
PH_API PhBool phAsyncPollUpdatedFrameRegion(PhUInt64 engineId, PhFrameRegionInfo *out_regionInfo)
Polls for a single changed region during engine runtime.
Definition ph_c_core.cpp:517
PH_API void phFrameOpAbsDifference(PhUInt64 frameAId, PhUInt64 frameBId, PhUInt64 resultFrameId)
Definition ph_c_core.cpp:433
#define PH_NUM_RENDER_STATE_INTEGERS
Definition ph_c_core.h:71
uint32_t PhUInt32
Definition ph_c_core_types.h:13
char PhChar
Definition ph_c_core_types.h:18
float PhFloat32
Definition ph_c_core_types.h:16
unsigned char PhUChar
Definition ph_c_core_types.h:19
PhBool
Definition ph_c_core_types.h:23
size_t PhSize
Definition ph_c_core_types.h:20
PhBufferFormat
Definition ph_c_core_types.h:42
uint64_t PhUInt64
Definition ph_c_core_types.h:15
int64_t PhInt64
Definition ph_c_core_types.h:14
Definition ph_c_core.h:84
PhChar layers[PH_NUM_RENDER_LAYERS][PH_MAX_NAME_LENGTH+1]
Definition ph_c_core.h:85
PhChar reals[PH_NUM_RENDER_STATE_REALS][PH_MAX_NAME_LENGTH+1]
Definition ph_c_core.h:87
PhChar integers[PH_NUM_RENDER_STATE_INTEGERS][PH_MAX_NAME_LENGTH+1]
Definition ph_c_core.h:86
Definition ph_c_core.h:77
PhFloat32 reals[PH_NUM_RENDER_STATE_REALS]
Definition ph_c_core.h:79
PhInt64 integers[PH_NUM_RENDER_STATE_INTEGERS]
Definition ph_c_core.h:78
Definition ph_c_core_types.h:65
Definition ph_c_core_types.h:82
Definition ph_c_core_types.h:58