My first time posting code.....here's a try..
Code:
struct CUSTOMVERTEX
{
float x, y, z, rhw; // The transformed position for the vertex
DWORD color; // The vertex color
};
class shape1
{
private:
CUSTOMVERTEX line[] = //currently a line strip
{
{ 72.0, 0.0, 0.5, 1.0, 0xffff0000, },
{ 72.0, 24.0, 0.5, 1.0, 0xffff0000, },
{ 168.0, 24.0, 0.5, 1.0, 0xffff0000, },
{ 168.0, 0.0, 0.5, 1.0, 0xffff0000, },
{ 72.0, 0.0, 0.5, 1.0, 0xffff0000, },
};
public:
void memberfunctiongoeshere()
{
}
}; //endclass
Compiler error:
Code:
C:\Documents and Settings\Administrator\Desktop\adian\adian.cpp(70) : error C2059: syntax error : '{'
Note: I have tried taking the ; out, putting it back in, taking the comas out.....etc...etc....etc...