This is likely a very simple question, but I'm going to ask anyway.
Looking at early OpenGL examples, there is a glClear() command to clear the screen before being redrawn. This is missing from the nds 3D examples. Is it safe to assume, that the regular hardware clearing of the screen before redrawing is just happening automatically?
Starting to Learn 3D, first question...
Re: Starting to Learn 3D, first question...
well, the 2d hardware redraws the screen between vblanks, so I asume the 3d hardware does it also...
I suggest you try it out.
I suggest you try it out.
Re: Starting to Learn 3D, first question...
I hear ya, and that is my assumption (since it does appear to be working that way) but I can't help but want to try and get some clarification from an "expert." I don't ever take anything I learn in programming for granted.
Re: Starting to Learn 3D, first question...
OpenGL has glClear() because it has a full-screen buffer that gets rendered to the screen. On the NDS in normal situations, there is no full-screen buffer that holds the final render, but there is an internal 48-scanline ring buffer that starts filling during the VBlank (scanline 214), and continues to be filled and used during the screen refresh (which can be finished as early as scanline 144). Because the ring buffer continues to be rewritten, there is no need for glClear() as the data it uses is never kept in between frames.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest