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

Example #366

Closed
wants to merge 9 commits into from
Closed

Example #366

wants to merge 9 commits into from

Conversation

MatejMagat305
Copy link

@MatejMagat305 MatejMagat305 commented Mar 23, 2024

this is only test example of #363

}
}

func RunOnJVM(fn func(vm, env, ctx uintptr) error) error { // this is show how get to C pointer to JNIEnv*,JavaVM* and class of activity
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this

stderr, stdout *os.File
)

func init() {
Copy link
Author

@MatejMagat305 MatejMagat305 Mar 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and this would posible give to "androidUtils" package but, you are thef here

@gen2brain
Copy link
Owner

Sorry, I have difficulties to understand what you are trying to do here. I just tested Android example and it all works fine, including the TraceLog output, i.e.:

03-25 10:45:19.605 24696 24747 I raylib  : Initializing raylib 5.0
03-25 10:45:19.605 24696 24747 I raylib  : Platform backend: ANDROID
03-25 10:45:19.605 24696 24747 I raylib  : Supported raylib modules:
03-25 10:45:19.606 24696 24747 I raylib  :     > rcore:..... loaded (mandatory)
03-25 10:45:19.606 24696 24747 I raylib  :     > rlgl:...... loaded (mandatory)
03-25 10:45:19.606 24696 24747 I raylib  :     > rshapes:... loaded (optional)
03-25 10:45:19.606 24696 24747 I raylib  :     > rtextures:. loaded (optional)
03-25 10:45:19.606 24696 24747 I raylib  :     > rtext:..... loaded (optional)
03-25 10:45:19.606 24696 24747 I raylib  :     > rmodels:... loaded (optional)
03-25 10:45:19.606 24696 24747 I raylib  :     > raudio:.... loaded (optional)
03-25 10:45:19.606 24696 24747 I raylib  : ANDROID: Window orientation set as landscape
03-25 10:45:19.606 24696 24747 W raylib  : ANDROID: Window orientation changed to landscape
03-25 10:45:19.606 24696 24747 I raylib  : PLATFORM: ANDROID: Initialized successfully

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

Successfully merging this pull request may close these issues.

2 participants