September 04, 2012
On Tuesday, 4 September 2012 at 07:32:47 UTC, Zhenya wrote:
> But why it doesn't convert uint to int correctly?

I dont know, small positive uint and int must have the same binary representation, and no need to conversion. Strangely...

O! May be problem is here:
glOrtho(-width,width,-height,height,-1,1);
-width and -height
Negative unsigned?
September 04, 2012
On Tuesday, 4 September 2012 at 16:17:30 UTC, Ivan Agafonov wrote:
> On Tuesday, 4 September 2012 at 07:32:47 UTC, Zhenya wrote:
>> But why it doesn't convert uint to int correctly?
>
> I dont know, small positive uint and int must have the same binary representation, and no need to conversion. Strangely...
>
> O! May be problem is here:
> glOrtho(-width,width,-height,height,-1,1);
> -width and -height
> Negative unsigned?

:)Understood
1 2
Next ›   Last »