Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

draw_compiled_sprite(3alleg4) [suse 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)

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

11 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. Programming

a small problem

hey there i kinda have a small/big problem. i have created a 'small' version of a shell that only accepts ls comamnds. my problem is that when i compiled the program and got it to work, i deleted the .c file from which the shell was created. but now, i would like to do some more work on the... (2 Replies)
Discussion started by: mile1982
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

regarding neat

hi everyone happy new year to all i got a problem terminal->neat it will open Network Configuration window in this 2 buttons Activate and Deactivate are there how can i use these buttons in my program am doing the same example am taking two buttons named as same how can i do... (0 Replies)
Discussion started by: ramesh.jella
0 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

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

8. 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

9. Programming

"execution problem with perl"

hi everyone, before stating my problem , i just want to say thanks in advance for the time and trouble taken:-) i am an newbie to perl programming, the problem is a text file needed to be parsed, i have looked over regular expressions and string matching but coudnt helped out.. the... (4 Replies)
Discussion started by: raghuraipur
4 Replies

10. 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

11. 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