AODQ / pulchritude-engine

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

PuleText - font/text renderer engine library #40

Open AODQ opened 2 years ago

AODQ commented 2 years ago

Description

Loads Freetype2 fonts (PuleAssetFont), and provides a rendering backend that can optimize blits.


Proposed new ABI

TODO

typedef enum {
  PuleFontRenderType_Bitmap,
  PuleFontRenderType_SignedDistanceField
} PuleFontRenderType;

void puleFontRender2D(PuleFont font, PuleFramebuffer target, PuleStringView contents, PuleI32v2 offset)
void puleFontRender3D(PuleFont font, PuleFramebuffer target, PuleStringView contents, PuleF32m44 transform)