FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Derelict2 missing draw function glDrawElementsBaseVertex

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
ParticlePeter



Joined: 19 Nov 2011
Posts: 49
Location: Germany

PostPosted: Tue Feb 14, 2012 3:33 pm    Post subject: Derelict2 missing draw function glDrawElementsBaseVertex Reply with quote

Hi Aldacron,

For sure you're quite busy with Derelict3, but if you might find some time to add this function:
http://www.opengl.org/sdk/docs/man3/xhtml/glDrawElementsBaseVertex.xml
And maybe sibling functions ( Range, Instanced, etc. ) to Derelict2 ?
AFAIK it was introduced with GL3.2

Thanks
_________________
Cheers, searching for the Pivot of my Soul, PP
Back to top
View user's profile Send private message
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Tue Feb 14, 2012 8:37 pm    Post subject: Reply with quote

Right, that's from the ARB_draw_elements_base_vertex, the library symbols for which are reused by 3.2. I need to figure out the best way to handle this, given the module layout in Derelict2. At the time, I wasn't really familiar with 3.x, so I didn't give it much thought.

Actually, now I see an easy way to handle this. I'll see about adding support for this and the rest of the missing 3+ functions today.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
aldacron



Joined: 05 May 2004
Posts: 1322
Location: Seoul, South Korea

PostPosted: Wed Feb 15, 2012 12:25 am    Post subject: Reply with quote

I've added support for all of the "reused" extensions from 3.0 - 3.3. I'll get to the 4.x stuff later.

The way I've done it is not ideal. I've implemented them exclusively as part the extension loader, which means that just using loadModernVersions is not enough. To get full 3.x support, you'll have to be sure to also call loadExtensions and import derelict.opengl.glext. From what I've seen, drivers report those extensions as supported even when loading the version they were incorporated into, so this *should* work for quite some time.

I wanted to do it differently, but it would require some hacking of the extension loader. I just don't think it's worth it at this point.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
ParticlePeter



Joined: 19 Nov 2011
Posts: 49
Location: Germany

PostPosted: Wed Feb 15, 2012 4:01 am    Post subject: Reply with quote

Thank you very much,

I am maximally satisfied Smile with this "patch". Anyway, I'm looking forward to use Derelict3 with pure gl3, just waiting ( patiently ) for SDL support.
_________________
Cheers, searching for the Pivot of my Soul, PP
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group