DungeonCrawl
|
Implements functionality for outputing media to the screen. More...
#include "media_output.h"
#include "../../../logging/logger.h"
#include "../../io_handler.h"
#include "../common/output_handler.h"
#include "media_files.h"
#include "media_output_handler.h"
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
bool | display_image_at (const char *filename, int x, int y, int height, int width, scale_type_t scale_type) |
Display an image file at specified coordinates with scaling. | |
bool | display_image_cell (const char *filename, int x, int y) |
Fill a single terminal cell with an image. |
Implements functionality for outputing media to the screen.
Definition in file media_output.c.
bool display_image_at | ( | const char * | filename, |
int | x, | ||
int | y, | ||
int | height, | ||
int | width, | ||
scale_type_t | scale_type ) |
Display an image file at specified coordinates with scaling.
filename | Image file name (PNG supported, loaded from src/art/png/) |
x | X coordinate in terminal cells |
y | Y coordinate in terminal cells |
height | Height in terminal cells |
width | Width in terminal cells (0 for auto) |
scale_type | Scaling mode to use |
Definition at line 32 of file media_output.c.
bool display_image_cell | ( | const char * | filename, |
int | x, | ||
int | y ) |
Fill a single terminal cell with an image.
filename | Image file name (PNG supported, loaded from src/art/png/) |
x | X coordinate in terminal cells |
y | Y coordinate in terminal cells |
Definition at line 54 of file media_output.c.