Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fixup_datafile(3alleg4) [linux man page]

fixup_datafile(3alleg4) 					  Allegro manual					   fixup_datafile(3alleg4)

NAME
fixup_datafile - Fixes truecolor images in compiled datafiles. Allegro game programming library. SYNOPSIS
#include <allegro.h> void fixup_datafile(DATAFILE *data); DESCRIPTION
If you are using compiled datafiles (produced by the dat2s and dat2c utilities) on a platform that doesn't support constructors (currently any non GCC-based platform), or if the datafiles contain truecolor images, you must call this function once after your set the video mode that you will be using. This will ensure the datafiles are properly initialised in the first case and convert the color values into the appropriate format in the second case. It handles flipping between RGB and BGR formats, and converting between different color depths when- ever that can be done without changing the size of the image (ie. changing 15<->16-bit hicolor for both bitmaps and RLE sprites, and 24<->32-bit truecolor for RLE sprites). Note that you can only call this once and expect it to work correctly, because after the call the DATAFILE you fixed up is permanently con- verted to whatever is the current component ordering for your screen mode. If you call fixup_datafile again, the function assumes you have a freshly loaded datafile. It cannot "undo" the previous conversion. If your program supports changing resolution and/or color depth during runtime, you have two choices: either call fixup_datafile() just once and hope that the component ordering and bit depth doesn't change when the screen mode changes (unlikely). Or, you can reload your datafiles when the screen mode changes. SEE ALSO
set_gfx_mode(3alleg4), set_color_conversion(3alleg4) Allegro version 4.4.2 fixup_datafile(3alleg4)

Check Out this Related Man Page

fixup_datafile(3alleg4) 					  Allegro manual					   fixup_datafile(3alleg4)

NAME
fixup_datafile - Fixes truecolor images in compiled datafiles. Allegro game programming library. SYNOPSIS
#include <allegro.h> void fixup_datafile(DATAFILE *data); DESCRIPTION
If you are using compiled datafiles (produced by the dat2s and dat2c utilities) on a platform that doesn't support constructors (currently any non GCC-based platform), or if the datafiles contain truecolor images, you must call this function once after your set the video mode that you will be using. This will ensure the datafiles are properly initialised in the first case and convert the color values into the appropriate format in the second case. It handles flipping between RGB and BGR formats, and converting between different color depths when- ever that can be done without changing the size of the image (ie. changing 15<->16-bit hicolor for both bitmaps and RLE sprites, and 24<->32-bit truecolor for RLE sprites). Note that you can only call this once and expect it to work correctly, because after the call the DATAFILE you fixed up is permanently con- verted to whatever is the current component ordering for your screen mode. If you call fixup_datafile again, the function assumes you have a freshly loaded datafile. It cannot "undo" the previous conversion. If your program supports changing resolution and/or color depth during runtime, you have two choices: either call fixup_datafile() just once and hope that the component ordering and bit depth doesn't change when the screen mode changes (unlikely). Or, you can reload your datafiles when the screen mode changes. SEE ALSO
set_gfx_mode(3alleg4), set_color_conversion(3alleg4) Allegro version 4.4.2 fixup_datafile(3alleg4)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script - How to automatically start another process when the previous process ends?

Hi all, I'm doing automation task for my team and I just started to learn unix scripting so please shed some light on how to do this: 1) I have 2 sets of datafiles - datafile A and B. These datafiles must be loaded subsequently and cannot be loaded concurrently. 2) So I loaded datafile A... (10 Replies)
Discussion started by: luna_soleil
10 Replies

2. Shell Programming and Scripting

mmin not working in ksh

We have created a unix shell script to read a datafiles from specific input directory in Unix. Users will be copying datafiles to the same input unix directoty. During Testing we observed Unix Shell Script also read the incomplete datafiles which is still copying by the users. As per requirement... (1 Reply)
Discussion started by: Kumari Reshma
1 Replies

3. Programming

C++ last bit of an image

Hi guys, I've been trying to find out what's wrong with the code, g++ doesn't prompt any error but it doesn't do what I want it to do, and after looking at it over and over I can't find anything wrong with it. The code its quite simple: I need to save the last bit of every position on the vector... (2 Replies)
Discussion started by: lamachejo
2 Replies

4. Red Hat

Release space to the disk

Hi Guys I am running Oracle Database and I have released about 200G from the datafiles but the space is not reflecting on the filesystem. These space was allocated to the datafiles and then I reduced the datatfiles but I can see these space on the O/S (i.e. the filesystem/mount point). ... (5 Replies)
Discussion started by: Phuti
5 Replies