You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
549 B
43 lines
549 B
10 years ago
|
package mightypork.gamecore.resources.fonts;
|
||
10 years ago
|
|
||
|
|
||
|
import mightypork.utils.math.color.RGB;
|
||
|
import mightypork.utils.math.coord.Coord;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Null font used where real resource could not be loaded.
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public class NullFont implements GLFont {
|
||
|
|
||
|
@Override
|
||
|
public void draw(String str, RGB color)
|
||
|
{
|
||
|
// nope
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public Coord getNeededSpace(String str)
|
||
|
{
|
||
|
return Coord.zero();
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public int getHeight()
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public int getWidth(String text)
|
||
|
{
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
}
|