Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

  1. #1
    Member Contributor
    Join Date
    Jun 2003
    Location
    Hamilton,On,Canada
    Posts
    55

    Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    The reason I ask this question is I import 'OpenGL' unit and try to use 'glArrayElement' routine in Delphi 5.0, but the compiler told me that it is undefined identifier. I want to solve this problem and use 'glArrayElement' or the routine with same function.

    Can you tell me what unit to include? Any related ideas are apperiated.

    Thank you!

  2. #2
    Member Contributor
    Join Date
    Jun 2003
    Location
    Hamilton,On,Canada
    Posts
    55

    Re: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    Hi! I checked the SDK help files of Delphi 5.0. And found there is alternative routine 'glArrayElementEXT'. However, the version of my Delphi doesn't support it. How can I update it?

    Thank you!

    By the way, the way I check if it support 'glArrayElementEXT':
    I use the code
    Code :
    EXTstr := glGetString(GL_EXTENSIONS);
    Memo1.lines.Add(EXTstr);
    the out put is "GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture", but it needs "GL_EXT_vertex_array" to support this function.

    What can I do to update the Delphi?

    Thank you!

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Nov 2002
    Location
    Latvia
    Posts
    626

    Re: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    This routine is core GL spec from 1.3, maybe even earlier, make sure you have recent drivers & unit files, & take a look at GL1.4 spec's there should be more info. If that doesnt help, you'll have to manualy get function adresses & assign them to f/n pointers. I can't tell you how this can be done in F**N Delphi (SORRY)!

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,633

    Re: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    Originally posted by earth_walker:
    <...>
    By the way, the way I check if it support 'glArrayElementEXT':
    I use the code
    Code :
    EXTstr := glGetString(GL_EXTENSIONS);
    Memo1.lines.Add(EXTstr);
    the out put is "GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture" <...>
    Is that the complete list? Then you're in trouble. Could you please check the GL_VENDOR, GL_RENDERER and GL_VERSION strings (in the same way)? If you get "MS GDI Generic" or similar you won't have much luck, then your problem lies elsewhere.

  5. #5
    Junior Member Newbie
    Join Date
    Oct 2002
    Posts
    15

    Re: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    glArrayElement() is from "gl", not from glu or glut.

    the first version of OpenGL to support vertex arrays, including this function is 1.1, which version is very old and very common...

  6. #6
    Senior Member Frequent Contributor
    Join Date
    Nov 2002
    Location
    Latvia
    Posts
    626

    Re: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    Your vcard =>.........

  7. #7
    Member Contributor
    Join Date
    Jun 2003
    Location
    Hamilton,On,Canada
    Posts
    55

    Re: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    Hi! zeckensack:

    Yes, that is the complete list.
    I checked the veriable names you provided:
    VENDOR='Microsoft Corporation'
    RENDERstr='GDI Generic'
    VERSION='1.1.0'

    Seems I'm in trouble. If cannot update it, I think I'm going to use the simpler commands such as "glVertex".

    Thank you for your help.

    By the way: Is this the problem of Microsoft Windows or the problem of Delphi? I guess it is the problem of Delphi because it provides the .dcu files to import. Just want to confirm.

  8. #8
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    The Microsoft drivers do include the vertex array stuff, so your problem is likely something with how Delphi imports the functions. I can't help you much with that as I know next to nothing about Delphi.

    You might want to look into finding updated drivers for your video card, though. Most recent cards have OpenGL drivers that are vastly superior to the default Microsoft ones, even for the simple stuff.
    Deiussum
    Software Engineer and OpenGL enthusiast

  9. #9
    Member Contributor
    Join Date
    Jun 2003
    Location
    Hamilton,On,Canada
    Posts
    55

    Re: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    M/\dm/\n:
    Hi! The video card is Savage4 from S3 Graphics Inc. 8MB ram.
    The Driver Date is 6/6/2001. Is that old?
    It seems pretty hard to update it, because that computer is a stand alone one and don't have internet, and I'm not sure if I should download the driver from S3Graphic homepage because S3 is only a chip manufacturer, but I will try to check somewhere else.

  10. #10
    Senior Member OpenGL Pro
    Join Date
    Oct 2000
    Location
    Fargo, ND
    Posts
    1,753

    Re: Is 'glArrayElement' defined in OpenGL library or in GUL or in GULT?

    I haven't had an S3 card since before the first Voodoo came out, but so far as I know, S3 cards don't have very good OpenGL support.

    Maybe they've improved somewhat since then, but they don't get nearly the attention that nVidia and ATI cards get, so I'm not sure...
    Deiussum
    Software Engineer and OpenGL enthusiast

Page 1 of 2 12 LastLast

Similar Threads

  1. glArrayElement in openGL 1.4
    By smaximz in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-17-2012, 04:48 PM
  2. VBO and glArrayElement
    By hoschi in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 04-11-2003, 02:56 AM
  3. user defined menus with opengl, GLUT
    By villglut in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 01-10-2003, 11:33 AM
  4. glArrayElement()
    By Allan Walton in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 09-20-2002, 03:13 AM
  5. glDrawElements vs glArrayElement
    By kurko in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-16-2000, 05:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean