Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


Blitting, wtf?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
8 replies to this topic

#1 Anton LaVey   Members   -  Reputation: 122

Posted 03 January 2000 - 03:13 AM

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

Sponsor:

#2 ZomeonE   Members   -  Reputation: 122

Posted 03 January 2000 - 03:52 AM

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.

#3 Anton LaVey   Members   -  Reputation: 122

Posted 03 January 2000 - 03:55 AM

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

#4 sherman   Members   -  Reputation: 151

Posted 03 January 2000 - 06:35 AM

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

Best regards,
Sherman

#5 Anton LaVey   Members   -  Reputation: 122

Posted 03 January 2000 - 06:39 AM

It''s details like that which make my life worth living...
Thank you Sherman, that is a great help :)

Anton LaVey

#6 Just6979   Members   -  Reputation: 122

Posted 04 January 2000 - 07:13 PM

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

#7 PoesRaven   Members   -  Reputation: 122

Posted 07 January 2000 - 12:21 PM

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;
}
}

#8 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Posted 07 January 2000 - 12:47 PM

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.

#9 Jim Adams   Members   -  Reputation: 440

Posted 07 January 2000 - 06:46 PM

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






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS