mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 06:52:20 +00:00
[CHG] Small doc improvement
This commit is contained in:
parent
54be46f4e4
commit
67288344d7
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,9 @@ int GRRLIB_LoadFile(const char* filename, unsigned char* *data) {
|
||||||
FILE *fd;
|
FILE *fd;
|
||||||
|
|
||||||
// Open the file
|
// Open the file
|
||||||
if ( !(fd = fopen(filename, "rb")) ) return -1;
|
if ( !(fd = fopen(filename, "rb")) ) {
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
// Get file length
|
// Get file length
|
||||||
fseek(fd, 0, SEEK_END);
|
fseek(fd, 0, SEEK_END);
|
||||||
|
@ -71,6 +73,7 @@ int GRRLIB_LoadFile(const char* filename, unsigned char* *data) {
|
||||||
* Load a texture from a file.
|
* Load a texture from a file.
|
||||||
* @param filename The JPEG, PNG or Bitmap filename to load.
|
* @param filename The JPEG, PNG or Bitmap filename to load.
|
||||||
* @return A GRRLIB_texImg structure filled with image information.
|
* @return A GRRLIB_texImg structure filled with image information.
|
||||||
|
* If an error occurs NULL will be returned.
|
||||||
*/
|
*/
|
||||||
GRRLIB_texImg* GRRLIB_LoadTextureFromFile(const char *filename) {
|
GRRLIB_texImg* GRRLIB_LoadTextureFromFile(const char *filename) {
|
||||||
GRRLIB_texImg *tex;
|
GRRLIB_texImg *tex;
|
||||||
|
|
Loading…
Reference in a new issue