Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

get_compiled_sprite(3alleg4) [debian man page]

get_compiled_sprite(3alleg4)					  Allegro manual				      get_compiled_sprite(3alleg4)

NAME
get_compiled_sprite - Creates a compiled sprite using a bitmap as source. Allegro game programming library. SYNOPSIS
#include <allegro.h> COMPILED_SPRITE *get_compiled_sprite(BITMAP *bitmap, int planar); DESCRIPTION
Creates a compiled sprite based on the specified bitmap (which must be a memory bitmap). Compiled sprites are device-dependent, so you have to specify whether to compile it into a linear or planar format. Pass FALSE as the second parameter if you are going to be drawing it onto memory bitmaps or mode 13h and SVGA screen bitmaps, and pass TRUE if you are going to draw it onto mode-X or Xtended mode screen bitmaps. Example: COMPILED_SPRITE *cspr; BITMAP *bmp; ... /* Create compiled sprite from an existent bitmap. */ cspr = get_compiled_sprite(bmp, 0); if (!cspr) abort_on_error("Couldn't create compiled sprite!"); /* We don't need the bitmap any more.*/ destroy_bitmap(bmp); /* Use the compiled sprite. */ ... /* Destroy it when we don't need it any more. */ destroy_compiled_sprite(cspr); Returns a pointer to the created compiled sprite, or NULL if the compiled sprite could not be created. Remember to free this compiled sprite later to avoid memory leaks. SEE ALSO
draw_compiled_sprite(3alleg4), destroy_compiled_sprite(3alleg4) Allegro version 4.4.2 get_compiled_sprite(3alleg4)

Check Out this Related Man Page

get_compiled_sprite(3alleg4)                                      Allegro manual                                      get_compiled_sprite(3alleg4)

NAME
get_compiled_sprite - Creates a compiled sprite using a bitmap as source. Allegro game programming library. SYNOPSIS
#include <allegro.h> COMPILED_SPRITE *get_compiled_sprite(BITMAP *bitmap, int planar); DESCRIPTION
Creates a compiled sprite based on the specified bitmap (which must be a memory bitmap). Compiled sprites are device-dependent, so you have to specify whether to compile it into a linear or planar format. Pass FALSE as the second parameter if you are going to be drawing it onto memory bitmaps or mode 13h and SVGA screen bitmaps, and pass TRUE if you are going to draw it onto mode-X or Xtended mode screen bitmaps. Example: COMPILED_SPRITE *cspr; BITMAP *bmp; ... /* Create compiled sprite from an existent bitmap. */ cspr = get_compiled_sprite(bmp, 0); if (!cspr) abort_on_error("Couldn't create compiled sprite!"); /* We don't need the bitmap any more.*/ destroy_bitmap(bmp); /* Use the compiled sprite. */ ... /* Destroy it when we don't need it any more. */ destroy_compiled_sprite(cspr); Returns a pointer to the created compiled sprite, or NULL if the compiled sprite could not be created. Remember to free this compiled sprite later to avoid memory leaks. SEE ALSO
draw_compiled_sprite(3alleg4), destroy_compiled_sprite(3alleg4) Allegro version 4.4.2 get_compiled_sprite(3alleg4)
Man Page

13 More Discussions You Might Find Interesting

1. Programming

c programming on vi

i am new in linux environment .I have used vi editor of Unix to get a programe compiled through "gcc ".kindly give me the options to get a program compiled & executed written in c on vi editor. I want the command to compile a file and the command to get that compiled file executed with any... (2 Replies)
Discussion started by: Rajraius
2 Replies

2. Programming

Problem executing C files in Linux

Hi there I compiled a simple .c file using the cc command, the file was compiled successfully and executable file (a.out) was generated. But When I executed the a.out file it gave me: bash: a.out: command not found Can anybody tell me what's the problem. Note that I'm using: Red Hat... (3 Replies)
Discussion started by: HAS
3 Replies

3. UNIX for Advanced & Expert Users

Compiled Files

I am using SCO Unix with a Progress Database. There are files that 'pop up' and cause problems. I need to be able to read these files but they are compiled and I don't know how to un-compile them. Is there some kind of software / shareware that I can download to view these files? Is... (2 Replies)
Discussion started by: tripp4337
2 Replies

4. Programming

How to use a .exe with a compiled program.

I am confused about how to use a .exe file in unix along with a compiled C++ program. I've been using emacs and I compiled with g++, but I have no idea how that relates to use with a .exe. (1 Reply)
Discussion started by: adamsy
1 Replies

5. Programming

Fatal Error

Hi, I just pulled out my code from source control, then I compiled, the compilation is successful at that time. Then I modified one of the source file, Then I compiled, I got the following error ld: fatal: Symbol referencing errors. No output written to ../../CM/bin/cato Before... (1 Reply)
Discussion started by: sarwan
1 Replies

6. Solaris

link a library compiled with SC 5.9 on a machine with SC5.8

Is it possible to link a library compiled on Solaris 10 with SunCompiler 5.9 in a project compiled with SC 5.8 ? Is there an option to "downgrade" the SC5.9 => SC5.8 to be sure of the compatibility ? Thanks 4 your help (2 Replies)
Discussion started by: sarastus
2 Replies

7. Programming

undefined reference to 'function'

Hi, i want to compile a code where fortran calls c . First I compiled C module ,it has pass by gcc. However, after generating .o file. I compiled C and fortran files together by intel fortran and it failed " undefined reference to 'vicerror'". vicerror is a function. I do not know why. (1 Reply)
Discussion started by: austinhsu
1 Replies

8. Programming

after gmake size of library gets changes

Hello, I have source code of c. When i compiled it using gmake my library gets created on AIX. But without changing the source code, if i try to do gmake each and every time then every time size of created library gets changed. Can anyone tell me why it's happening? Am i missing something in my... (3 Replies)
Discussion started by: mustus
3 Replies

9. Programming

Fortran 77 and gfortran

Hi! I have a program in fortran77. This program was compiled with pgf90, but now, I need compiled it with gfortran. I show a bit of code. program hello PARAMETER(a=100) integer a write(*,*)'value ', a end program hello What's the problem? Thanks (2 Replies)
Discussion started by: kekaes
2 Replies

10. Programming

std::cout and gfortran print*, don't output to the screen

I am not sure where to post this other than here. I am trying to figure out why an app gives different output when compiled under Ubuntu 10.10 and CentOS 5.5. I am pretty sure that the issue is that the Cent version has gcc 4.1 installed, while Ubuntu has gcc 4.4. I am trying to print from some... (20 Replies)
Discussion started by: LMHmedchem
20 Replies

11. UNIX for Advanced & Expert Users

Compiling BBCP to hp-ux

hello, does anyone already compiled BBCP to HP UX? (0 Replies)
Discussion started by: SystemAddict
0 Replies

12. Programming

Help with gcc programming

I need a lot of help with c programming. I have the source code. Running configure, I got one error message about a missing library. I downloaded and successfully compiled it in another dir. Do I throw all the new files into my source dir and run configure again ? Thanks. (3 Replies)
Discussion started by: drew77
3 Replies

13. Programming

Integer size with different compile

Hi All, I am having two executable one is a 32 bit compiled version and other is 64 bit compiled version. I was in assumption the size of integer for 32 bit will be 2 ^32 and size of 64 bit compiled version will be 2 ^ 64. But in my case both are showing 2 ^32 I mean I am not able to go... (2 Replies)
Discussion started by: arunkumar_mca
2 Replies