Programming 2D Games

The official forum for "Programming 2D Games" the book by: Charles Kelly

It is currently Sun Sep 22, 2019 4:41 am

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Sprite blitting
PostPosted: Sat Oct 12, 2013 4:55 pm 
Offline

Joined: Sat Oct 12, 2013 4:48 pm
Posts: 44
Hi mr Kelly,

first i have to say your book has helped me a lot with my portfolio project so thanks.

i was wondering if you could explain us more about sprite blitting ( what it does, how to achieve it, when t use it ect...) its just that my portfolio project requires to demonstrate sprite blitting but i have no idea on how to do this. The course i am studying is based on directdraw but i think this is so outdated.

what do you think?


Top
 Profile  
Reply with quote  
 Post subject: Re: Sprite blitting
PostPosted: Sun Oct 13, 2013 6:54 pm 
Offline
Site Admin
User avatar

Joined: Sat Jan 28, 2012 4:36 pm
Posts: 553
I'm very happy that you like my book.

Blitting refers to the transfer of images from one area of memory to another. Sprite blitting typically referred to transferring one image from a larger sprite sheet. That technique is first introduced in chapter 5.

_________________
Professor Kelly


Top
 Profile  
Reply with quote  
 Post subject: Re: Sprite blitting
PostPosted: Sun Oct 19, 2014 7:38 pm 
Offline

Joined: Sat Oct 12, 2013 4:48 pm
Posts: 44
Is
sprite->Draw(texture, rect,NULL,NULL, color ) the piece of code that does the blitting?

Can you elaborate more on the subject?


Top
 Profile  
Reply with quote  
 Post subject: Re: Sprite blitting
PostPosted: Fri Oct 24, 2014 12:48 pm 
Offline
Site Admin
User avatar

Joined: Sat Jan 28, 2012 4:36 pm
Posts: 553
Yes, that is the code the does the blitting. sprite->Draw is a DirectX method. This page contains more details:
http://msdn.microsoft.com/en-us/library ... 51(v=vs.85).aspx

_________________
Professor Kelly


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group