Files
RedScarfEngine/utilities/file_utils.h
T
Piotr Krygier 4fcda01ba2 Add texture handler
Added functionality to load images as textures and bind them to meshes.
2023-10-02 13:21:17 +02:00

20 lines
510 B
C

#ifndef RSE_FILE_UTILS_H
#define RSE_FILE_UTILS_H
#include <stddef.h>
/**
* @brief Reads file and puts its content into char buffer. If NULL is provided as buffer, than just bytes_count
* is set
*
* @param file_path Path to file
* @param bytes_count Returned bytes count
* @param buffer Returned filled buffer
*/
void rse_read_file(const char* file_path, long* bytes_count, char* buffer);
void rse_write_to_file(const char* file_name, long bytes_count, char* buffer);
#endif /* RSE_FILE_UTILS_H */