AODQ / pulchritude-engine

lingua franca game engine
MIT License
0 stars 0 forks source link

PuleGfxDebug - Graphics Debug Engine Library #20

Open AODQ opened 2 years ago

AODQ commented 2 years ago

Description

Allows user to render debug objects quickly to enable fast prototyping of features without having to write an entire renderer; no concern for performance.


Proposed new ABI

void puleGfxDebugInitialize();
void puleGfxShutdown();

void puleGfxDebugRenderLine(
  PuleF32v3 const originStart,
  PuleF32v3 const originEnd,
  PuleF32v3 const color
);

void puleGfxDebugRenderRect(
  PuleF32v3 const originUl,
  PuleF32v3 const originLr,
  PuleF32v3 const color,
  bool const outline
);

void puleGfxDebugRenderCircle(
  PuleF32v3 const origin,
  float const radius,
  PuleF32v3 const color
);

void puleGfxDebugRenderPoint(
  PuleF32v3 const origin,
  float const pointWidth,
  PuleF32v3 const color
);

void puleGfxDebugFrameStart();

void puleGfxDebugRender(
  PuleGfxFramebuffer const framebuffer,
  PuleF32m44 const transform
);
AODQ commented 2 years ago

development exists as dev/gfx-debug-library (I'm not working on this currently).