What's up with GDC?

Joerg Joergonson via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jun 10 21:20:38 PDT 2016


On Saturday, 11 June 2016 at 01:43:21 UTC, Adam D. Ruppe wrote:
> On Friday, 10 June 2016 at 22:01:15 UTC, Joerg Joergonson wrote:
>> The problem I'm getting with ldc, using your simpledisplay, is 
>> that the libs aren't loading due to the wrong format.
>
>
> What's the exact message and what did you do? The opengl32.lib 
> I have on my github is for dmd 32 bit, ldc uses the Microsoft 
> one I think so you shouldn't need anything else.

It just says the format is invalid. I used the one you supplied 
in the package and never worried about it. I'll try some other 
libs when I get a chance.

BTW I make your code a bit better with resizing


case WM_SIZING:
     goto size_changed;
break;
case WM_ERASEBKGND: 				
	break;


Handling the erase background prevents windows from clearing the 
window, even with open GL. This allows resizing the window to 
still show the content. The only problem with it is that it seems 
the opengl code shifts up and down as the resize happens... It is 
probably an issue with the size change updates. It's pretty minor 
though and better than what it was(when I'd resize the window 
would go white and stay white as long as mouse was moving)

The specific errors are

opengl32.lib : warning LNK4003: invalid library format; library 
ignored
glu32.lib : warning LNK4003: invalid library format; library 
ignored








More information about the Digitalmars-d-learn mailing list