DTRenderer/src/DTRenderer.h
Doyle Thai e660281211 Fix multithread bug causing invalid ptr references
Mesh rendering was not waiting until all jobs were complete before moving on
causing longer jobs to use old pointer references once the next frame started
rendering.
2017-06-19 14:14:13 +10:00

22 lines
501 B
C

#ifndef DTRENDERER_H
#define DTRENDERER_H
#include "DTRendererAsset.h"
#include "dqn.h"
typedef void DTR_UpdateFunction(struct PlatformRenderBuffer *const renderBuffer,
struct PlatformInput *const input,
struct PlatformMemory *const memory);
typedef struct DTRState
{
DTRFont font;
DTRBitmap bitmap;
DTRMesh mesh;
struct PlatformLock *renderLock;
} DTRState;
extern PlatformFlags globalDTRPlatformFlags;
#endif