Curiously, when I do include these
Code:
#include "Vector3D.h"
#include "Vector.h"
#include <vector>
they aren't found, but for some reason, The Vector3 data type is being undeclared, whats the deal?
Code:
#ifndef GL_RENDERER_H
#define GL_RENDERER_H
#include <vector>
using namespace std;
struct BasicQuad
{
Vector3 P1, P2, P3, P4;
int Texture;//Index into gpTextureManager
};
std::vector<BasicQuad*> mBasicQuads;
class GLRenderer
{
public:
GLRenderer()
{
}
void AddBasicQuadToRenderer(float P1X,float P1Y,float P1Z,
float P2X,float P2Y,float P2Z,
float P3X,float P3Y,float P3Z,
float P4X,float P4Y,float P4Z,
int Texture)
{
BasicQuad *pData = new BasicQuad;
pData->P1 = Vector3(P1X,P1Y,P1Z);
pData->P2 = Vector3(P2X,P2Y,P2Z);
pData->P3 = Vector3(P3X,P3Y,P3Z);
pData->P4 = Vector3(P4X,P4Y,P4Z);
pData->Texture = Texture;
mBasicQuads.push_back(pData);
}
};
#endif