Horde3D

Next-Generation Graphics Engine
It is currently 04.12.2024, 04:38

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: 30.08.2012, 15:32 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
I've finally got a plugin working for my purposes, and I found that as I was trying to grep the whole interface I struggled a bit with figuring out what was actually required for the plugin interface, and what wasn't.

The only examples I could find were of the game engine widgets which have a whole hierarchy of inheritance and complexity in and of themselves, which only added to my confusion.

If anyone else has felt this way, and is looking for a very (very) basic example of a Horde3D Editor plugin, you can feel free to take a look at mine here:

http://code.google.com/p/excavation/source/browse/#hg%2FexPlugins

I will preface this with the fact that I do very little C++ programming, so I wouldn't look at this code as "good" by any means, but it could be a simpler starting point for a more complex plugin.

All the plugin does is read a file called exEntities.def that is a list of types and properties separated by a new line:
Code:
type1,property1,property2,property3
type2,property1,property2,property3
bullet_capsule,radius,height


Creates a dropdown list of those types, and fields to populate the properties, then writes those properties out as the attributes of the attachment xml node in the scene file.

As I said, pretty straightforward, but maybe it'll help someone get started on something bigger.

Critique is always welcome.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group