Results 1 to 3 of 3

Thread: Hybrid Implementation ... What's wrong?

  1. #1

    Hybrid Implementation ... What's wrong?

    I'm assuming I've done something silly, but regardless, I'll state my problem.

    I've successfully compiled and run the sample program given with Hybrid's Gerbera implementation. Just for fun, I added the following lines, but unfortunately they had no effect.

    Code :
     

    Unfortunately the cube doesn't change color, even if I set glColor4x(0x1000, 0x1000, 0x1000, 0) and glDisable(GL_LIGHTING)

    Have I gone crazy, or is this a problem with the Hybrid implementation?

  2. #2
    Junior Member
    Join Date
    Sep 2004
    Location
    Helsinki, Finland
    Posts
    12

    Re: Hybrid Implementation ... What's wrong?

    Hi bentlegen,

    According to the spec the number of components per color has to be 4. Also there is no function called glColorArrays() in OpenGL ES. The function you are looking for is glColorPointer(). Thus with the following lines you'll get the results you want:

    Code :
     

    Cheers,
    Sampo

    Edit: The code inside the code section seems to behave strangely. I tried to edit it to be more readable...

    [ October 05, 2004: Message edited by: Sampo Lappalainen / Hybrid Graphics ]
    o Sampo Lappalainen, Software Engineer
    o Hybrid Graphics, Ltd. www.hybrid.fi

  3. #3

    Re: Hybrid Implementation ... What's wrong?

    Thanks for the hand. Now don't I look silly ...

    - Ben

Posting Permissions

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