gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > example display list

#43283 - delfare - Sat May 21, 2005 3:05 pm

When I compile the example : http://www.drunkencoders.com/examples/DS/Display_List.zip
It doesn't compile.
what do I have to change to make it work?
_________________
If I speak badly, it's because I speak french and I am 15

PA 3d tutorial : http://delfare.pizz.biz

#43286 - tepples - Sat May 21, 2005 3:57 pm

"It doesn't compile."

Please post the error message.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#43307 - delfare - Sat May 21, 2005 9:05 pm

error : 'FIFO_COMMAND_PACK' was not declared in this scope
error : 'VERTEX_PACK' was not declared in this scope
_________________
If I speak badly, it's because I speak french and I am 15

PA 3d tutorial : http://delfare.pizz.biz

#43359 - Mollusk - Sun May 22, 2005 7:35 pm

Do you have the latest version of ndslib ?

#43365 - delfare - Sun May 22, 2005 8:04 pm

no, I haven't got the last version of ndslib because there is a bug with the last version.
_________________
If I speak badly, it's because I speak french and I am 15

PA 3d tutorial : http://delfare.pizz.biz

#43374 - mike260 - Sun May 22, 2005 9:02 pm

delfare wrote:
no, I haven't got the last version of ndslib because there is a bug with the last version.


The defined you need are in the latest ndslib, but you could just paste them into the top of the source:

#define VERTEX_PACK(x,y) (((y) << 16) | ((x) & 0xFFFF))

#define FIFO_COMMAND_PACK(c1,c2,c3,c4) (((c4) << 24) | ((c3) << 16) | ((c2) << 8) | (c1))