Blitting, wtf?

Started by
7 comments, last by Anton LaVey 24 years, 3 months ago
Every tutorial I have read on this site so far (and it is quite a lot) have said "I won''t discuss blitting here because it is so obvious, bla bla bla." I need to know what it is and whether there is a tutorial on how to blit things to the screen... Please? Thank you in advance... Anton LaVey
Advertisement
Blitting is most commonly used to copy a bitmap (or surface in directx) to the screen or backbuffer.

Take a look in the directx sdk help files for some more info.
I haven''t yet got the DirectX SDK because it is massive (75+MB?) and I have a 28.8Kbps modem :(
I would buy it if it didn''t take 3-4 weeks and if I knew Microsoft weren''t getting my hard-earned money :P

Anton LaVey
If I am not mistaken, blit is short for bit block transfer right?

Best regards,
Sherman
_________________ Best regards, Sherman Chin Director Sherman3D (Malaysia) Sdn Bhd www.Sherman3D.com www.AlphaKimori.com
It''s details like that which make my life worth living...
Thank you Sherman, that is a great help :)

Anton LaVey
anton, if you look closely on the SDK pages, you will find that there is an option to download only the docs and libraries, with out the samples. this ways it''s only about 6 megs

-Justin
-Justin Whitejowhite@bigfoot.comAIM: Just6979www.bigfoot.com/~jowhite"To infinity and beyond!" -Buzz Lightyear"I can only show you the door. You must choose to go through it." -Morpheus"Your mind is like a parachute. It works best when open." -Anonymous"I know Kung-fu." -Neo"Ignorance is bliss" -Cihper"My name...is Neo!" -Neo
well, the concept behind blitting is copying an image to you video memory for monitor display
i dont guarentee this will work (i just wrote it off the top of my head)
a simple blit could be the following -- and this is about as slow as i can possibly make it:

void Blit(char* image, char* screen, int imgwidth, int imgheight, int scwidth, int x, int y)
{
screen += scwidth*y+x;
for(int i=0;i {
for(int j=0;j screen[j] = imgage[j];
screen += scwidth-imgwidth;
image += imgwidth;
}
}
-PoesRaven
Blitting is used with Blt and BltFast. They are just single functions
and the concept is quite simple. Read the DirectX docs when they come
in the mail.
Ack... Blitting was a viable term before DirectDraw...

Blitting is simply transfering a section of data, usually pixel information, from one section of memory to another.

Blt and Bltfast are blitters, as well as functions you can make on your own. The reason most people skip them in articles are that they are so common, and everywhere you look, you should find one or another.

Blitters are like a$$holes - everybody has one - blah blah blah....

Jim Adams

This topic is closed to new replies.

Advertisement