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
draw_compiled_sprite(3alleg4) Allegro manual draw_compiled_sprite(3alleg4)NAME
draw_compiled_sprite - Draws a compiled sprite. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void draw_compiled_sprite(BITMAP *bmp, const COMPILED_SPRITE *sprite, int x, int y);
DESCRIPTION
Draws a compiled sprite onto a bitmap at the specified position. The sprite must have been compiled for the correct type of bitmap (linear
or planar). This function does not support clipping.
Hint: if not being able to clip compiled sprites is a problem, a neat trick is to set up a work surface (memory bitmap, mode-X virtual
screen, or whatever) a bit bigger than you really need, and use the middle of it as your screen. That way you can draw slightly off the
edge without any trouble...
SEE ALSO get_compiled_sprite(3alleg4), draw_sprite(3alleg4), draw_rle_sprite(3alleg4), bitmap_mask_color(3alleg4)Allegro version 4.4.2 draw_compiled_sprite(3alleg4)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)