Console-Swizzler
C library to swizzle DDS textures for console games
Loading...
Searching...
No Matches
console-swizzler.h File Reference
#include <stdlib.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define _SWIZ_EXTERN   __attribute__((visibility("default"))) extern
 
#define _SWIZ_ENUM(s)   typedef unsigned int s; enum
 
#define SWIZ_VERSION   "0.4.0"
 
#define SWIZ_VERSION_INT   400
 

Typedefs

typedef struct SwizContext SwizContext
 

Functions

_SWIZ_EXTERN const char * swizGetVersion ()
 Gets the version of console-swizzler.
 
_SWIZ_EXTERN int swizGetVersionAsInt ()
 Gets the version of console-swizzler as an integer.
 
 _SWIZ_ENUM (SwizError)
 
_SWIZ_EXTERN const char * swizGetErrorMessage (SwizError error)
 Gets an error message for #SwizError.
 
 _SWIZ_ENUM (SwizPlatform)
 

Macro Definition Documentation

◆ _SWIZ_ENUM

#define _SWIZ_ENUM (   s)    typedef unsigned int s; enum

◆ _SWIZ_EXTERN

#define _SWIZ_EXTERN   __attribute__((visibility("default"))) extern

◆ SWIZ_VERSION

#define SWIZ_VERSION   "0.4.0"

◆ SWIZ_VERSION_INT

#define SWIZ_VERSION_INT   400

Typedef Documentation

◆ SwizContext

typedef struct SwizContext SwizContext

Function Documentation

◆ _SWIZ_ENUM() [1/2]

_SWIZ_ENUM ( SwizError  )

◆ _SWIZ_ENUM() [2/2]

_SWIZ_ENUM ( SwizPlatform  )

< PS4

< Switch

◆ swizGetErrorMessage()

_SWIZ_EXTERN const char * swizGetErrorMessage ( SwizError  error)

Gets an error message for #SwizError.

Parameters
errorError status.
Returns
An error message

◆ swizGetVersion()

_SWIZ_EXTERN const char * swizGetVersion ( )

Gets the version of console-swizzler.

It should be of the form x.x.x.

Returns
A string that represents the version.

◆ swizGetVersionAsInt()

_SWIZ_EXTERN int swizGetVersionAsInt ( )

Gets the version of console-swizzler as an integer.

The value should be major * 10000 + minor * 100 + patch. If swizGetVersion() == "1.2.3" then swizGetVersionAsInt() == 10203.

Returns
An integer that represents the version.