Jump to content
  • Advertisement
Sign in to follow this  
Draconis_9

Base constructor error in inherited class

This topic is 4253 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

This error "No overload for method 'Object3' takes '0' arguments", it's occuring on the constructor for "public StaticMesh(string....." i'm not sure what it means because the constructor in Object3 has one parameter, i'm not sure what's happening. Can anyone help? It's C#[MDX]
public class StaticMesh: Object3, IDisposable, IRenderable, IDynamic
    {
        private Mesh mesh = null; 
        private Material[] meshMaterials; 
        private Texture[] meshTextures; 
        private Vector3 offset = new Vector3(0.0f, 0.0f, 0.0f);

        public Vector3 Offset { get { return offset; } }

        public StaticMesh(string name, string meshFile, Vector3 Offset, Device 
              device)
        {
Anything would be greatly appreciated, Thanks.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • 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!