Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

drawing sprites

This topic is 529 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

	void TimerFunction(int value)
{
 glutPostRedisplay();
 glutTimerFunc(1000, TimerFunction, 1);
}
	void drawScene() {
 glClear(GL_COLOR_BUFFER_BIT);
     drawScene_bug();
 TimerFunction(1);
 eraseScene_bug();
// drawScene_bug_two();
// eraseScene_bug_two();
	drawScene_ship();
	drawScene_bullet();
 glutSwapBuffers();
}
	

Share this post


Link to post
Share on other sites
Advertisement

sorry but the question is how do I draw a sprite and then wait for  a period of time and then draw another sprite over it.

Share this post


Link to post
Share on other sites
10 minutes ago, phil67rpg said:

sorry but the question is how do I draw a sprite and then wait for  a period of time and then draw another sprite over it.

Which part(s) of what you said are you having problems with?

1) Drawing the sprite.

2) Waiting for a period of time.

3) Drawing another sprite on top of it?

5 minutes ago, phil67rpg said:

also I want to erase the sprite after I draw it.

This was explained to you in a previous thread you made. Was the explanation not clear? If so, what was unclear about it?

Share this post


Link to post
Share on other sites
1 minute ago, phil67rpg said:

lactose I am having a problem with the wait period

Josh's reply covers that part.

Share this post


Link to post
Share on other sites
27 minutes ago, jpetrie said:

auto elapsed = timeStampNow - timeStampPrevious;

I get an error with the minus sign(-) no operand matches these operators

Share this post


Link to post
Share on other sites

This topic is 529 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!