Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Does LWJGL only work on desktop?  (Read 4192 times)
0 Members and 1 Guest are viewing this topic.
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Posted 2013-11-24 23:45:12 »

Well, I came to the point where I want to try android. Here we go!

I am acceptionally fluent in LWJGL, and I was wondering if there is a way to use LWJGL on android devices? Or do you have to use the given API from android?

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #1 - Posted 2013-11-24 23:46:32 »

No, it only works on a desktop.

Also, no offense, but saying you're exceptionally fluent is ignorant and makes you sound bad.

Offline opiop65

JGO Kernel


Medals: 153
Projects: 7
Exp: 3 years


JumpButton Studios


« Reply #2 - Posted 2013-11-24 23:47:10 »

Although, there is OpenGL ES. That's pretty much OpenGL, but its a little different.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline quew8

JGO Coder


Medals: 29



« Reply #3 - Posted 2013-11-24 23:52:27 »

OpenGL ES is the api you will use in the standard Android libraries (at least one of them). Make sure you use OpenGL ES 2.0 (the setup can be a little troublesome), make sure you don't cross 1.0 with 2.0 and make sure you know what features OpenGL ES doesn't have (it is essentially a watered down version of OpenGL as you would expect). If you are so exceptionally fluent then you will have no problem.

Also, I'm sure it was just a typo but, I found it really funny that you spelled "exceptionally" with an "a." Not sure why. Not sure why I told you.
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #4 - Posted 2013-11-24 23:56:01 »

Sorry. I set my computer to french to learn it better for school. Sometimes the spelling errors come.

Thanks for pointing me to ES 2.0!

Offline quew8

JGO Coder


Medals: 29



« Reply #5 - Posted 2013-11-25 00:08:19 »

Oh my god, the number of times I've done that on my phone.
Offline xsvenson
« Reply #6 - Posted 2013-11-25 13:10:10 »

Or You could use  LibGDX and have less worries

“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Offline quew8

JGO Coder


Medals: 29



« Reply #7 - Posted 2013-11-25 20:41:50 »

I think scrapping everything you have created so far and swapping over to a new library that requires learning and experience of the api all over again and yet does not serve any extra purpose required of it over the original would not lead to less worries. Quite the opposite.

In fact we have pointed @wessles to a library that is standard in Android, requires no specialised setup and shares 100% of the core features and api to what he is used to. I have no interest in starting a grudge match between LWJGL and LibGDX - people can use whichever library they want to. But I do think you should extrapolate that thought out into not badmouthing other libraries purely because they are not your own choice.
Offline pitbuller
« Reply #8 - Posted 2013-11-25 21:06:55 »

Easiest path to use direct openGl with no android spesific hassle is use libgdx but make all openGl es related by yourself. Just use it as windowing , input api and main loop.
Offline wessles

JGO Wizard


Medals: 66
Projects: 4
Exp: 3 years


Radirius Software Developer


« Reply #9 - Posted 2013-11-25 21:22:54 »

Fantastic idea!
PS: Why the heck did I get a medal?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Simn
« Reply #10 - Posted 2013-11-25 22:31:23 »

Are you going to use it as a backend for MERCury? If you are, that would be really cool! I've myself thought of an Android backend, but never on how I would implement it.

- Simn
Offline xsvenson
« Reply #11 - Posted 2013-11-26 11:45:08 »

I think scrapping everything you have created so far and swapping over to a new library that requires learning and experience of the api all over again and yet does not serve any extra purpose required of it over the original would not lead to less worries. Quite the opposite.

In fact we have pointed @wessles to a library that is standard in Android, requires no specialised setup and shares 100% of the core features and api to what he is used to. I have no interest in starting a grudge match between LWJGL and LibGDX - people can use whichever library they want to. But I do think you should extrapolate that thought out into not badmouthing other libraries purely because they are not your own choice.

If this was directed at me, then I do not know what You mean by "badmouthing". I did no such thing. As the op was asking a question of "does it work", with libgdx, there is no such question, because it sure does work, hence the reference of "use libgdx and have less worries".
Also as the OP did not specify how much code there is already in place, the point about "scrapping and swapping" is moot. In case multi-platform support is desirable then the time spent to learn the library is well spent.
I myself have rewritten my game from java2D -> slick -> libgdx, as such I am well aware of the effort needed and I do not regret doing it.

The question boils down to if the OP wants to make something workable, a product, in which case productivity is the key and libgdx offers more than lwjgl. In case the OP wants to tinker and write stuff, experiment, learn etc., then the question presented in by the OP has less weight since even if lwjgl doesn't work on andriod, the OP could just make it work (or learn that it's unfeasible) as a learning exercise as a sort.

I do not see any bad-mouthing lwjgl nor even any negative attitude by me towards the library.

If it wasn't directed at me, well then... sorry and  carry on.

Edit: Also, not really comparing and am well aware of the differences. I was just suggesting something that in my mind might suit better.

“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Offline princec

JGO Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #12 - Posted 2013-11-26 11:56:01 »

Simmer down folks... you can't compare libgdx and lwjgl. libgdx is built on top of lwjgl.

Cas Smiley

Offline quew8

JGO Coder


Medals: 29



« Reply #13 - Posted 2013-11-26 17:39:47 »

@xsvenson The first paragraph was directed at you - apologies if you took offence (honestly that was not my intention) - I was just expressing that I didn't feel your statement was relevant in this instance. The second paragraph was a more general statement.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

E.R. Fleming (13 views)
2014-07-29 03:07:13

E.R. Fleming (4 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!