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 3 of 3

Thread: OpenGL Context + ShadingLanguage

  1. #1
    Newbie Newbie
    Join Date
    Jul 2017
    Posts
    2

    OpenGL Context + ShadingLanguage

    Hello,

    i am trying to setup OpenGL on my MacMini (2014). OpenGL 4.1 supported.

    I use GLFW to create the Context.
    My Shaders are 1.30
    So i want to Create an OpenGL 3.0 Context.



    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 0);
    glfwCreateWindow(340, 280, "glfw", NULL, NULL);

    But than CreateWindow return NULL.

    Which Context / GLSL is supported on Linux,Window and Mac?

  2. #2
    Advanced Member Frequent Contributor arekkusu's Avatar
    Join Date
    Nov 2003
    Posts
    871
    Quote Originally Posted by matti83 View Post
    Which Context / GLSL is supported on Linux,Window and Mac?
    OSX Supports:
    Code :
    A "Legacy" (Compatibility) profile: GL 1.1, 1.2, 1.3, 1.4, 1.5, 2.0, 2.1    GLSL 100, 110, 120
    A "Core" profile:                   GL 3.2, 3.3, 4.0, 4.1                   GLSL 140, 150, 330, 400, 410
    You will always get the highest context version your driver can support (i.e. 2.1 or 4.1). Note that the older language versions are not supported in core profile. And note that version #130 isn't supported at all.

  3. #3
    Newbie Newbie
    Join Date
    Jul 2017
    Posts
    2

    Thank You.

    Using CoreProfile GL 3.2 GLSL 1.50

    Works on all three platforms.

    Nice.

Posting Permissions

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