Search found 33 matches
- Thu May 03, 2007 10:22 am
- Forum: Beginners Help
- Topic: EventReciever in another file?
- Replies: 9
- Views: 537
Or you could have your EventReceiver class something like this : // Event Receiver.h #include <irrlicht.h> struct mouse { bool left; }; struct keyboard { bool escape; }; class EventReceiver : public irr::IEventReceiver { mouse Mouse; keyboard Keyboard; virtual bool OnEvent(irr::SEvent event); public...
- Wed May 02, 2007 10:53 pm
- Forum: Beginners Help
- Topic: Button release event?
- Replies: 6
- Views: 441
Button release event?
Is there an event with button release? For example click is irr::gui::EGET_BUTTON_CLICKED. Is there something like irr::gui::EGET_BUTTON_RELEASED ?
- Tue Apr 24, 2007 5:50 pm
- Forum: Beginners Help
- Topic: Setting color of object without lighting?
- Replies: 5
- Views: 302
- Sun Apr 22, 2007 3:34 pm
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 849
- Sat Apr 21, 2007 2:28 pm
- Forum: Beginners Help
- Topic: movement
- Replies: 13
- Views: 892
- Sat Apr 21, 2007 1:45 pm
- Forum: Beginners Help
- Topic: problem with my class in c++ now with the real files
- Replies: 5
- Views: 231
- Sat Apr 21, 2007 5:59 am
- Forum: Beginners Help
- Topic: movement
- Replies: 13
- Views: 892
I'll try to use my telepathic abilities... Maybe you forgot to put receiver into the device creation function :
If it's not true, just post your code here!
Code: Select all
device = createDevice(video::EDT_OPENGL, core::dimension2d<s32>(640, 480),
16, false, false, false, &receiver);
- Fri Apr 20, 2007 2:29 pm
- Forum: Beginners Help
- Topic: Collosion Detection - getting the node.
- Replies: 3
- Views: 288
- Fri Apr 20, 2007 10:24 am
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 849
To vitek: Node->setAnimationEndCallback(this); gives error C2664: 'irr::scene::IAnimatedMeshSceneNode::setAnimationEndCallback' : cannot convert parameter 1 from 'Enemy *const ' to 'irr::scene::IAnimationEndCallBack *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cas...
- Fri Apr 20, 2007 5:19 am
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 849
Sure. Enemy.h struct anim { bool run; bool attack; }; class Enemy; class AnimCallback : public irr::scene::IAnimationEndCallBack { public: void OnAnimationEnd(irr::scene::IAnimatedMeshSceneNode* node); void setEnemy (Enemy *enemy); private: Enemy *m_Enemy; }; class Enemy { irr::scene::IAnimatedMeshS...
- Thu Apr 19, 2007 11:56 am
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 849
- Wed Apr 18, 2007 6:03 pm
- Forum: Beginners Help
- Topic: Button and image
- Replies: 4
- Views: 312
I think you should use draw2DImage. You'll just have to guess the coordinates so the image would look like it's on the button. For example: driver->draw2DImage(image, core::position2d<s32>(x,y)); And i just found out that a button has a method called setImage(); Try this : gui::IGUIButton *button = ...
- Wed Apr 18, 2007 5:31 pm
- Forum: Beginners Help
- Topic: How to properly use IAnimationEndCallBack
- Replies: 9
- Views: 849
How to properly use IAnimationEndCallBack
Hello again, i came with new problems once more. Right now it's with class IAnimationEndCallBack usage. So, let's start : i have class Enemy, which has private (it could be public) members that shows which animation is currently being played, and which not. struct anim { bool run; bool attack; }; cl...
- Sat Apr 14, 2007 7:50 pm
- Forum: Beginners Help
- Topic: Basic C++ question
- Replies: 4
- Views: 306
Thanks for your detailed reply, and i want to ask another thing. Right now it's like this : Enemy.h #ifndef Enemy_h #define Enemy_h #include <irrlicht.h> class Enemy { irr::scene::IAnimatedMeshSceneNode *Node; public: void setNode (irr::scene::IAnimatedMeshSceneNode *node); irr::scene::IAnimatedMesh...
- Sat Apr 14, 2007 4:23 pm
- Forum: Beginners Help
- Topic: Basic C++ question
- Replies: 4
- Views: 306
Basic C++ question
Hello everyone, when i realised that one single .cpp file won't work for a game, i started to make an enemy class like this : Enemy.h #ifndef Enemy_h #define Enemy_h class Enemy { irr::scene::IAnimatedMeshSceneNode Node; public: void setNode (irr::scene::IAnimatedMeshSceneNode *node); irr::scene::IA...