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

Thread: glslang shaderObject errors

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2004
    Location
    Minnesota, US
    Posts
    2

    glslang shaderObject errors

    Thank you for reading this post.

    I am experienced with OpenGL 1.2 and its fixed functionality, and so I have decided to learn glslang over the summer. I have purchased the orange book on the OpenGL Shading Language by Rost, and I find this an excellent book. I have a basic understanding of the red book as well (version 1.2), but little experience with programming with extentions. Currently I am trying to write some very simple shaders and introduce them into the rendering pipeline of OpenGL. However, I am experiencing some compile errors with the new extentions and function calls that are introduced in glslang.

    This is my problem:
    When I call 'glCreateShaderObjectARB', 'glShaderSourceARB', 'glCompileShaderARB', 'glCreateProgramObjectARB', 'glAttachObjectARB', and 'glLinkProgramARB' I receive an error message in VC6.0 - "undeclared identifier." I believe that this implies that I am not including a header file correctly, or my header files are out of date. I believe that my glext.h file is current (I just replaced it today and it was about 100k larger than the previous file). The previous function calls were the only things added to an otherwise working "spinning cube" program.

    I'm sure this is a question that has already been answered on the boards, but I have searched through them and was unable to find the answer. As I said, I am unexperienced with extentions in general. Any help would be appreciated.

    Thank you
    ~stu


  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Feb 2004
    Location
    Long Island, New York
    Posts
    586

    Re: glslang shaderObject errors

    Stu,

    go to google and search for 'GLEW'; follow the first link.

    It's a utility that should help get you up to speed (and keep you up to speed) with the constant extension updates.

    happy shader coding!

Posting Permissions

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