Maybe this thread can help you a bit:
http://www.pascalgamedevelopment.com/showthread.php?6168-I-need-some-help-with-2D-drawing-libraries
The first part is about pixel-perfect drawing.
Maybe this thread can help you a bit:
http://www.pascalgamedevelopment.com/showthread.php?6168-I-need-some-help-with-2D-drawing-libraries
The first part is about pixel-perfect drawing.
Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.
glTexCoord2i doesn't make your texture coordinates scale from 0..Width. They are still ranged from 0..1. Use glTexCoord2f with that proper range and it might solve it. Otherwise the error might be in texture loading.
Bookmarks