Stardew Engine
Loading...
Searching...
No Matches
ImageFileRegstry.h File Reference
#include "IntTypes.h"
#include <stdbool.h>
#include "DynArray.h"
#include "HandleDefs.h"
Include dependency graph for ImageFileRegstry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ImageFile
 
struct  ImageLoadError
 

Macros

#define CHANNELS_PER_PIXEL   4
 

Functions

HImage IR_RegisterImagePath (const char *path)
 
HImage IR_LookupHandleByPath (const char *path)
 
bool IR_IsImageLoaded (HImage hImage)
 
u8IR_GetImageData (HImage img)
 
const struct ImageFileIR_GetImageFile (HImage img)
 
bool IR_LoadImageSync (HImage hImage, VECTOR(struct ImageLoadError) outErrors)
 
void IR_InitImageRegistry (const char *jsonPath)
 
void IR_DestroyImageRegistry ()
 

Macro Definition Documentation

◆ CHANNELS_PER_PIXEL

#define CHANNELS_PER_PIXEL   4

Function Documentation

◆ IR_DestroyImageRegistry()

void IR_DestroyImageRegistry ( )

◆ IR_GetImageData()

u8 * IR_GetImageData ( HImage  img)

◆ IR_GetImageFile()

const struct ImageFile * IR_GetImageFile ( HImage  img)

◆ IR_InitImageRegistry()

void IR_InitImageRegistry ( const char *  jsonPath)

◆ IR_IsImageLoaded()

bool IR_IsImageLoaded ( HImage  hImage)

◆ IR_LoadImageSync()

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

◆ IR_LookupHandleByPath()

HImage IR_LookupHandleByPath ( const char *  path)

◆ IR_RegisterImagePath()

HImage IR_RegisterImagePath ( const char *  path)