Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

load_datafile(3alleg4) [linux man page]

load_datafile(3alleg4)						  Allegro manual					    load_datafile(3alleg4)

NAME
load_datafile - Loads a datafile into memory. Allegro game programming library. SYNOPSIS
#include <allegro.h> DATAFILE *load_datafile(const char *filename); DESCRIPTION
Loads a datafile into memory in one go. If the datafile has been encrypted, you must first call packfile_password() to set the appropriate key. If the datafile contains truecolor graphics, you must set the video mode or call set_color_conversion() before loading it. Example: /* Load the resources for our game. */ DATAFILE *dat = load_datafile("game.dat"); if (!dat) abort_on_error("Couldn't load sound resources!"); /* Use resources. */ ... /* Destroy them when we don't need them any more. */ unload_datafile(dat); RETURN VALUE
Returns a pointer to the DATAFILE, or NULL on error. Remember to free this DATAFILE later to avoid memory leaks. SEE ALSO
load_datafile_callback(3alleg4), unload_datafile(3alleg4), load_datafile_object(3alleg4), set_color_conversion(3alleg4), fixup_datafile(3alleg4), packfile_password(3alleg4), find_datafile_object(3alleg4), register_datafile_object(3alleg4), excustom(3alleg4), exdata(3alleg4), exexedat(3alleg4), exgui(3alleg4), exsprite(3alleg4), exunicod(3alleg4) Allegro version 4.4.2 load_datafile(3alleg4)

Check Out this Related Man Page

exzbuf(3alleg4) 						  Allegro manual						   exzbuf(3alleg4)

NAME
exzbuf - Z-buffered polygons demo. Allegro game programming library. SYNOPSIS
#include <allegro.h> Example exzbuf DESCRIPTION
This program demonstrates how to use Z-buffered polygons and floating point 3D math routines. It also provides a simple way to compute fps (frames per second) using a timer. After selecting a screen resolution through the standard GUI dialog, the example shows two 3D cubes rotating and intersecting each other. Rather than having full polygons incorrectly overlap other polygons due to per-polygon sorting, each pixel is drawn at the correct depth. SEE ALSO
BITMAP(3alleg4), END_OF_FUNCTION(3alleg4), END_OF_MAIN(3alleg4), LOCK_FUNCTION(3alleg4), LOCK_VARIABLE(3alleg4), MATRIX_f(3alleg4), PAL- ETTE(3alleg4), POLYTYPE_GCOL(3alleg4), SCREEN_H(3alleg4), SCREEN_W(3alleg4), V3D_f(3alleg4), ZBUFFER(3alleg4), allegro_error(3alleg4), allegro_exit(3alleg4), allegro_init(3alleg4), allegro_message(3alleg4), apply_matrix_f(3alleg4), bitmap_color_depth(3alleg4), blit(3alleg4), clear_bitmap(3alleg4), clear_zbuffer(3alleg4), create_bitmap(3alleg4), create_zbuffer(3alleg4), desktop_palette(3alleg4), destroy_bitmap(3alleg4), destroy_zbuffer(3alleg4), font(3alleg4), get_transformation_matrix_f(3alleg4), gfx_mode_select_ex(3alleg4), install_int(3alleg4), install_keyboard(3alleg4), install_mouse(3alleg4), install_timer(3alleg4), keypressed(3alleg4), pal- ette_color(3alleg4), persp_project_f(3alleg4), polygon_z_normal_f(3alleg4), quad3d_f(3alleg4), readkey(3alleg4), screen(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4), set_palette(3alleg4), set_palette_range(3alleg4), set_projection_viewport(3alleg4), set_zbuffer(3alleg4), textprintf_ex(3alleg4), vsync(3alleg4) Allegro version 4.4.2 exzbuf(3alleg4)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

gunzip error

While trying to gunzip afile I get the following error message ls -l UK_US_02310.dat.gz -rwxrwxrwx 1 imis abint 348854527 Jan 8 00:17 UK_US_02310.dat.gz gunzip UK_US_02310.dat.gz gunzip: UK_US_02310.dat.gz: invalid compressed data--format violated I can gzcat the file and pipe to... (3 Replies)
Discussion started by: mccoubreyr
3 Replies

2. Shell Programming and Scripting

replace one section in a datafile

Hi: First, this is not a homework problem. I just need enough of a hint to get this going... My datafile (dataf.in) is made up of 10 sections. Each section begins with & and with && So it looks like this:------------------------------------- &section1 ...etc... && &section2 ...etc...... (4 Replies)
Discussion started by: Paprika
4 Replies

3. Shell Programming and Scripting

Matching '/' in SED

Hello, I have a list of filename is a file called list.dat. The filenames appear in the list.dat file as this: ./set.class ./one.class I want to delete these file names from the list file using sed. To test I was trying to match just the set.class. Eventually I want to delete all... (5 Replies)
Discussion started by: bestbuyernc
5 Replies

