From Roland Smeenk and Robert Osfield, improvements to the indentation of comments.

This commit is contained in:
Robert Osfield 2010-04-23 16:35:44 +00:00
parent 64acd4df54
commit 117d949d1f

View File

@ -52,7 +52,7 @@
namespace osg { namespace osg {
/** macro for use with osg::StateAttribute::apply methods for detecting and /** macro for use with osg::StateAttribute::apply methods for detecting and
* reporting OpenGL error messages.*/ * reporting OpenGL error messages.*/
#define OSG_GL_DEBUG(message) \ #define OSG_GL_DEBUG(message) \
if (state.getFineGrainedErrorDetection()) \ if (state.getFineGrainedErrorDetection()) \
{ \ { \
@ -93,21 +93,21 @@ class VertexAttribAlias
/** Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings, /** Encapsulates the current applied OpenGL modes, attributes and vertex arrays settings,
* implements lazy state updating and provides accessors for querying the current state. * implements lazy state updating and provides accessors for querying the current state.
* The venerable Red Book says that "OpenGL is a state machine", and this class * The venerable Red Book says that "OpenGL is a state machine", and this class
* represents the OpenGL state in OSG. Furthermore, \c State also has other * represents the OpenGL state in OSG. Furthermore, \c State also has other
* important features: * important features:
* - It works as a stack of states (see \c pushStateSet() and * - It works as a stack of states (see \c pushStateSet() and
* \c popStateSet()). Manipulating this stack of OpenGL states manually is * \c popStateSet()). Manipulating this stack of OpenGL states manually is
* seldom needed, since OSG does this in the most common situations. * seldom needed, since OSG does this in the most common situations.
* - It implements lazy state updating. This means that, if one requests a * - It implements lazy state updating. This means that, if one requests a
* state change and that particular state is already in the requested state, * state change and that particular state is already in the requested state,
* no OpenGL call will be made. This ensures that the OpenGL pipeline is not * no OpenGL call will be made. This ensures that the OpenGL pipeline is not
* stalled by unnecessary state changes. * stalled by unnecessary state changes.
* - It allows to query the current OpenGL state without calls to \c glGet*(), * - It allows to query the current OpenGL state without calls to \c glGet*(),
* which typically stall the graphics pipeline (see, for instance, * which typically stall the graphics pipeline (see, for instance,
* \c captureCurrentState() and \c getModelViewMatrix()). * \c captureCurrentState() and \c getModelViewMatrix()).
*/ */
class OSG_EXPORT State : public Referenced, public Observer class OSG_EXPORT State : public Referenced, public Observer
{ {
public : public :