Radium Engine  1.5.0
Ra Namespace Reference

Classes

struct  FrameTimerData
 This struct holds all timings for one frame of the engine. More...
 

Detailed Description

Functions in this file are utilities to compute the distance between various geometric sets. They always return the squared distance.

This file contains utilities and wrapper to the standard library that didn't fit into any other category (see Containers)

This file provides portable inclusion of OpenGL headers. In addition it defines the following debug macros GL_ASSERT(x) : executes code x and, if in debug, asserts when an openGL error is detected. GL_CHECK_ERROR : queries the last openGL error in debug (no effect in release) glFlushError() : Ignores the previous openGL errors (no effect in release).

This file's main purpose is to declare a set of macros to allow drawing primitives from everywhere in the code, for debug purposes. These macros can be completely disabled by #defining the following constant :

This file contains a basic implementation of a tree model object with QAbstractItemModel See http://doc.qt.io/qt-5/qtwidgets-itemviews-simpletreemodel-example.html This could have been a template with the object type, but QObjects cannot be templated, which is very sad. To use this base class you must :

  • create a derived class from TreeItem which links the model with actual objects for example by storing a handle or a pointer.
  • create a derived class from TreeModel. Add items of the derived TreeItem class to the tree, and static_cast the result of getItem to the concrete class to use it.