Jump to content

  • Log In with Google      Sign In   
  • Create Account

Dakattack

Member Since 05 Jan 2013
Offline Last Active Jan 15 2013 09:26 PM

Posts I've Made

In Topic: GLFW Linking errors Visual Studio 10

06 January 2013 - 03:19 PM

Okay so I followed this guys tutorial this time.

I was able to build all of the projects for GLFW 3.0

So now I'm going in and editing them while following the tutorial on open.gl/context

More specifically I took the "triangle" project and started it from scratch to follow said tutorial.

But Functions like glfwSleep() and glfwOpenWindowHint() are still undefined. Are these not used in GLFW 3.0?

Can I not use GLFW 3.0 for this tutorial?

 

Have a look at GLFW 3.0 examples to see how to setup basic window. Yes, some things are gone in GLFW3, including these 2 functions you mentioned.

 

Use glfwWindowHint instead, and threading support was removed from GLFW. Best look at provided examples/tests and into code - thats best reference for now (although there was a link to PDF with GLFW3 reference, it may be a bit outdated but its better than nothing, I will post it when I find it)

Got it, glfwCreateWindow(); seems to be the new sensation.

 

Thanks for the help. Is there anything else I should know before I continue with GLFW 3.0? 

Also, is it possible to use two libraries at the same time? Say SFML 2.0 and GLFW 3.0? Are there any advantages to this? 

 

Sorry for the bombardment of questions, I admire your knowledge and I truly appreciate they help you (and everyone else) has given me. 

Onward with OpenGL!


In Topic: GLFW Linking errors Visual Studio 10

06 January 2013 - 02:43 PM

Okay so I followed this guys tutorial this time.

I was able to build all of the projects for GLFW 3.0

So now I'm going in and editing them while following the tutorial on open.gl/context

More specifically I took the "triangle" project and started it from scratch to follow said tutorial.

But Functions like glfwSleep() and glfwOpenWindowHint() are still undefined. Are these not used in GLFW 3.0?

Can I not use GLFW 3.0 for this tutorial?


In Topic: GLFW Linking errors Visual Studio 10

06 January 2013 - 12:34 PM

Take a look at my glew + glfw sample here: https://github.com/dougbinks/glewfw for a working example.

 

Remember to set the example as the start project before running it, and if you have any issues let me know - I'll be travelling for a day or so but should be able to help after that. Note that if you don't have git you can just click on the ZIP button to download a zip of the current code.

Thanks! I set example as the startup, and the build succeeds, however I get an example.exe error window afterwards. :/

 

"The application was unable to start correctly (0xc000000d). Click OK to close the application."

 

I tried setting glewfw as the startup after this and I got...

 

"Unable to start application

C:\blablabla\glewfw\debug\glewfw.dll"

 

*Sigh* Anything I can do about this?


In Topic: GLFW Linking errors Visual Studio 10

06 January 2013 - 11:19 AM

You're not linking to static glfw.lib and DLL at the same time somehow?

Not sure what that means, I'm kinda new to OpenGL and Visual Studio. Explain? :)

Also consider switching to GLFW 3.0 and compiling it yourself for your platform.

Do you think that would work for this turorial? If so then I'm all ears.

By the way, any reason why you're not linking GLFW as static lib?

Again, I'm not sure how to do this. help?


In Topic: GLFW Linking errors Visual Studio 10

05 January 2013 - 11:22 PM

Okay I tried following the instructions here

and I managed to get this

 

but when I type "nmake win32-msys" I get a bunch of errors. Is this the correct one for visual studio 10?


PARTNERS