D:/WorkAround/prequengine/trunk/src/hqrdepack.h File Reference

This file contains High Quality Resource (HQR) decompress routines. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int hqr_get_entry (unsigned char *ptr, char *filename, int index)
int hqr_entry_size (char *filename, int index)
int hqr_num_entries (char *filename)


Detailed Description

This file contains High Quality Resource (HQR) decompress routines.

Prequengine: a Little Big Adventure engine

Copyright (C) 2008 Prequengine team
Copyright (C) 2002-2007 The TwinEngine team

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Definition in file hqrdepack.h.


Function Documentation

int hqr_entry_size ( char *  filename,
int  index 
)

Get a HQR entry pointer

Parameters:
filename HQR file name
index entry index to extract
Returns:
entry real size
Get a HQR entry pointer
Parameters:
filename HQR file name
index entry index to extract
Returns:
entry real size

Definition at line 192 of file hqrdepack.c.

References frclose(), fropen(), frread(), and frseek().

Referenced by init_celling_grid(), init_dialogue_bank(), init_grid(), init_resources(), init_scene(), load_grid_bricks(), play_fla_sample(), play_midi_music(), and preload_sprites().

int hqr_get_entry ( unsigned char *  ptr,
char *  filename,
int  index 
)

Get a HQR entry pointer

Parameters:
ptr pointer to save the entry
filename HQR file name
index entry index to extract
Returns:
entry real size

Definition at line 127 of file hqrdepack.c.

References frclose(), fropen(), frread(), frseek(), and hqr_decompress_entry().

Referenced by adeline_logo(), init_celling_grid(), init_dialogue_bank(), init_grid(), init_resources(), init_scene(), load_grid_bricks(), load_image(), load_image_delay(), load_menu_image(), main_menu(), play_fla_sample(), play_midi_music(), and preload_sprites().

int hqr_num_entries ( char *  filename  ) 

Get a HQR total number of entries

Parameters:
filename HQR file name
Returns:
total number of entries

Definition at line 231 of file hqrdepack.c.

References fropen(), and frread().

Referenced by preload_sprites().


Generated on Thu Sep 18 14:14:48 2008 for Prequengine by  doxygen 1.5.5