CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of libnds
C++
#include <nds.h>
 
// Explanation:
// The following code shows the problem. There are two allocations each yielding
// different adresses. One memory location is filled with red pixels, the other
// is filled with blue pixels. They are then rendered, however you will see two
// red sprites instead of a red and a blue. The reason is that the second
// allocation is not aligned to the boundaries implied by
// SpriteMapping_Bmp_1d_128 meaning that when the oam stores the memory adresses
// as an offset based on the boundary size, both offsets are truncated to the
by Matt Calabrese   January 17, 2010 @ 11:46pm
233 Views
1 comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate