commonMain.ru.casperix.opengl.renderer.OpenGlRendererConfig.kt Maven / Gradle / Ivy
package ru.casperix.opengl.renderer
import ru.casperix.opengl.core.GL_LINEAR
import ru.casperix.opengl.core.GL_NEAREST_MIPMAP_LINEAR
class OpenGlRendererConfig {
var cullFace = false
var discardAlpha = true
var gammaCorrection = false
val cacheConfig = CacheConfig()
val textureConfig = TextureConfig()
}
class TextureConfig {
var minFilter = GL_NEAREST_MIPMAP_LINEAR
var magFilter = GL_LINEAR
}
class CacheConfig {
var maxDrawBufferIndices = 1000
var accumulateBatches = true
val staticConfig = StaticCacheConfig()
}
class StaticCacheConfig {
var using = true
var itemMinIndices = 1000
var summaryIndicesMax = 2_000_000
var summaryIndicesMin = 1_500_000
}