ABSTRACT CLASS ERROR

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

ABSTRACT CLASS ERROR

Post by belfegor »

WHEN I CREATE OBJECT OF MY class MyShaderCallBack
in VS2005 i get an error"cannot instantied object becouse its abstract
due to following members OnSetShaderConstant ...(sory my english is bad)"
Dibalo
Posts: 30
Joined: Sat Aug 12, 2006 2:31 pm
Location: Finland
Contact:

Post by Dibalo »

You can´t make new instances from abstract class. So you have to derive your own shader-class using ShaderCallBack-class. That means that you have to override all pure virtual functions from ShaderCallBack-class.

I think that message is trying to tell you that you haven´t overrided OnSetShaderConstant-method yet.
Dattebayo!!
belfegor
Posts: 383
Joined: Mon Sep 18, 2006 7:22 pm
Location: Serbia

Post by belfegor »

thanx for reply.i solved it by adding second parametar to
method OnSetShaderConstant even if that parametar is not used
(s32 userData).i m still learning c++.
for what then this parametar can be used, i'v like to se some example of
it.please anyone? thanx in advance.
Post Reply