Commit Graph

4 Commits

Author SHA1 Message Date
Anuj Verma 67652386e2 [bsdf] Added forward declaration of the `bsdf' rasterizer.
* src/sdf/ftsdf.h (ft_bitmap_sdf_raster): Added forward declaration of the rasterizer
  so that it can be added to the renderer.
2020-08-20 21:27:59 -07:00
Anuj Verma c76b653829 [sdf] Added makefiles to build the `sdf' module.
* src/sdf/ftsdf.c (module.mk, rules.mk): Added makefiled to build the `sdf' module.

* src/sdf/ftsdf.c (ft_sdf_raster): Added forward declaration of the `sdf' rasterizer.
2020-08-19 16:57:38 +05:30
Anuj Verma b8f4ab8304 [sdf] Added raster params struct.
* src/sdf/ftsdf.h (SDF_Raster_Params): Added struct which is used to pass 
  params to both `sdf' and `bsdf' rasterizer.

* src/sdf/sdf.c (*): Include source files in order to make a single object of the
  module.

* src/sdf/ftsdfrend.h (SDF_Renderer_Module): Add a '*' to make the comment
  similar to the rest in the module.
2020-08-17 16:11:56 +05:30
Anuj Verma 29de1ff668 [sdf] Added all the necessary filed required by the module.
Added the necessary files required by the `sdf' module. These include files
for both the `sdf' and the `bsdf' renderers. Here is breakdown of what the
specific files will contain:

* src/sdf/ftsdfrend.*: Both the renderers.

* src/sdf/ftsdf.*: The rasterizer for the `sdf' renderer.

* src/sdf/ftbsdf.c: The rasterizer for the `bsdf' renderer.

* src/sdf/ftsdfcommon.h: Commmon properties and functions for both the
  rasterizers.

* src/sdf/ftsdferrs.h: Common error define.

* src/sdf/sdf.c: For building a single object of the entire module.
2020-08-16 17:09:22 +05:30