Thread: What headers am I missing? Where do I get them?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Absent Minded Programmer
    Join Date
    May 2005
    Posts
    968

    What headers am I missing? Where do I get them?

    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
    Last edited by Shamino; 11-23-2005 at 10:39 AM.
    Sometimes I forget what I am doing when I enter a room, actually, quite often.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Errors including <windows.h>
    By jw232 in forum Windows Programming
    Replies: 4
    Last Post: 07-29-2008, 01:29 PM
  2. failure to import external C libraries in C++ project
    By nocturna_gr in forum C++ Programming
    Replies: 3
    Last Post: 12-02-2007, 03:49 PM
  3. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  4. ras.h errors
    By Trent_Easton in forum Windows Programming
    Replies: 8
    Last Post: 07-15-2005, 10:52 PM
  5. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM