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

Make base & max mipmap levels specifiable #1435

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

BioRyajenka
Copy link
Contributor

@BioRyajenka BioRyajenka commented Mar 15, 2023

Should resolve #1154

@@ -80,6 +80,8 @@ class AGTexture(
private val logger = Logger("AGTexture")
var isFbo: Boolean = false
var requestMipmaps: Boolean = false
var baseMipmapLevel: Int? = null
var maxMipmapLevel: Int? = null
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Default value is null because if you don't specify level, GL generates some value on its own

@soywiz soywiz merged commit 76f252d into korlibs:main Mar 15, 2023
@soywiz
Copy link
Member

soywiz commented Mar 15, 2023

Thanks!

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.

Mipmap levels
2 participants