Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Issues with current Master build #411

Closed
jturner65 opened this issue Jun 17, 2015 · 9 comments
Closed

Windows Issues with current Master build #411

jturner65 opened this issue Jun 17, 2015 · 9 comments
Milestone

Comments

@jturner65
Copy link

I've mentioned these in an email to JS but I will list them here as well. Didn't think these warranted their own issues, but if so, I apologize.

  1. NOMINMAX :
    could all the #include <windows.h> be replaced with something along the following?
    (from http://stackoverflow.com/questions/4913922/possible-problems-with-nominmax-on-visual-c/4914108#4914108 )
    #ifdef NOMINMAX
    #include <windows.h>
    #else
    #define NOMINMAX
    #include <windows.h>
    #undef NOMINMAX
    #endif

  2. "small" variable name :
    another <windows.h> issue (sigh)

http://stackoverflow.com/questions/27793470/why-does-smallgive-an-error-about-char
could the variable named "small" in Win3D.cpp line 77 be changed to something else? windows.h includes a file which in turn #define's "small"

  1. GL_MULTISAMPLE
    http://stackoverflow.com/questions/4207506/where-is-gl-multisample-defined
    this macro is not defined in windows, and is apparently outdated.
@jslee02
Copy link
Member

jslee02 commented Jun 17, 2015

  1. and 2) are resolved in windows_build_issues branch.

I learned that GL_MULTISAMPLE is supported since OpenGL 1.3 from here but I couldn't find any document says it's outdated. Can you point out any reference that says which version of OpenGL is used in windows and if GL_MULTISAMPLE is supported? It seems there are many changes since OpenGL 3.0 but I still stay in older version. :S

@jturner65
Copy link
Author

sure. here’s a SO link that discusses it :
http://stackoverflow.com/questions/4207506/where-is-gl-multisample-defined

i guess a conditional redefinition of it could solve the problem.

From: Jeongseok Lee
Sent: Wednesday, June 17, 2015 12:02 PM
To: dartsim/dart
Cc: John Turner
Subject: Re: [dart] Windows Issues with current Master build (#411)

  1. and 2) are resolved in windows_build_issues branch.

I learned that GL_MULTISAMPLE is supported since OpenGL 1.3 from here but I couldn't find any document says it's outdated. Can you point out any reference that says which version of OpenGL is used in windows and if GL_MULTISAMPLE is supported? It seems there are many changes since OpenGL 3.0 but I still stay in older version. :S


Reply to this email directly or view it on GitHub.

@mkoval
Copy link
Collaborator

mkoval commented Jun 17, 2015

@jturner65 That post actually says exactly the opposite (in one of the comments):

Umm... That should read "used to be an extension", multisampling's been a part of OpenGL core for a long time now.

In any case, there will need to be a workaround to make it work on Windows. Regardless of what the standard says. 😄

@jturner65
Copy link
Author

i think you meant to quote JS. :)

@mxgrey
Copy link
Member

mxgrey commented Jun 17, 2015

It looks like the SO thread is saying that GL_MULTISAMPLE is part of the OpenGL specifications (not outdated), but was not included in Windows for mysterious reasons.

@mkoval
Copy link
Collaborator

mkoval commented Jun 17, 2015

@jturner65 That is a quote from the StackOverflow thread you linked to. See @mxgrey's reply.

@jturner65
Copy link
Author

mea culpa, i misunderstood the implication of "used to be an extension". regardless, it doesn't seem to be available in windows. maybe GL_MULTISAMPLE_ARB

@jturner65
Copy link
Author

how do we want to address this issue? GL_MULTISAMPLE_ARB is also not natively supported in windows. perhaps we can include a more recent version of gl.h in golems install (the one natively installed by windows has a most recent copyright date of 1996).

do we need this setting? from what i've been able to find, it appears that multisample is enabled by default. is this just so we can disable it for performance?

@jslee02
Copy link
Member

jslee02 commented Aug 1, 2015

Created a pull request for NOMINMAX and "small" variable name issues.

OpenGL and GLUT compatibility issues will be handled once we move on GLFW

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants