Menu

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.

Show posts Menu

Messages - vipkod

#1
primitives good rotate on Windows, and on Android in the matrix is not rotate in 3d  :help:

spheres are displayed as sprites who need to determine the order of output on display Android

in Android       X_PUSHMATRIX
                     X_POPMATRIX  :shit:

the 2 or more spheres does not work  :nw:

on Windows good working  :rtfm:
#2
transparent texture on Android, on Windows textures are not transparent

      X_PUSHMATRIX

   X_SETTEXTURE tt, -1 // 0=Tex
            X_SCALING .9, 1, .9
            X_MOVEMENT 0, 0, 0
   X_DRAWOBJ te, 0
//      X_POPMATRIX

//      X_PUSHMATRIX
   X_SETTEXTURE kk, -1 // 0=Tex
            X_SCALING .9, 1, .9
            X_MOVEMENT 0, 0, 0
   X_DRAWOBJ kl, 0
      X_POPMATRIX

two spheres 3d lose visibility on Android
on Windows texture-pictures look good on the sphere
#3
even works well on Windows  :giveup:
#4
must also

Code: GLBasic [Select]
        SDLActivity.onGlbasicKeyUp(keyCode);
        if (keyCode == KeyEvent.KEYCODE_BACK) SDLActivity.onGlbasicKeyUp(1);

#5
I disabled "gamestick" and earned a button. The button does not work BACK when it starts works "gamestick". We need to find and wipe off the problem that can to be able to connect properly without tripping BACK button.
#6
I do not know how to turn on turn off

   // ---------------------[ Enable Lock Screen - screen timeout on/off]---------------------
   FUNCTION EnableLockScreen: yes=TRUE
      IF yes=TRUE
         JavaCall$("enableLockScreen:true") // or 1-true
      ELSE
         JavaCall$("enableLockScreen:false") // or num%-false
      ENDIF
   ENDFUNCTION

simply turned off the :nw:
#8
it is necessary to disable the back button

and further

   IF (Android.onBackUp()=TRUE);successUp$="it works";ENDIF

//////////////////

   // ---------------------[on BACK Up BUTTONS ]---------------------
   FUNCTION onBackUp:
      LOCAL res$ = JavaCall$("onBackUp:")
      IF (res$ = "true" OR res$ = "TRUE")
         RETURN TRUE
      ELSE
            RETURN FALSE
      ENDIF
   ENDFUNCTION

See the attached file

#9
I did it
It may be added after compilation - distribute\Android\src\com\glbasic\test\SDLActivity.java
Or must be added in a future release

See attached files
#10
I do like this

   FUNCTION onBackPressed:
      LOCAL res$ = JavaCall$("onBackPressed:")
      IF (res$ = "true" OR res$ = "TRUE")
         RETURN TRUE
      ELSE
            RETURN FALSE
      ENDIF
   ENDFUNCTION

but it does not work    IF (onBackPressed()=TRUE);success$="it works";ENDIF

I know that it is necessary to add a Java method, the same place where

   FUNCTION isReloadTextures:
      LOCAL res$ = JavaCall$("isReloadTextures:")
      IF (res$ = "true" OR res$ = "TRUE")
         RETURN TRUE
      ELSE
            RETURN FALSE
      ENDIF
   ENDFUNCTION

how to do it  :nw: :giveup:


#11
I Do not know how to do it, help me please?  :nw:

This java

@Override
public void onBackPressed() {
   // TODO Auto-generated method stub
   // super.onBackPressed();
   openQuitDialog(); - THIS SHOULD BE CHANGED TO CALL -(ON/OFF)
}

How can I do

?IFDEF ANDROID
   IMPORT "C" const char* android_JAVACALL(const char* string)
?ENDIF

FUNCTION JavaCall$: callStr$
?IFDEF ANDROID
   IF adService.state=1 THEN RETURN
   STATIC res$
   res$ = android_JAVACALL(callStr$)
   RETURN res$
?ENDIF
ENDFUNCTION


HELP PLEASE  :nw: