Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Mavericks


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
6 replies to this topic

#1 Lycus   Members   -  Reputation: 107

Like
0Likes
Like

Posted 31 August 2014 - 06:25 PM

Got latest mac book pro, but i am using OpenGL 2.1 and glsl version 1.2, how can i change this. Please help me! [ Xcode c++ ]



Sponsor:

#2 Lycus   Members   -  Reputation: 107

Like
0Likes
Like

Posted 01 September 2014 - 06:10 AM

I need help to change glsl Version, someone please :(



#3 haegarr   Crossbones+   -  Reputation: 5050

Like
0Likes
Like

Posted 01 September 2014 - 07:12 AM

When you allocate the pixel format, use the belonging attribute

* either, when using Cocoa

NSOpenGLPFAOpenGLProfile, NSOpenGLProfileVersion3_2Core,

* or, when using CGL

kCGLPFAOpenGLProfile, (CGLPixelFormatAttribute)kCGLOGLPVersion_3_2_Core,

You then get, despite of the "3_2", a context with the highest version available on your computer.


Edited by haegarr, 01 September 2014 - 07:12 AM.


#4 Lycus   Members   -  Reputation: 107

Like
0Likes
Like

Posted 03 September 2014 - 04:25 PM

What do you mean by pixel format? Please Help. [ I am using OpenGl & SDL ] - Still cannot change version



#5 TheChubu   Crossbones+   -  Reputation: 5562

Like
2Likes
Like

Posted 03 September 2014 - 05:30 PM


Please help me!

someone please


Please Help.

Umm... Relax dude? You sound like you're getting knifed to death.


"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

 

My journals: dustArtemis ECS framework and Making a Terrain Generator


#6 JohnnyCode   Members   -  Reputation: 373

Like
0Likes
Like

Posted 03 September 2014 - 07:03 PM

 

but i am using OpenGL 2.1 and glsl version 1.2,

Opengl 2.1 should be able to compile GLSL code of 1.2 version (as any higher Opengl should compile downversioned GLSL language). You can specify explicitly what version to use by a macro in shader, like, #version 130 (hint for compiler and linker to version 1.3). If your GLSL shader code is exclusive on higher version than 1.2, and your limit is 1.2, setting macro to #version 120 and compile with this should give you at least errors, if any, on places where more advanced version does not conform to 1.2.



#7 Promit   Moderators   -  Reputation: 8277

Like
0Likes
Like

Posted 03 September 2014 - 08:49 PM

What do you mean by pixel format? Please Help. [ I am using OpenGl & SDL ] - Still cannot change version

Follow the instructions here:

http://www.opengl.org/wiki/Tutorial1:_Creating_a_Cross_Platform_OpenGL_3.2_Context_in_SDL_(C_/_SDL)

Mavericks will allow you to choose between 2.1, 3.3, and 4.1.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS