![]() ![]() There is nothing wrong with letting java handle painting for you, but it is not the only way to develop an application.Īctive rendering (Figure 2) is just the opposite. These can come from the code itself, but may also come from the operating system in response to events such as resizing a window or clicking on aįigure 1 shows an example of Passive rendering. The code is called in response to repaint requests. The drawing code is placed in a paint method and ![]() Anyone who has ever written a swing application has experienced passive rendering. There are two different kinds of rendering: active and passive. This approach resembles traditional game programming, allowing more time toīe spent developing a game and less time spent worrying about which paint method to override. Active rendering is a style of programming that allows Java code to handle all of the rendering in a simple while loop. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |