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

isExtSupported

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



Joined: 12 Sep 2011
Posts: 40

PostPosted: Tue Feb 21, 2012 11:53 am    Post subject: isExtSupported Reply with quote

I need to check if extensions are supported, I found: https://github.com/aldacron/Derelict3/blob/master/import/derelict/opengl3/internal.d#L59, why don't you have it public? I wanna check SDL/glfw independent, or is there another way?
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Tue Feb 21, 2012 4:55 pm    Post subject: Reply with quote

Just use the extension name as a boolean. Example:

Code:

if(ARB_copy_buffer)
...


Only ARB extensions are supported at the moment.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
dav1d



Joined: 12 Sep 2011
Posts: 40

PostPosted: Tue Feb 21, 2012 6:11 pm    Post subject: Reply with quote

Great!
But I am missing: http://www.nvidia.com/dev_content/nvopenglspecs/GL_ARB_texture_non_power_of_two.txt
Are the ARB extensions not fully integrated yet, or am I doing it wrong?
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Tue Feb 21, 2012 9:31 pm    Post subject: Reply with quote

Support for the ARB extensions as defined by gl3.h is fully implemented. gl3.h does not include ARB_texture_non_power_of_two, because it has been part of the core OpenGL API since OpenGL 2.0. So if you are using core, modern OpenGL, which you should be if you are using Derelict 3, then you are good to go.
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
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