September 04, 2012 Re: DerelictGL program draw nothing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Zhenya | 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 Re: DerelictGL program draw nothing | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Agafonov | 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
|
Copyright © 1999-2021 by the D Language Foundation