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

Missing GL_TEXTURE_MAX_ANISOTROPY_EXT in GLEnum ?

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



Joined: 28 May 2011
Posts: 17
Location: Spain

PostPosted: Thu Jun 02, 2011 5:33 pm    Post subject: Missing GL_TEXTURE_MAX_ANISOTROPY_EXT in GLEnum ? Reply with quote

It's missing GL_TEXTURE_MAX_ANISOTROPY_EXT and GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT . Or I must do anisotropic texture filtering by other method ?

I get a :

Code:
src/display/sdl/material.d(99): Error: undefined identifier GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
src/display/sdl/material.d(102): Error: undefined identifier GL_TEXTURE_MAX_ANISOTROPY_EXT


Code :
Code:

if (DerelictGL.isExtensionLoaded("GL_EXT_texture_filter_anisotropic")) {
                  GLfloat ansio = 1.0f;
                  glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &ansio);
                  ansio = (ansio < _anisotropy) ? ansio : _anisotropy;
                  // Cap anisotropy level to max soported by hardware
                  glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, ansio );
               }
Back to top
View user's profile Send private message
aldacron



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

PostPosted: Thu Jun 02, 2011 7:23 pm    Post subject: Reply with quote

Are you importing derelict.opengl.glext?
_________________
The One With D | The One With Aldacron | D Bits
Back to top
View user's profile Send private message Send e-mail
Zardoz



Joined: 28 May 2011
Posts: 17
Location: Spain

PostPosted: Fri Jun 03, 2011 2:24 am    Post subject: Reply with quote

OUCH!!!! Embarassed
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