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

createTexture and loadTexture should have ability to specify the number of levels #1

Open
lamerman opened this issue Sep 7, 2017 · 3 comments

Comments

@lamerman
Copy link
Author

lamerman commented Sep 7, 2017

Maybe passing it as argument..
The problem is I want to generate a mipmap and several layers are required. Currently as I understand it's not possible without recreating the storage of the texture. In my view it would be good to at least remove those 1 numbers and make them configurable.

About glGenerateMipmap I don't know. When you load the texture, probably you want to generate mipmap immediately, but still it's kind of ok to do it afterwards.

@lamerman
Copy link
Author

lamerman commented Sep 7, 2017

It it's ok for you I can provide the PR

@typhonrt
Copy link
Collaborator

typhonrt commented Sep 8, 2017

@lamerman thanks for the heads up. I'll be doing an update / test when Android Studio 3 final release is made which I gather is somewhat soon. I'll look into adding mipmap generation support at that time. I'll likely also be switching the license back to MIT as this code is more for getting started / demo purposes than a proper framework. I've been busy with some other OSS efforts in the past couple of years versus continuing to add more to the GL demos.

I might also add demos on how to use LWJGL w/ Android including Vulkan from Java which is now possible BTW.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants