Shamino

10-23-2005, 05:41 PM

I tried using the vertex buffer to speed up my program a bit, but the problem is my video card doesnt support vertex buffer objects!!!

I've gotten this far with a software Vertex Buffer......

Heres the Code

</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">class Vector3

{

float x,y,z;

public:

Vector3(const Vector3 &v)

{

x=v.x;

y=v.y;

z=v.z;

}

Vector3(void):x(0.0f),y(0.0f),z(0.0f) {}

Vector3(float vx,float vy,float vz):x(vx),y(vy),z(vz) {}

Vector3 &operator = (const Vector3 &v)

{

x=v.x;

y=v.y;

z=v.z;

return *this;

}

bool operator ==(const Vector3 &v) const

{

return x==v.x && y==v.y && z==v.z;

}

bool operator !=(const Vector3 &v) const

{

return x!=v.x

I've gotten this far with a software Vertex Buffer......

Heres the Code

</font><blockquote><font size="1" face="Verdana, Arial">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">class Vector3

{

float x,y,z;

public:

Vector3(const Vector3 &v)

{

x=v.x;

y=v.y;

z=v.z;

}

Vector3(void):x(0.0f),y(0.0f),z(0.0f) {}

Vector3(float vx,float vy,float vz):x(vx),y(vy),z(vz) {}

Vector3 &operator = (const Vector3 &v)

{

x=v.x;

y=v.y;

z=v.z;

return *this;

}

bool operator ==(const Vector3 &v) const

{

return x==v.x && y==v.y && z==v.z;

}

bool operator !=(const Vector3 &v) const

{

return x!=v.x