Skip to content
This repository was archived by the owner on Apr 28, 2019. It is now read-only.

Documentation

czaloj edited this page May 31, 2016 · 10 revisions

For documentation, we use Doxygen.

Style

For style, we will be mostly following a Qt-style of documentation

Cpp

Visual Assist X Macro (remember trailing newline):

/*!
 * \brief $end$
 *
 *
 *
 * \param $MethodArgName$: 
 * \return 
 */

The \brief portion should be a single sentence.
Use \pre for method preconditions.
Use \warning to warn users about thread-safety or hidden side-effects.

Example:

/*!
 * \brief Obtain a new object.
 *
 * Objects created using this method should be recycled in
 * order to preserve memory.
 *
 * \tparam Args: Types of constructor arguments.
 * \param args: Argument values for object constructor.
 * \return A pointer to an object.
 */
template<typename... Args>
CALLEE_DELETE T* create(Args... args) {

Shaders

Generating

Clone this wiki locally