[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Public WebGL] Addition of texParameteriv and texParameterfv signatures



Hi,

WebGL specification does not currently expose signatures for ES's
texParameteriv and texParameterfv.

I assume the rationale for not proposing them is that none ES 2.0
pname accepts a float or integer array, hence it just generates
INVALID_ENUM by default.
However by that rationale ES would also have removed these signatures
and since WebGL is designed for being extensible (like his ES / GL
siblings), I believe it only makes sense to add them in the spec.
Indeed new pname(s) can be defined by an extension (whether it is a
binding for an existing ES or GL extension - or a WebGL-specific
extension).


I propose addition of these signatures in the spec :

void texParameterfv(GLenum target, GLenum pname, WebGLFloatArray v)
raises (DOMException);
void texParameterfv(GLenum target, GLenum pname, sequence v) raises
(DOMException);

void texParameteriv(GLenum target, GLenum pname, WebGLIntArray v)
raises (DOMException);
void texParameteriv(GLenum target, GLenum pname, sequence v) raises
(DOMException);


Regards,
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: