Game Development Community

Bug: Missing includes in simpath.h

by Thomas Huehn · in Torque 3D Professional · 06/04/2009 (2:09 pm) · 2 replies

While porting my ai classes I noticed an error with
static GFXStateBlockRef smStateBlock;
static GFXVertexBufferHandle<GFXVertexPC> smVertexBuffer;
static GFXPrimitiveBufferHandle smPrimitiveBuffer;
in simpath.h on object Marker.

The missing includes are:
#ifndef _GFXSTATEBLOCK_H_
#include "gfx/gfxStateBlock.h"
#endif

#ifndef _GFXVERTEXBUFFER_H_
#include "gfx/gfxVertexBuffer.h"
#endif

Btw. it would be nice when the _SIGNAL_H_ flag would be renamed in core/util/tSignal.h, because this flag is the same as on unix signal.h, which would it make easier for future of linux/unix porting.

#1
06/07/2009 (11:44 am)

Added the missing includes and renamed _SIGNAL_H_ to _TSIGNAL_H_.

Thanks for reporting.
#2
05/31/2010 (11:18 pm)
Logged as TQA-178