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!

As a matter of fact, that is also my interpretation in Vincent SC:

void VPMT_ExecLightModelf(VPMT_Context * context, GLenum pname, GLfloat param)

	/* is this actually a mistake in the specification? */

  • HM

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.