Results 1 to 2 of 2

Thread: Problem with glLightModelf in OpenGL ES SC 1.0

  1. #1
    Junior Member
    Join Date
    Jun 2008

    Problem with glLightModelf in OpenGL ES SC 1.0

    I have a question related with an inconsistency in ES SC 1.0 specification. According to the spec., glLightModef API function is one of the supported API functions in a list of 101 API. glLightModelf specifies a single-valued lighting model parameter and normally, its accepted parameters are GL_LIGHT_MODEL_LOCAL_VIEWER and GL_LIGHT_MODEL_TWO_SIDE. However, according to ES SC 1.0 spec., both of these parameters are non-supported. So, there is no accepted parameter left to be used with glLightModelf. Is it correct? Will glLightModelf always generate GL_INVALID_ENUM error? Then, why it is in supported API list for ES SC?

    Any help would be great! Thanks!

  2. #2
    Senior Member
    Join Date
    Sep 2003
    Seattle, WA

    Re: Problem with glLightModelf in OpenGL ES SC 1.0

    As a matter of fact, that is also my interpretation in Vincent SC:
    Code :
    void VPMT_ExecLightModelf(VPMT_Context * context, GLenum pname, GLfloat param)
    	/* is this actually a mistake in the specification? */

    - HM

Similar Threads

  1. OpenGL-ES 2.0 problem
    By SimonS in forum OpenGL ES general technical discussions
    Replies: 2
    Last Post: 09-06-2011, 12:26 AM
  2. OpenGL Problem
    By twnuck in forum KTX - file format for OpenGL, OpenGL ES, and WebGL textures
    Replies: 1
    Last Post: 05-02-2011, 06:39 PM

Posting Permissions

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