Stardew Engine
Loading...
Searching...
No Matches
ImageFileRegstry.c File Reference
#include "ImageFileRegstry.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "cJSON.h"
#include "FileHelpers.h"
#include "Log.h"
#include "stb/stb_image.h"
Include dependency graph for ImageFileRegstry.c:

Macros

#define STB_IMAGE_IMPLEMENTATION
 

Functions

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

Macro Definition Documentation

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

Function Documentation

◆ IR_DestroyImageRegistry()

void IR_DestroyImageRegistry ( )

◆ IR_GetImageData()

u8 * IR_GetImageData ( HImage  img)

◆ IR_GetImageFile()

const struct ImageFile * IR_GetImageFile ( HImage  hImage)

◆ 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)