mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 09:16:18 +00:00
66 lines
1.6 KiB
C++
66 lines
1.6 KiB
C++
/**
|
|
* \file NeLDriver.cpp
|
|
* \date November 2004
|
|
* \author Matt Raykowski
|
|
* \author Henri Kuuste
|
|
*/
|
|
|
|
// NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
|
|
// Copyright (C) 2010 Winch Gate Property Limited
|
|
//
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
#ifndef __NELDRIVER_H__
|
|
#define __NELDRIVER_H__
|
|
|
|
//
|
|
// NeL Includes
|
|
//
|
|
#include <nel/misc/value_smoother.h>
|
|
|
|
extern uint16 gScreenWidth;
|
|
extern uint16 gScreenHeight;
|
|
|
|
class NeLDriver {
|
|
public:
|
|
NeLDriver(NL3D::UDriver *driver):m_Driver(driver), m_TextContext(NULL), m_Scene(NULL) { }
|
|
virtual ~NeLDriver() { }
|
|
|
|
void init();
|
|
void update();
|
|
void render();
|
|
|
|
double getFps();
|
|
|
|
NL3D::UDriver &getDriver() const;
|
|
NL3D::UScene &getScene() const;
|
|
NL3D::UTextContext &getTextContext() const;
|
|
|
|
private:
|
|
// 3D
|
|
NL3D::UDriver *m_Driver;
|
|
NL3D::UTextContext *m_TextContext;
|
|
NL3D::UScene *m_Scene;
|
|
|
|
// TIME
|
|
NLMISC::CValueSmootherTemplate<double> m_DeltaTimeSmooth;
|
|
double m_DeltaTime;
|
|
double m_FirstTime;
|
|
double m_OldTime;
|
|
double m_Time;
|
|
};
|
|
|
|
|
|
#endif // __NELDRIVER_H__
|
|
|