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 5833 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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!