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

com.huskerdev.grapl.gl.platforms.win.WGLWindowPeer.kt Maven / Gradle / Ivy

There is a newer version: 2.3.8
Show newest version
package com.huskerdev.grapl.gl.platforms.win

import com.huskerdev.grapl.core.window.impl.WinWindowPeer
import com.huskerdev.grapl.gl.GLPixelFormat
import com.huskerdev.grapl.gl.GLProfile
import com.huskerdev.grapl.gl.GLWindowPeer

class WGLWindowPeer(
    profile: GLProfile,
    pixelFormat: GLPixelFormat,
    shareWith: Long,
    majorVersion: Int,
    minorVersion: Int,
    debug: Boolean
): WinWindowPeer(), GLWindowPeer {

    override var context = WGLContext.createForWindow(handle, profile, pixelFormat, shareWith, majorVersion, minorVersion, debug)

    override fun dispatchUpdate() {
        context.makeCurrent()
        super.dispatchUpdate()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy