]> Dogcows Code - chaz/yoink/blob - src/TilemapFont.cc
converted image management to resource handles
[chaz/yoink] / src / TilemapFont.cc
1
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
4 *
5 * vi:ts=4 sw=4 tw=75
6 *
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
9 *
10 **************************************************************************/
11
12 #include <iostream>
13
14 #include "TilemapFont.hh"
15
16
17 /*
18 TilemapFont::TilemapFont() :
19 moof::texture("Font") {}
20
21
22 void TilemapFont::tile_coordinates(char symbol, moof::scalar coords[8],
23 moof::texture::orientation what)
24 {
25 int index = 0;
26
27 if (symbol >= ' ' && symbol <= '_')
28 {
29 index = symbol - 32;
30 }
31 else if (symbol >= 'a' && symbol <= '~')
32 {
33 index = symbol - 64;
34 }
35 else
36 {
37 index = 0;
38 }
39
40 moof::texture::tile_coordinates(index, coords, what);
41 }
42 */
43
This page took 0.030237 seconds and 4 git commands to generate.