directx with d

ElfQT elf_qt at _deletethis_yahoo.com
Sat Feb 9 19:50:06 PST 2008


There is a problem - difference - between dmdc1.0124 AND default phobos versus "tango-0.99.4-bin-win32-dmd.1.024".

See the code below:

// A structure for our custom vertex type
struct CUSTOMVERTEX
{
    FLOAT x, y, z, rhw; // The transformed position for the vertex
    DWORD color;        // The vertex color
};

// Initialize three vertices for rendering a triangle
static CUSTOMVERTEX[3] vertices =
[
	{ 150.0f,  50.0f, 0.5f, 1.0f, 0xffff0000, }, // x, y, z, rhw, color
	{ 250.0f, 250.0f, 0.5f, 1.0f, 0xff00ff00, },
	{  50.0f, 250.0f, 0.5f, 1.0f, 0xff00ffff, },
];

int a = vertices.sizeof;

a is 120 with phobos, 60 with tango.


Some related question: is it possible for tango and phobos to live side by side, also edit and debug side by side? (Something like an automated test that is capable to compare phobos vs tango build?) It isn't simple to find a difference like this one.

Or is this difference intentional to begin with?

ElfQT




More information about the Digitalmars-d mailing list