Jump to content

View more

Image of the Day

Boxes as reward for our ranking mode. ヾ(☆▽☆)
#indiedev #gamedev #gameart #screenshotsaturday https://t.co/ALF1InmM7K
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

Mavericks

4: Adsense

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   

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++ ]



#2 Lycus   Members   

107
Like
0Likes
Like

Posted 01 September 2014 - 06:10 AM

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



#3 haegarr   Members   

7359
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   

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   Members   

9323
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   

1161
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   Senior Moderators   

13097
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.


SlimDX | Shark Eaters for iOS | Ventspace Blog | Twitter | Proud supporter of diversity and inclusiveness in game development




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.