mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-18 21:26:12 +00:00
Fix object viewer include issue
This commit is contained in:
parent
f287238dc9
commit
391c927cb3
3 changed files with 11 additions and 4 deletions
|
@ -76,7 +76,10 @@ const char *CFontGenerator::getFT2Error(FT_Error fte)
|
|||
return ukn;
|
||||
}
|
||||
|
||||
|
||||
CFontGenerator *newCFontGenerator(const std::string &fontFileName)
|
||||
{
|
||||
return new CFontGenerator(fontFileName);
|
||||
}
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "nel/3d/scene_group.h"
|
||||
#include "nel/3d/animation_playlist.h"
|
||||
#include "nel/3d/track_keyframer.h"
|
||||
#include "nel/3d/font_generator.h"
|
||||
#include "nel/3d/register_3d.h"
|
||||
#include "nel/3d/seg_remanence.h"
|
||||
|
||||
|
@ -592,6 +591,12 @@ void CObjectViewer::initCamera ()
|
|||
|
||||
// ***************************************************************************
|
||||
|
||||
namespace NL3D {
|
||||
CFontGenerator *newCFontGenerator(const std::string &fontFileName);
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
|
||||
bool CObjectViewer::initUI (HWND parent)
|
||||
{
|
||||
AFX_MANAGE_STATE(AfxGetStaticModuleState());
|
||||
|
@ -616,7 +621,7 @@ bool CObjectViewer::initUI (HWND parent)
|
|||
_FontPath+="\\fonts\\arial.ttf";
|
||||
|
||||
// The font generator
|
||||
_FontGenerator = new NL3D::CFontGenerator ( _FontPath );
|
||||
_FontGenerator = NL3D::newCFontGenerator ( _FontPath );
|
||||
delete[] wd;
|
||||
|
||||
// The viewport
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#include "nel/3d/texture_grouped.h"
|
||||
#include "nel/3d/nelu.h"
|
||||
#include "nel/3d/font_manager.h"
|
||||
#include "nel/3d/font_generator.h"
|
||||
//
|
||||
#include "nel/misc/file.h"
|
||||
#include "start_stop_particle_system.h"
|
||||
|
|
Loading…
Reference in a new issue