Crazy Eddies GUI System  0.7.9
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Contributing to the development of CEGUI.
Paul D Turner

The CEGUI developers are always happy to consider code and other materials contributed from users out in the community for inclusion with CEGUI. Many of the existing parts of CEGUI are - or started out as - user contributed material.

In order to aid people wishing to contribute to the development of CEGUI, we've gathered together some basic guidelines that will both maximise the productivity of yourselves and the CEGUI developers, and also maximise the chances that your contribution will be accepted into the code base. Certain points here also serve as a guide to CEGUI developers when assessing the overall quality of a submission.

  • Do not submit code that you personally did not create, do not own, or are otherwise unauthorised to contribute or give away.
  • Unless clearly stated otherwise on your submission, all contributed materials will be considered to be gifted to us, for use as we see fit. Typically this just means we'll be releasing the contributed materials under our MIT license.
  • Before you start work, especially on anything major, you should definitely join in on the forums ( and discuss your ideas and intentions. There is nothing worse in our eyes than somebody spending valuable time working on something that turns out to be unsuitable when completed - whether due to a design choice we could have advised about, something conflicting with existing or upcoming work, or some other reason.
  • All code and other text based modifications should be submitted in patch form. Submitting full, alternate versions of modified files is not helpful and serves no purpose other than to waste our time. Such contributions will be rejected as a matter of course.
  • All patches should be submitted to the appropriate sub-project on the CEGUI mantis tracker ( Posting patches on the forums is not advised and will virtually always result in your patch being lost and forgotten about.
  • Patches must be submitted in unified diff format only. Patches submitted in any other form will be rejected as a matter of course.
  • Fudged patches that effectively replace every line in target files (this is usually caused by file-level whitespace changes) will be immediately rejected without further consideration. We need to be able to see specifically what your patch changes, since that's not possible with this type of 'patch', they are no better than submitting full replacement files and so get rejected for the same reason.
  • When developing code for CEGUI - whether you're modifying existing code, or developing new code - you should ensure that the code conforms to the existing style and idioms in use. The required code style is documented in Coding Standards in use for CEGUI, and your contributed code should follow this as closely as possible. Contributed code that deviates too much from these guidelines will be rejected as a matter of course.
  • It should be clearly stated on the patch submission what precisely the patch is for - including links to forum discussions and/or other mantis tickets where appropriate.
  • Patches should do one thing only. If you're submitting a patch that fixes a bug, or adds some new feature, the patch should not additionally contain changes to other non related parts of the system. Patches deemed to fall into this category will be rejected as a matter of course.
  • Ensure all new classes and/or functions are clearly documented and that any documentation for modified classes and/or functions is updated to be correct. Documentation should use the same doxygen style as is used elsewhere. If we see new undocumented code or clearly incorrect documentation in your submission it will be rejected as a matter of course.
  • Where possible you should test your code on multiple platforms, and update any build mechanisms if appropriate. If you're unable to test on all platforms, your patch submission should clearly state which systems have been tested and which have not.
  • If your patch involves adding or removing files, the patch submission should clearly state which files are added and their purpose, and which files have been removed and the reasons for the removal.
  • Modifications should be complete - especially those that affect the abstract classes and/or interfaces. For example, if you're adding to or changing the functionality of the rendering system, your patch should include the necessary modifications and implementations for all supported renderers (or as many as possible, perhaps with an explanatory note). Patches that effectively break all implementation modules bar the one in the patch can usually expect to be rejected; the reason being is that accepting such patches effectively leaves the core dev team to do 75% or more of the work - since the remaining modules would have to be updated by us - which defeats the purpose of having people submit patches in the first place.
  • Lastly, don't forget to update our equivalent of the AUTHORS file at doc/doxygen/authors.dox with your name and contribution. If you don't do this, we'll assume you wish your contribution to be uncredited.