4. UNIX for Dummies Questions & Answers

Question on gzip

Hello all I have about 30 small datafiles . sample1.dat sample2.dat ... .. sample30.dat when I issue gzip *.dat , I end up with the following sample1.gz sample2.gz ... ... sample30.gz My goal is to gzip all 30 files into one single file (ex:data1-30.gz) as we do on... (4 Replies)
Discussion started by: luft
4 Replies

5. UNIX for Dummies Questions & Answers

Split-Email-removing files

Friends, I have a datafile that have unknown a number of CHARACTERS. if the datafile have more than 1 character and less than 20 email me the file rm datafile if the datafile have more than 20 characters split the datafile into 20 characters in each file email datafileaa email... (4 Replies)
Discussion started by: bobo
4 Replies

6. UNIX for Dummies Questions & Answers

Let statement in ksh HELP

I have: datafile contains 1234567890 >wc -c datafile | awk '{print $1}' >11 The program #!/bin/ksh let n = (wc -c datafile | awk '{print $1}') echo $n I expect n to be 11 but it gives error message. What is wrong with this statement? Thanks! (3 Replies)
Discussion started by: bobo
3 Replies

7. Shell Programming and Scripting

Combine a datafile with Master datafile, emergent!

Hi guys, my supervisor has asked me to solve the problem in 7 days, I've taken 3 days to think about it but couldn't figure out any idea. Please give me some thoughts with the following problem, I have index.database that has only index date: 1994 1995 1996 1997 1998 1999 I have... (6 Replies)
Discussion started by: onthetopo
6 Replies

8. UNIX for Dummies Questions & Answers

awk error

Hi all, i have the files in the below sequence: fancy_LANG_STD_AU_2008-03-05.dat fancy_LANG_STD_HK_2008-03-06.dat fancy_LANG_STD_NZ_2008-03-05.dat fancy_STD_AU_2008-03-05.dat fancy_STD_HK_2008-03-06.dat fancy_STD_NZ_2008-03-05.dat i am trying to sort them like below: ... (3 Replies)
Discussion started by: gyankr
3 Replies

9. Shell Programming and Scripting

Matching by key fields

I have a file (key.dat) that contains two columns: AA|1234| BB|567| CC|8910| I have another file (extract.dat) that contains some data: SD|458|John|Smith| AA|3345|Frank|Williams| AA|1234|Bill|Garner| BD|0098|Yu|Lin| BB|567|Gail|Hansen| CC|8910|Ken|Nielsen| I want to compare the... (5 Replies)
Discussion started by: ChicagoBlues
5 Replies

10. Shell Programming and Scripting

Remove timestamp from multiple filename

could you pls help me out in PERL i have a requirement like a.dat.<timestamp> b.dat.<timestamp> c.dat.<timestamp> can you pls help me to rename/remove timestamp a.dat b.dat c.dat Is there any way to remove timestamp alone Thanks (3 Replies)
Discussion started by: vaas
3 Replies

11. Shell Programming and Scripting

How to remove duplicates from the .dat file

All, I have a file 1181CUSTOMER-L061411_003500.dat.Z having duplicate records in it. bash-2.05$ zcat 1181CUSTOMER-L061411_003500.dat.Z|grep "90876251S" 90876251S|ABG, AN ADAYANA COMPANY|3550 DEPAUW BLVD|||US|IN|INDIANAPOLIS||DAL|46268||||||GEN|||||||USD|||ABG, AN ADAYANA... (3 Replies)
Discussion started by: Oracle_User
3 Replies

12. Shell Programming and Scripting

Rename the files by using code

Hi friends I have a question, Assume that I have 3 files' named as file356.dat, file358.dat, file1521.dat how can I rename them as file-356, file-358, file-1521 Thanks (12 Replies)
Discussion started by: rpf
12 Replies

13. Shell Programming and Scripting

Unix script for removing the footer from the datafile while loading into externaltable using sqlload

Hi, Can you please tell me the Unix shell script for removing footer from the datafile while loading into external table using sqlloader we will be skipping the header like this while creating the table organization external ( type oracle_loader default directory directoryname... (5 Replies)
Discussion started by: srikanth_sagi
5 Replies

14. UNIX for Dummies Questions & Answers

Deleting records from .dat file

Hi, I need to delete one row from a .dat file. error processing column PCT_USED in row 1053295 for datafile /exp/stats/ts_stats.dat ORA-01722: invalid number This is used to load records using sql loader. Please let me know the procedure to do it. Regards, VN (3 Replies)
Discussion started by: narayanv
3 Replies

15. Shell Programming and Scripting

sed cannot execute [Argument list too long]

Hi All, This question has been asked many times, but my problem is slightly different. In my shell script i am connecting to oracle database and loading the results to .dat file. This .dat file is later used to create to .xls file Some times the size of .dat file becomes more than 120000... (8 Replies)
Discussion started by: galaxy_rocky
8 Replies