File ImageFileRegstry.h

FileList > engine > include > ImageFileRegstry.h

Go to the source code of this file

  • #include "IntTypes.h"
  • #include <stdbool.h>
  • #include "DynArray.h"
  • #include "HandleDefs.h"

Classes

Type Name
struct ImageFile
struct ImageLoadError

Public Functions

Type Name
void IR_DestroyImageRegistry ()
u8 * IR_GetImageData (HImage img)
const struct ImageFile * IR_GetImageFile (HImage img)
void IR_InitImageRegistry (const char * jsonPath)
bool IR_IsImageLoaded (HImage hImage)
bool IR_LoadImageSync (HImage hImage, VECTOR(struct ImageLoadError) outErrors)
HImage IR_LookupHandleByPath (const char * path)
HImage IR_RegisterImagePath (const char * path)

Macros

Type Name
define CHANNELS_PER_PIXEL 4

Public Functions Documentation

function IR_DestroyImageRegistry

void IR_DestroyImageRegistry () 

function IR_GetImageData

u8 * IR_GetImageData (
    HImage img
) 

function IR_GetImageFile

const struct ImageFile * IR_GetImageFile (
    HImage img
) 

function IR_InitImageRegistry

void IR_InitImageRegistry (
    const char * jsonPath
) 

function IR_IsImageLoaded

bool IR_IsImageLoaded (
    HImage hImage
) 

function IR_LoadImageSync

bool IR_LoadImageSync (
    HImage hImage,
    VECTOR(struct ImageLoadError ) outErrors
) 

function IR_LookupHandleByPath

HImage IR_LookupHandleByPath (
    const char * path
) 

function IR_RegisterImagePath

HImage IR_RegisterImagePath (
    const char * path
) 

Macro Definition Documentation

define CHANNELS_PER_PIXEL

#define CHANNELS_PER_PIXEL `4`


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/ImageFileRegstry.h