Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

For OpenGL text drawing I use Slick2D library. Default Slick2D 0:0 coordinates are at upper-left corner. But in my project I use bottom-left corner for 0:0. Is it real to configure Slick2D with bottom-left corner as starting point?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

I extended AngelCodeFont and Image classes to implement text drawing I need.

In AngelCodeFont I updated yoffset for each char:

def.yoffset = lineHeight - def.height - def.yoffset;

where lineHeight was parsed from common line in .fnt file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.