I am in way over my head in trying to play with this but I am trying it anyway. I am trying to change from ARB_imaging to GL_EXT_blend_color in wings_proxy.erl. After getting some errors about undefined macros, I discovered that inside of esdl-1.0.1\api_gen\gldefs is a list of (I assume) macros. There is already a list for GL_EXT_blend_color in the gldefs file. Using the names in this list got rid of the undefined macro errors. The code below will compile but when I use Shift Tab followed by Tab I get a crash that locks up Wings3d and requires shutting down the erlang console window in order to exit wings3d. In the erlang console I see the following which I assume is the problem. "setting wireframed_objects on geom to {1,{1,nil,nil}}"
nil cannot be a good thing....
I am thinking the nils are coming from the gl:blendColor line below???
case wings_gl:is_ext('GL_EXT_blend_color') of
false -> ok;
true ->
case wings_pref:get_value(Key) of
1.0 -> ok;
Opacity ->
gl:enable(?GL_BLEND_COLOR_EXT),
gl:blendFunc(?GL_CONSTANT_ALPHA_EXT, ?GL_ONE_MINUS_CONSTANT_ALPHA_EXT),
gl:blendColor(0, 0, 0, Opacity)
end
The documentation for GL_EXT_blend_color says I should use "BlendFunc" instead of "blendFunc" and use "BlendColorEXT" instead of "blendColor". However, when I change those I get "variable 'BlendFunc' is unbound".
Anyone have any ideas?
oort
nil cannot be a good thing....
case wings_gl:is_ext('GL_EXT_blend_color') of
false -> ok;
true ->
case wings_pref:get_value(Key) of
1.0 -> ok;
Opacity ->
gl:enable(?GL_BLEND_COLOR_EXT),
gl:blendFunc(?GL_CONSTANT_ALPHA_EXT, ?GL_ONE_MINUS_CONSTANT_ALPHA_EXT),
gl:blendColor(0, 0, 0, Opacity)
end
The documentation for GL_EXT_blend_color says I should use "BlendFunc" instead of "blendFunc" and use "BlendColorEXT" instead of "blendColor". However, when I change those I get "variable 'BlendFunc' is unbound".
Anyone have any ideas?
oort
