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