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

need some help. #2

Open
MRfantastic3DGamer opened this issue Mar 16, 2024 · 2 comments
Open

need some help. #2

MRfantastic3DGamer opened this issue Mar 16, 2024 · 2 comments

Comments

@MRfantastic3DGamer
Copy link

Hi, I learned a lot by studying this app.
I just wanted to thank you for making this app and also ask for a little help.
Can you explain how we can use one or multiple textures inside an application. I just can't get my head around how we can push the data of bitmap into a shader.

@thelumiereguy
Copy link
Owner

Thank you for your kind review!!

You can do that using the GLUtils.texImage2D method. https://developer.android.com/reference/android/opengl/GLUtils#texImage2D(int,%20int,%20android.graphics.Bitmap,%20int)

I haven't used textures much, but this might help. ^

@MRfantastic3DGamer
Copy link
Author

thank you, I got it working with texture resources but there are still some errors, Il figure it out eventually. but again thanks, this app kind of gave me the basic idea of how gles works with android.
If you like you can take a look at my project

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