George Cloone-y
George Cloone-y

Reputation: 455

OpenGL - OS X using GL11

I was developing a game in Java & OpenGL on Windows and yesterday I got a new Macbook Pro. When I moved my code from the Windows machine to the OS X machine I got an error that said couldn't compile shaders. I read on the internet that it's because in OS X you have to turn ProfileCore to true which is only supported in OpenGL 3.2 + . Here is my problem: For my GUI and my Text I use GL10 functions and I use the Slick2D library. When-ever I set my OpenGL version to be 3.2 with core profile the game runs fine but I get an error on Slick2D code.

Upvotes: 2

Views: 177

Answers (1)

Zanval
Zanval

Reputation: 191

I do not have enough reputation to comment, so I must write this as an answer.

The core profile is a configuration in OSX which sets the used OpenGL version. https:// developer.apple.com/graphicsimaging/opengl/capabilities/

Slick2D should support lower OpenGL Versions. I have used it with OpenGL version 2.1 on Linux and Windows. My Application also ran in OSX.

Try out core profile version 2.1. This is the version that was most compatible to PCs (and Macs) in my testing.

I do not fully understand your second question. Are you looking for an alternative engine? I can recommend libGDX for cross-platform game development with Java. (http://libgdx.badlogicgames.com/)

If you are open to non-Java Game Engines, you can use Unity3D of course. (http://unity3d.com/)

Upvotes: 1

Related Questions