glBlendFunci is not present in gl3?

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

glBlendFunci is not present in gl3?

elect
In this page, there is the interface GL3

it extends:

GL, GL2ES2, GL2ES3, GL2GL3, GL3ES3, GLBase

and if you search for "glBlendFunci" you can see it is part of:

Methods inherited from interface com.jogamp.opengl.GL2GL3

But I dont have any glBlendFunci in my GL3 or GL2GL3..

If I search for references in JOGL, only GL4 results pop up..

This is not the first time I see a mismatch between wiki and lib, also in Math there were some mismatch regarding quaternion related functions..
Reply | Threaded
Open this post in threaded view
|

Re: glBlendFunci is not present in gl3?

gouessej
Administrator
Hi

Do you use JOGL 2.3.1? Maybe there is a problem in the generation of GL* classes.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: glBlendFunci is not present in gl3?

elect
gouessej wrote
Hi

Do you use JOGL 2.3.1? Maybe there is a problem in the generation of GL* classes.
Salut gouessej

I dont know, but if I look in the properties of the jogl-all.jar, I see

Size: 3,05 MB (3.206.526 Bytes)

Size on hd: 3,05 MB (3.207.168 Bytes)

and the last one, 2.3.1 says

3,16 MB (3.321.517 Bytes)

So I updated to the 2.3.1 but nothing changed


Anyway looking around, it seems glBlendFunci is really available only from GL4

http://www.g-truc.net/post-0269.html

So this would make sense, so only the wiki remains wrong at this point
Reply | Threaded
Open this post in threaded view
|

Re: glBlendFunci is not present in gl3?

gouessej
Administrator
Actually, you mean that the Java documentation is wrong, don't you? Yes, glBlendFunci should be available only in GL4. I'll clear my cache to be sure that there is still a problem.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: glBlendFunci is not present in gl3?

Sven Gothel
Administrator
On 04/10/2015 02:18 PM, gouessej [via jogamp] wrote:
> Actually, you mean that the Java documentation is wrong, don't you? Yes,
> glBlendFunci should be available only in GL4. I'll clear my cache to be sure
> that there is still a problem.

<http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GL2GL3.html#glBlendFunci%28int,%20int,%20int%29>

+++
void glBlendFunci(int buf,
                int src,
                int dst)

Entry point to C language function: void glBlendFunci(GLuint buf, GLenum src, GLenum dst)
Part of GL_VERSION_4_0, GL_ARB_draw_buffers_blend, GL_EXT_draw_buffers_indexed, GL_OES_draw_buffers_indexed
Alias for: glBlendFunciARB, glBlendFunciEXT, glBlendFunciOES
+++

See the 'Part of ' line, which explains why we subsumed it,
i.e. the extensions!
 
If this makes no sense, i.e. those extensions are only available
w/ a higher profile .. pls report.
In this case, it might be even available via
embedded extension GL_OES_draw_buffers_indexed.

~Sven



signature.asc (828 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: glBlendFunci is not present in gl3?

Sven Gothel
Administrator
In reply to this post by gouessej
On 04/10/2015 02:44 PM, Sven Gothel wrote:
>
> See the 'Part of ' line, which explains why we subsumed it,
> i.e. the extensions!

^^ hence it is recommended to always import/attach our source zip file
to the jar file (see wiki/faq) and 'mouse over' to check whether the
specific GL function is indeed a core function.

Usually the subsumed functions and constants are the minority ..

Yes, this is a compromise to avoid duplication!

~Sven




signature.asc (828 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: glBlendFunci is not present in gl3?

gouessej
Administrator
In reply to this post by Sven Gothel
I assume that he meant that glBlendFunci is only in GL4 despite the documentation that mentions it in GL2GL3. I've just tested with an old version of JOGL and only GL4.glBlendFunci compiles, not GL2GL3.glBlendFunci.

He can safely use it if his hardware supports OpenGL 4, otherwise he should check if one of the extensions is available.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: glBlendFunci is not present in gl3?

elect
I upgraded to GL4..