[NoBug] Disable init of glew

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

Alundra
Not too shy to talk
Not too shy to talk
Posts: 33
Joined: Mon Jun 30, 2014 03:29

[NoBug] Disable init of glew

Postby Alundra » Mon Jun 30, 2014 03:32

Hi,
I'm new in CEGUI so maybe this feature already exist.
I have a 3D renderer who already init OpenGL extensions but I saw CEGUI renderer does using GLEW.
Is it possible to disable this init of glew without changing the renderer code ?
If it's not possible, it could be nice to allow to disable using a macro.
Thanks

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Disable init of glew

Postby Ident » Mon Jun 30, 2014 08:43

CEGUI doesn't care how you create your OpenGL context. It shouldn't be a problem at all. Did you even try it out?
CrazyEddie: "I don't like GUIs"

Alundra
Not too shy to talk
Not too shy to talk
Posts: 33
Joined: Mon Jun 30, 2014 03:29

Re: Disable init of glew

Postby Alundra » Mon Jun 30, 2014 13:57

Using the opengl renderer of CEGUI I have to add the glew lib in my project but I don't use glew to avoid to add this lib, I have a generated .h/.cpp.
I'm not happy to have to add this lib ... Do I must change the OpenGL renderer or write mine for my 3D engine ?
I use : https://bitbucket.org/alfonse/glloadgen/wiki/Home

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Disable init of glew

Postby Kulik » Mon Jun 30, 2014 14:33

CEGUI uses glew, you should not need to add glew to your project because CEGUI links to glew.

Feel free to rewrite the OGL renderer to use whatever you like but don't expect help from us.

Frankly I have no idea what this is about because the impact on your code is roughly 0. Just use it as it is and be happy about it. glew doesn't prevent your OGL extension loader from working. The whole thing seems like an acute case of OCD :-)

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Disable init of glew

Postby Ident » Mon Jun 30, 2014 16:34

You do not need to include the headers INTO your own code, you do not need to do anything with glew. Since it does not affect your own code, your includes, and your general project at all, and since you can use the library you linked without having to care about glew, can you point out what exactly the issue is? do you have linker issues? redefines? anything?
As far as I see you are just complaining about having to link to glew for no reason (or maybe a religious or spirutual one) becaue you havent shown us how or in what way the fact that CEGUi uses glew is limiting you. How is it?
CrazyEddie: "I don't like GUIs"

Alundra
Not too shy to talk
Not too shy to talk
Posts: 33
Joined: Mon Jun 30, 2014 03:29

Re: Disable init of glew

Postby Alundra » Mon Jun 30, 2014 16:45

Yes it's just because of link an additional external lib, but if no way exist to avoid that I will do with.

User avatar
Kulik
CEGUI Team
Posts: 1382
Joined: Mon Jul 26, 2010 18:47
Location: Czech Republic
Contact:

Re: Disable init of glew

Postby Kulik » Mon Jun 30, 2014 17:13

We use functionality of glew in the OGL renderer. What do you suggest we should do? We could avoid the dependency if we queried our extensions by hand but frankly that's very expensive to maintain. If you are willing to write the code to avoid the glew dependency I think we would consider it.

User avatar
Ident
CEGUI Team
Posts: 1998
Joined: Sat Oct 31, 2009 13:57
Location: Austria

Re: Disable init of glew

Postby Ident » Mon Jun 30, 2014 17:17

Kulik wrote: If you are willing to write the code to avoid the glew dependency I think we would consider it.

And who would maintain that code in the future?

Asking us to not depend on external libraries seems like a strange idea to me. We won't reinvent the wheel when the functionality is already provided in well established and fully functional libraries.
CrazyEddie: "I don't like GUIs"


Return to “Bug Reports, Suggestions, Feature Requests”

Who is online

Users browsing this forum: Baidu [Spider] and 10 guests