Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Is animation typically redrawing or updating the entire window constantly?

 
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought only a character needs to be updated, not the background or any non-moving objects.

I thought about this after I removed the code that fills up the background in this program. The result was the image being shadowed, or the image the buffer replaced was never erased and left a trail of the image wherever the user dragged the mouse cursor.





 
Ranch Hand
Posts: 275
2
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
typically, yes.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
concidering even ordinary GUI components are constantly redrawn i would think so.
 
LOOK! OVER THERE! (yoink) your tiny ad is now my tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic