Support building NLMISC as dll

feature/nel-dll
kaetemi 6 years ago
parent 799d5ec891
commit 27d3b068d6

@ -151,7 +151,7 @@ public:
* \author Nevrax France * \author Nevrax France
* \date 2000 * \date 2000
*/ */
class CAABBoxExt : private CAABBox class NLMISC_API CAABBoxExt : private CAABBox
{ {
protected: protected:
float RadiusMin, RadiusMax; float RadiusMin, RadiusMax;

@ -104,7 +104,7 @@ namespace NLMISC
* \author Boris 'SoniX' Boucher * \author Boris 'SoniX' Boucher
* \date 2005 * \date 2005
*/ */
class CApplicationContext : public INelContext class NLMISC_API CApplicationContext : public INelContext
{ {
public: public:
CApplicationContext(); CApplicationContext();
@ -160,7 +160,7 @@ namespace NLMISC
* \author Boris 'SoniX' Boucher * \author Boris 'SoniX' Boucher
* \date 2005 * \date 2005
*/ */
class CLibraryContext : public INelContext class NLMISC_API CLibraryContext : public INelContext
{ {
public: public:
CLibraryContext (INelContext &applicationContext); CLibraryContext (INelContext &applicationContext);

@ -227,7 +227,7 @@ struct TCommandHandlerClassInfo
* \author Nevrax France * \author Nevrax France
* \date 2005 * \date 2005
*/ */
class ICommandsHandler class NLMISC_API ICommandsHandler
{ {
/// Store the class name after handler registration /// Store the class name after handler registration
const std::string *_ClassName; const std::string *_ClassName;
@ -556,7 +556,7 @@ struct TCommandHandler : public TCommandHandlerInfo
* \author Nevrax France * \author Nevrax France
* \date 2005 * \date 2005
*/ */
class CCommandRegistry class NLMISC_API CCommandRegistry
{ {
// this class is a safe singleton (dll friendly) // this class is a safe singleton (dll friendly)
NLMISC_SAFE_SINGLETON_DECL(CCommandRegistry); NLMISC_SAFE_SINGLETON_DECL(CCommandRegistry);

@ -120,7 +120,7 @@ public:
* \author Nevrax France * \author Nevrax France
* \date 2000 * \date 2000
*/ */
struct CVar struct NLMISC_API CVar
{ {
public: public:

@ -77,7 +77,7 @@ private:
* \author Nevrax France * \author Nevrax France
* \date 2000 * \date 2000
*/ */
class CEventListenerAsync: public IEventListener class NLMISC_API CEventListenerAsync : public IEventListener
{ {
public: public:

@ -356,7 +356,7 @@ public:
// Friend. // Friend.
/// Plane (line vector) multiplication. /// Plane (line vector) multiplication.
friend CPlane operator*(const CPlane &p, const CMatrix &m); NLMISC_API friend CPlane operator*(const CPlane &p, const CMatrix &m);
private: private:

@ -72,7 +72,7 @@ protected:
* \author Nevrax France * \author Nevrax France
* \date 2002 * \date 2002
*/ */
class CLightMemDisplayer : public CMemDisplayer class NLMISC_API CLightMemDisplayer : public CMemDisplayer
{ {
public: public:
/// Constructor /// Constructor

@ -22,14 +22,9 @@
#include "stream.h" #include "stream.h"
#include "rgba.h" #include "rgba.h"
namespace NLMISC namespace NLMISC
{ {
// *************************************************************************** // ***************************************************************************
/** /**
* A class which generate noisy value, according to a position * A class which generate noisy value, according to a position
@ -77,7 +72,7 @@ private:
* \author Nevrax France * \author Nevrax France
* \date 2001 * \date 2001
*/ */
class CNoiseColorGradient class NLMISC_API CNoiseColorGradient
{ {
public: public:
/// Abs and Rand should be 0 and 1 here. If not, some colors may not be generated... /// Abs and Rand should be 0 and 1 here. If not, some colors may not be generated...
@ -96,10 +91,8 @@ public:
}; };
} // NL3D } // NL3D
#endif // NL_NOISE_VALUE_H #endif // NL_NOISE_VALUE_H
/* End of noise_value.h */ /* End of noise_value.h */

@ -116,7 +116,7 @@ public:
/** /**
* A 2d convex polygon * A 2d convex polygon
*/ */
class CPolygon2D class NLMISC_API CPolygon2D
{ {
public: public:
typedef std::vector<CVector2f> TVec2fVect; typedef std::vector<CVector2f> TVec2fVect;
@ -223,8 +223,8 @@ private:
}; };
// comparison of 2D polygon // comparison of 2D polygon
bool operator == (const CPolygon2D &lhs, const CPolygon2D &rhs); NLMISC_API bool operator==(const CPolygon2D &lhs, const CPolygon2D &rhs);
bool operator < (const CPolygon2D &lhs, const CPolygon2D &rhs); NLMISC_API bool operator<(const CPolygon2D &lhs, const CPolygon2D &rhs);
} // NLMISC } // NLMISC

@ -488,7 +488,7 @@ void CQuatT<T>::makeClosest(const CQuatT<T> &o)
class CQuat : public CQuatT<float> class CQuat : public CQuatT<float>
{ {
public: public:
static const CQuat Identity; NLMISC_API static const CQuat Identity;
/// \name Object /// \name Object
// @{ // @{
@ -515,7 +515,7 @@ public:
class CQuatD : public CQuatT<double> class CQuatD : public CQuatT<double>
{ {
public: public:
static const CQuatD Identity; NLMISC_API static const CQuatD Identity;
/// \name Object /// \name Object
// @{ // @{

@ -386,7 +386,7 @@ public:
* \author Nevrax France * \author Nevrax France
* \date 2000 * \date 2000
*/ */
class CBGRA class NLMISC_API CBGRA
{ {
public: public:
@ -495,7 +495,7 @@ inline CRGBA blend(CRGBA c0, CRGBA c1, U blendFactor)
* \author Nevrax France * \author Nevrax France
* \date 2000 * \date 2000
*/ */
class CRGBAF class NLMISC_API CRGBAF
{ {
public: public:
/// Default constructor. do nothing /// Default constructor. do nothing

@ -74,9 +74,9 @@ struct EStream : public Exception
EStream( const std::string& str ) : Exception( str ) {} EStream( const std::string& str ) : Exception( str ) {}
EStream( const IStream &f ); NLMISC_API EStream(const IStream &f);
EStream( const IStream &f, const std::string& str ); NLMISC_API EStream(const IStream &f, const std::string &str);
virtual ~EStream() throw() {} virtual ~EStream() throw() {}

@ -84,7 +84,7 @@ enum TThreadPriority
* \author Nevrax France * \author Nevrax France
* \date 2000 * \date 2000
*/ */
class IThread class NLMISC_API IThread
{ {
public: public:

Loading…
Cancel
Save