vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
PhysXVreckoMessages.h
Go to the documentation of this file.
1 #ifndef PHYSXVRECKOMESSAGES_H
2 #define PHYSXVRECKOMESSAGES_H
3 
4 
5 #include <vrecko/Ability.h>
6 #include <vrecko/Message.h>
7 
8 #include <NxScene.h>
9 #include <NxActor.h>
10 #include <NxMaterial.h>
11 
12 
13 namespace PhysXPlugin
14 {
15 
16 VRECKO_START_MESSAGE_EXTENDED(MessageNxScenePtr, NxScene*)
18 
19 
20 VRECKO_START_MESSAGE_EXTENDED(MessageNxActorPtr, NxActor*)
22 
23 
24 class MessageNxActorWithName : public vrecko::VreckoMessage {
25 public:
27  MessageNxActorWithName(NxActor* actor, const char *name) { _actor = actor; _name = name; }
28  virtual const char* getMessageId() { return "MessageNxActorWithName"; }
29 
30  NxActor* _actor;
31  std::string _name;
32 };
33 
34 
36 
37 VRECKO_START_MESSAGE_EXTENDED(MessageUpdatablePhysXObjectPtr, UpdatablePhysXObject*)
39 
40 
41 VRECKO_START_MESSAGE_EXTENDED(MessageNxMaterialIndex, NxMaterialIndex)
43 
44 
45 
46 
47 
48 }
49 
50 
51 
52 #endif