Niotso
git revision 558726a9f13d7c3423a683dd2f4323589b66c310
The New Implementation of The Sims Online
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Client
Graphics
Graphics.hpp
Go to the documentation of this file.
1
/*
2
Niotso - The New Implementation of The Sims Online
3
Graphics/Graphics.hpp
4
Copyright (c) 2012 Niotso Project <http://niotso.org/>
5
Author(s): Fatbag <X-Fi6@phppoll.org>
6
7
This program is free software: you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation, either version 3 of the License, or
10
(at your option) any later version.
11
12
This program is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*/
20
21
#include <gl/gl.h>
22
#include <gl/glext.h>
23
24
//Graphics/Startup.cpp
25
namespace
Graphics {
26
int
Initialize
();
27
void
Shutdown
();
28
extern
HDC
hDC
;
29
extern
HGLRC
hRC
;
30
31
int
InitGL
();
32
void
ResizeViewport
(
unsigned
width,
unsigned
height);
33
34
enum
TextAlignment
{
35
ALIGN_LEFT_TOP
,
36
ALIGN_LEFT_CENTER
,
37
ALIGN_CENTER_TOP
,
38
ALIGN_CENTER_CENTER
,
39
ALIGN_RIGHT_TOP
,
40
ALIGN_RIGHT_CENTER
41
};
42
43
//Font.cpp
44
extern
FT_Library
FreeTypeLibrary
;
45
extern
FT_Face
FontFace
;
46
void
DrawText
(
Image_t
* Image,
const
wchar_t
* String,
int
x,
int
y,
unsigned
width,
unsigned
height,
47
TextAlignment
Alignment,
int
font, COLORREF Color);
48
Image_t
*
StringImage
(
const
wchar_t
* String,
int
font, COLORREF Color);
49
}
Generated on Sat Jun 15 2013 03:02:15 for Niotso by
1.8.4