File ImageFileRegstry.c
FileList > core > ImageFileRegstry.c
Go to the source code of this file
#include "ImageFileRegstry.h"#include <stdio.h>#include <stdlib.h>#include <string.h>#include "cJSON.h"#include "FileHelpers.h"#include "main.h"#include "Log.h"#include "cwalk.h"#include "stb/stb_image.h"
Public Functions
| Type | Name |
|---|---|
| void | IR_DestroyImageRegistry () |
| u8 * | IR_GetImageData (HImage img) |
| const struct ImageFile * | IR_GetImageFile (HImage hImage) |
| 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) |
Public Static Functions
| Type | Name |
|---|---|
| static | VECTOR (struct ImageFile) |
Macros
| Type | Name |
|---|---|
| define | STB_IMAGE_IMPLEMENTATION |
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 hImage
)
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
)
Public Static Functions Documentation
function VECTOR
static static VECTOR (
struct ImageFile
)
Macro Definition Documentation
define STB_IMAGE_IMPLEMENTATION
#define STB_IMAGE_IMPLEMENTATION
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/src/core/ImageFileRegstry.c