Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - gamedev-eo

Pages: [1]
Support / Re: HelloWorld for Android
« on: August 16, 2016, 08:26:02 pm »
Which deprecated features does it use?

Texture texture = new Texture(BitmapHelper.rescale(BitmapHelper.convert(getResources().getDrawable(R.drawable.icon)), 64, 64));

Android Studio reports 'getDrawable(int) is deprecated'

Do I need those import javax.microedition.khronos.opengles.GL10; statements or can I use an Android opengles library and an Android egl rather than the JDK versions?

If possible, could you help me modify this to be more modern Android best practice friendly. You said yourself you are doing things like

mGLView.setEGLConfigChooser(new GLSurfaceView.EGLConfigChooser() {
         public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {...

To support a very old Android device and things like this are no longer necessary.

Sorry if this is asking too much...I would just like to see a version of the code written in a more modern way.  I'm trying to do this myself, but would appreciate something from someone with far more experience.

Thank you for a great project   :)

Support / Re: HelloWorld for Android
« on: August 11, 2016, 10:55:17 am »

I was working in Ubuntu and had forgotten to download the specific android package ::)

The deprecated thing is to do with drawables (I'm at work so will have to check at home to be more exact).

I mentioned Open GLES 2 mostly because I will targeting that for what I want to achieve with a demo I am building, and also because from what I have seen, it is the entry level for many developers and Android packages built today and it's quite different from 1.0.

I was mostly just looking to find how to alternatively initialise an OpenGLES 2 context with jpct, but I will try to figure this out.

Thanks your help, and so far this engine looks to be fantastic and easy to use so thanks for that.

It reminds me a little of AMOS from back in the day, but obviously much more powerful  ;D

Support / HelloWorld for Android
« on: August 11, 2016, 04:42:45 am »
Hello I am trying to follow this

It seems to be very old code using deprecated features of Android and OpenGL ES 1.0, but the main issue I have is regarding the BitmapHelper class.

I try import com.threed.jpct.util.BitmapHelper; but it does not exist and Android Studio reports that it cannot resolve symbol wherever the class objects are used.

It would be very useful if someone could modernise the Hello World example seeing as it is the first place someone new to JPCT will be heading, and as it stands now, it does not seem to work.

I'm new to Android and Java, but I'm trying to work around to resolve the issues with this code, but due to my inexperience, this is quite difficult.

I would appreciate the help.


Question also, why is the code using the khronos opengl includes rather than the android specific ones?

Pages: [1]