Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 8 of 8

Thread: SDK.. where ?? how ??

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2012
    Posts
    4

    SDK.. where ?? how ??

    Hey guys..

    I've been a DirectX graphics programmer (my job) for the last 8 years.. Only did some OpenGL a long long time ago (before VBOs and stuff like this), and I'm trying to get back at it now..

    But I've got one problem : I don't get it !
    I'm desperately looking for the Open GL SDK.. can't find it...

    Then, I see on some forums (cause I've googled before asking here) that you're not supposed to download the SDK.. that you must use the one that comes with your compiler.
    I'm still using Visual 2008.. Am I supposed to use a 4 y.o. SDK !?! What about OpenGL 4.x ? All the new features ? How can I determine my SDK version ?

    Some people advice to get the SDK from you graphics card vendor.. will the executables will then be compatible with other brands ?

    How do the "extensions" work.. Again, I'm not sure to understand that part either... I've seen a few 'extension SDKs like GLew or Glee' ..
    isn't there some official one ? Aren't extensions part of the GL SDK ?


    Sorry, I realise those really are noob questions... But it's silly.. I couldn't find any clear explanation anywhere.. like you're just "supposed to know" all this. And pretty much every tutorial I've seen just don't mention that..

    Thanks in advance !

  2. #2
    Intern Contributor uwi2k2's Avatar
    Join Date
    Mar 2011
    Posts
    97

    getting started

    hi,

    i guess to answer all question will confuse you even more.
    best place to start may be here:
    http://www.swiftless.com/tutorials/opengl/window.html
    follow this introduction and i guess you have everything you need..

    cu
    uwi
    uwi2k2 - OpenGL Trainer: www.opengl-trainer.com
    ---------------------------------------------------------
    Free Programming Helpline: www.programming-hotline.com
    ---------------------------------------------------------
    A Friday Night Programmer: www.uwiworld.net

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2012
    Posts
    4
    Thanks a lot !
    I didn't realize GLEW was including the whole GL sdk, I thought it was an additionnal lib to use extensions.. it all makes sense now

    thanks !

    Side note : for the beginner, the http://www.opengl.org/sdk/ web page is quite confusing

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    Location
    Australia
    Posts
    1,097
    glew is designed to expose all the functions of OpenGL that your graphics card supports. So it has to be called immediately after your device context is created.
    If you are an experienced DirectX coder, OpenGL is pretty easy to use. Assume that there is a function in OpenGL to mimic the one in DirectX (this is pretty true except for Compute Shaders - these are available with the release of 4.3 drivers but they are
    only in beta at the moment). There is no sdk as such but a lot of support code.

    I recommend you find glew to initialise the OpenGL interface, the glm library for matrices and vectors, freeglut for a simple window interface. and glsw shader wrangler to manager shaders. Also since your are from a DirectX environment perhaps Framework3 with has both a DirectX and slightly out of data OpenGL render manager so you can more easily compare how to do things in both environments (www.humus.name)

  5. #5

  6. #6
    Junior Member Newbie
    Join Date
    Nov 2012
    Posts
    4
    Thanks everybody !

    It's all clearer now.. Used GLew which is, indeed, a complete OpenGL SDK (I thought it was only an extension manager of some sort)..

  7. #7
    Super Moderator OpenGL Guru
    Join Date
    Feb 2000
    Location
    Montreal, Canada
    Posts
    4,264
    It is an extension loader and also a core GL function loader.
    GLEW is not an SDK!
    PS : if you are interested in modern GL only, then there are better loaders such as GL3W
    http://www.opengl.org/wiki/OpenGL_Loading_Library

    and then, for even more information for newcommers.
    http://www.opengl.org/wiki/Getting_Started
    ------------------------------
    Sig: http://glhlib.sourceforge.net
    an open source GLU replacement library. Much more modern than GLU.
    float matrix[16], inverse_matrix[16];
    glhLoadIdentityf2(matrix);
    glhTranslatef2(matrix, 0.0, 0.0, 5.0);
    glhRotateAboutXf2(matrix, angleInRadians);
    glhScalef2(matrix, 1.0, 1.0, -1.0);
    glhQuickInvertMatrixf2(matrix, inverse_matrix);
    glUniformMatrix4fv(uniformLocation1, 1, FALSE, matrix);
    glUniformMatrix4fv(uniformLocation2, 1, FALSE, inverse_matrix);

  8. #8
    Junior Member Newbie
    Join Date
    Nov 2012
    Posts
    4
    Quote Originally Posted by V-man View Post
    It is an extension loader and also a core GL function loader.
    GLEW is not an SDK!
    In most ways, it is It's a header/lib set that allows you to program OpenGL stuff.. so.. for me, it IS definetly a SDK !

    Quote Originally Posted by V-man View Post
    PS : if you are interested in modern GL only, then there are better loaders such as GL3W
    http://www.opengl.org/wiki/OpenGL_Loading_Library
    Thanks ! Will try that too !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •