Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

A l e x

Class problem

This topic is 5889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I wrote two classes (a base and a derived class) for mesh loading, translation, rotation etc, they are located in the file objects.h. Now I create a mesh and include other d3d headers:
#include "lib/objects.h"

mesh tigermesh;
tigermesh.loadmesh("tiger.x");

#include "lib/d3dlib.h"
 
But I get some errors that tigermesh is not declared and that there's a missing ';' before '.'. What am I doing wrong? [edited by - A l e x on November 2, 2002 11:08:59 AM]

Share this post


Link to post
Share on other sites
Advertisement
You mean I have to put
mesh tigermesh;
tigermesh.loadmesh("tiger.x");
into a function?
That doesn''t work either...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!