diff options
Diffstat (limited to 'src/emu/rendutil.h')
-rw-r--r-- | src/emu/rendutil.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/emu/rendutil.h b/src/emu/rendutil.h index b84fc60f704..1824fb0a34a 100644 --- a/src/emu/rendutil.h +++ b/src/emu/rendutil.h @@ -5,6 +5,7 @@ rendutil.h Core rendering utilities. + ***************************************************************************/ #ifndef MAME_EMU_RENDUTIL_H @@ -17,6 +18,18 @@ #include <math.h> +/* ----- image formats ----- */ + +enum ru_imgformat +{ + RENDUTIL_IMGFORMAT_PNG, + + RENDUTIL_IMGFORMAT_UNKNOWN, + RENDUTIL_IMGFORMAT_ERROR +}; + + + /*************************************************************************** FUNCTION PROTOTYPES ***************************************************************************/ @@ -29,6 +42,7 @@ bool render_clip_quad(render_bounds *bounds, const render_bounds *clip, render_q void render_line_to_quad(const render_bounds *bounds, float width, float length_extension, render_bounds *bounds0, render_bounds *bounds1); void render_load_jpeg(bitmap_argb32 &bitmap, emu_file &file, const char *dirname, const char *filename); bool render_load_png(bitmap_argb32 &bitmap, emu_file &file, const char *dirname, const char *filename, bool load_as_alpha_to_existing = false); +ru_imgformat render_detect_image(emu_file &file, const char *dirname, const char *filename); |