Last change
on this file since 3455 was
3455,
checked in by bensch, 21 years ago
|
orxonox/trunk: cone3D-fonts added, but they will still need some work till they totally adapted to orxonox.
|
File size:
1.5 KB
|
Rev | Line | |
---|
[3455] | 1 | /*************************************************************************** |
---|
| 2 | cone3dfont.h - description |
---|
| 3 | ------------------- |
---|
| 4 | copyright : (C) 2001 by Marius Andra aka Cone3D |
---|
| 5 | email : marius@hot.ee |
---|
| 6 | ICQ : 43999510 |
---|
| 7 | ***************************************************************************/ |
---|
| 8 | |
---|
| 9 | /*************************************************************************** |
---|
| 10 | * * |
---|
| 11 | * This program is free software; you can redistribute it and/or modify * |
---|
| 12 | * it under the terms of the GNU General Public License as published by * |
---|
| 13 | * the Free Software Foundation; either version 2 of the License, or * |
---|
| 14 | * (at your option) any later version. * |
---|
| 15 | * * |
---|
| 16 | ***************************************************************************/ |
---|
| 17 | /* |
---|
| 18 | This file is extended to the needs of the orxonox-project. |
---|
| 19 | The main difference to the version of Marius is, that textures get |
---|
| 20 | loaded by orxonox Texture-class |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | class Texture; |
---|
| 24 | |
---|
| 25 | |
---|
| 26 | class Cone3DFont |
---|
| 27 | { |
---|
| 28 | public: |
---|
| 29 | Cone3DFont() {sizex=1.0f; sizey=1.0f;}; |
---|
| 30 | ~Cone3DFont() {KillFont();}; |
---|
| 31 | int BuildFont(char *file); |
---|
| 32 | int PrintText(int x, int y, char type, char *fmt, ...); |
---|
| 33 | int KillFont(); |
---|
| 34 | int SetSize(float x, float y); |
---|
| 35 | |
---|
| 36 | // Cone3DTGA font; |
---|
| 37 | private: |
---|
| 38 | int base; |
---|
| 39 | float sizex,sizey; |
---|
| 40 | Texture* font; |
---|
| 41 | |
---|
| 42 | }; |
---|
Note: See
TracBrowser
for help on using the repository browser.