Results 1 to 2 of 2

Thread: Problem with glLightModelf in OpenGL ES SC 1.0

  1. #1
    Junior Member
    Join Date
    Jun 2008
    Posts
    1

    Problem with glLightModelf in OpenGL ES SC 1.0

    Hi!
    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!
    Gonul

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

    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)
    {
    	VPMT_ERROR(context, GL_INVALID_ENUM);
     
    	/* is this actually a mistake in the specification? */
    }

    - HM

Similar Threads

  1. OpenGL-ES 2.0 problem
    By SimonS in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 2
    Last Post: 09-06-2011, 12:26 AM
  2. OpenGL Problem
    By twnuck in forum KTX
    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
  •