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
    Helsinki, Finland

    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 :


    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.

  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
Proudly hosted by Digital Ocean