Examples of GLVersion


Examples of cc.plural.ecs.renderer.GLVersion

    public Renderer createRenderer(ApplicationConfiguration configuration) {
        if (!displayCreated) {
            throw new RuntimeException("Must init");
        }
        GLVersion version;
        if(configuration.forceGLVersion != null) {
            version = configuration.forceGLVersion;
        } else {
            version = glVersion;
        }
        if(version.getVersion() >= 1.5 && version.getVersion() < 2.0) {
            return new LWJGLRendererGL15(this);
        } else if (version.getVersion() >= 2.0) {
            return new LWJGLRendererGL2(this);
        } else {
            throw new RuntimeException("You must support OpenGL 2.0 Or Higher");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.