All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.ru.casperix.opengl.renderer.OpenGlRendererConfig.kt Maven / Gradle / Ivy

There is a newer version: 0.11.1
Show newest version
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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy