Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using the Code? #3

Open
ltrout opened this issue Jun 12, 2015 · 1 comment
Open

Using the Code? #3

ltrout opened this issue Jun 12, 2015 · 1 comment

Comments

@ltrout
Copy link

ltrout commented Jun 12, 2015

I was wanting to use this code as a building block for my game that I am wanting to create. I uploaded the project into eclipse, and I am getting all kinds of errors (over 100+ to be exact). I was wondering, what external jars are you using? I install lwjgl (3.0.0, 2.9.3, 2.9.0) Tried each of them, the 3.0.0 solved a lot of issues, but I still have some others basically on Texture classes and everything. If you could please share what other stuff you used with this project please!

Edit: I fixed all but one error, Now it is saying on line 29-43 of GLUtils.java in package: org.craftmania.rendering, that it cannot make a static from a non-static method on GlContext.getCapabilities.

@mcourteaux
Copy link
Owner

Let me think. I'm using LWJGL, SlickUtils. According to http://javadoc.lwjgl.org/org/lwjgl/opengl/GLContext.html#getCapabilities(), it seems that this getCapabilities() is no longer static. I haven't used LWJGL in a while. But it seems that using http://javadoc.lwjgl.org/org/lwjgl/opengl/GLContext.html#createFromCurrent(), you would be able to solve it. Try something like this:

 ContextCapabilities cap = GLContext.createFromCurrent().getCapabilities();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants