1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
/** \file blank_interface.h
*
*
* $Id: blank_interface.h,v 1.2 2000/11/23 16:41:20 lecroart Exp $
*/
/* Copyright, 2000 Nevrax Ltd.
*
* This file is part of NEVRAX NEL.
* NEVRAX NEL is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
* NEVRAX NEL 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
* General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with NEVRAX NEL; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
#ifndef NL_BLANK_INTERFACE_H
#define NL_BLANK_INTERFACE_H
#include <vector>
#include "nel/misc/types_nl.h"
#include "nel/misc/event_emitter.h"
#include "nel/misc/event_listener.h"
#include "nel/3d/scene_ut.h"
#include "nel/3d/font_manager.h"
#include "nel/3d/computed_string.h"
/**
* Class CBlankInterface
* \author Stephane Coutelas
* \author Nevrax France
* \date 2000
*/
class CBlankInterface
{
protected:
/// screen width
uint ScreenWidth;
/// screen height
uint ScreenHeight;
/// font manager providing font textures
NL3D::CFontManager _FontManager;
/// font generator
NL3D::CFontGenerator _FontGenerator;
/// scene (provides driver)
NL3D::CScene * _Scene;
/// event manager
NLMISC::CEventServer _EventServer;
/// event listener
NLMISC::IEventListener * _Listener;
void release();
public:
/// default constructor
CBlankInterface():_FontGenerator("c:/winnt/fonts/arialuni.ttf")
{
ScreenWidth = 0;
ScreenHeight = 0;
}
/// init font manager, event server,...
virtual void init(NL3D::CScene * scene, uint w, uint h);
/// destructor
virtual ~CBlankInterface() { release(); }
};
#endif // NL_BLANK_INTERFACE_H
/* End of blank_interface.h */
|