PDA

View Full Version : Custom Colour



Eckos
08-26-2008, 11:49 PM
I've created a custom colour class. And I have like

QVector<GColour> m_colours;

3 colour arrays in m_colours;

And glColorPointer(4, GL_UNSIGNED_BYTE, 0, &m_colour[0]);

and in my class I have

union
{
std::tr1::array<guint8, 4> data_;
struct
{
guint8 r_,g_,b_,a_;
};
};

But the colours don't show up right and are none of the colours I specified. I've tried every point to no available and I can't seem to get it to work.