Stardew Engine
Loading...
Searching...
No Matches
ImageFileRegstry.h
Go to the documentation of this file.
1#ifndef IMAGE_FILE_REGISTRY_H
2#define IMAGE_FILE_REGISTRY_H
3#include "IntTypes.h"
4#include <stdbool.h>
5#include "DynArray.h"
6#include "HandleDefs.h"
7
8#define CHANNELS_PER_PIXEL 4
9
11{
12 char* path;
13 bool bLoaded;
16};
17
19{
20 char* message;
21};
22
23
24HImage IR_RegisterImagePath(const char* path);
25
26HImage IR_LookupHandleByPath(const char* path);
27
28bool IR_IsImageLoaded(HImage hImage);
29
31
32const struct ImageFile* IR_GetImageFile(HImage img);
33
34bool IR_LoadImageSync(HImage hImage, VECTOR(struct ImageLoadError) outErrors);
35
36void IR_InitImageRegistry(const char* jsonPath);
37
39
40#endif
HGeneric HImage
Definition HandleDefs.h:11
const struct ImageFile * IR_GetImageFile(HImage img)
Definition ImageFileRegstry.c:81
u8 * IR_GetImageData(HImage img)
Definition ImageFileRegstry.c:55
bool IR_LoadImageSync(HImage hImage, VECTOR(struct ImageLoadError) outErrors)
Definition ImageFileRegstry.c:92
bool IR_IsImageLoaded(HImage hImage)
Definition ImageFileRegstry.c:45
HImage IR_RegisterImagePath(const char *path)
void IR_DestroyImageRegistry()
Definition ImageFileRegstry.c:156
void IR_InitImageRegistry(const char *jsonPath)
Definition ImageFileRegstry.c:120
HImage IR_LookupHandleByPath(const char *path)
Definition ImageFileRegstry.c:33
uint8_t u8
Definition IntTypes.h:6
#define VECTOR(a)
Definition WfGame.h:8
Definition ImageFileRegstry.h:11
u8 * pData
Definition ImageFileRegstry.h:14
bool bLoaded
Definition ImageFileRegstry.h:13
int height
Definition ImageFileRegstry.h:15
int width
Definition ImageFileRegstry.h:15
char * path
Definition ImageFileRegstry.h:12
Definition ImageFileRegstry.h:19
char * message
Definition ImageFileRegstry.h:20