Primordial Machine's Assets Library

Primordial Machine's Assets Library is a C library. The library provides a C API to work with asset definition language files. The library builds upon the code and the concepts provided by Primordial Machine's Core Library.

Core_Assets_Def

Signature

typedef struct Core_Assets_Def Core_Assets_Def;

Extends

Core_Object

Description

The base of all asset definitions.

Core_Assets_Image

Signature

typedef struct Core_Assets_Image Core_Assets_Image;

Extends

Core_Assets_Def

Description

An image asset.

Core_Assets_ImageOperation

Signature

typedef struct Core_Assets_ImageOperation Core_Assets_ImageOperation;

Extends

Core_Assets_Def

Description

The base of all image operations.

Core_Assets_ImageOperations_MirrorHorizontal

Signature

typedef struct Core_Assets_ImageOperations_MirrorHorizontal Core_Assets_ImageOperations_MirrorHorizontal;

Extends

Core_Assets_ImageOperation

Description

An image operation. Mirrors the image horizontally.Let \(w \geq 0\) and \(h \geq 0\) be the width of the height of the image, respectively, then the pixel at \((x,y)\) with \(x \in [1,w]\) and \(y \in [1,h]\) is swapped with the pixel at \((w-x,y)\).

Core_Assets_ImageOperations_MirrorVertical

Signature

typedef struct Core_Assets_ImageOperations_MirrorVertical Core_Assets_ImageOperations_MirrorVertical;

Extends

Core_Assets_ImageOperation

Description

An image operation. Mirrors the image vertically.Let \(w \geq 0\) and \(h \geq 0\) be the width of the height of the image, respectively, then the pixel at \((x,y)\) with \(x \in [1,w]\) and \(y \in [1,h]\) is swapped with the pixel at \((x,h-y)\).