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

Re: [Public WebGL] Adding internalformat param to all texImage2d variants



On May 14, 2010, at 12:03 PM, Kenneth Russell wrote:

>> ...
>> It could be that, or we could make internalformat an optional param (shuffling the param order as needed). In either case, we should have a default internalformat, but it should not be 0. We should have a constant for it.
> 
> If we define a new constant then we have to start worrying about
> collisions with OpenGL ES 2.0 constants. Currently WebGL does not add
> any constants to the namespace.
> 
> 0 represents a default value or binding in many other places in the API.

But I've never seen 0 (or any numeric value) described as a valid value for enums in OpenGL. With that said, there is already an enum of NONE, which happens to have the value of 0. So I'd feel comfortable having that value represent the "don't convert" concept.

-----
~Chris
cmarrin@apple.com





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