// Path: src/main/java/craftedcart/smblevelworkshop/resource/ResourceShaderProgram.java
// public class ResourceShaderProgram implements IResource {
// 
//     private int programID;
// 
//     public ResourceShaderProgram(ResourceShader vertShader, ResourceShader fragShader) throws Exception {
//         Window.drawable.makeCurrent();
// 
//         try {
//             programID = GL20.glCreateProgram();
//             GL20.glAttachShader(programID, vertShader.getShaderID());
//             GL20.glAttachShader(programID, fragShader.getShaderID());
//             GL20.glLinkProgram(programID);
//             GL20.glValidateProgram(programID);
//         } catch (NullPointerException e) {
//             throw new Exception(e);
//         }
// 
//         Window.drawable.releaseContext();
//     }
// 
//     public int getProgramID() {
//         return programID;
//     }
// }


import craftedcart.smblevelworkshop.resource.ResourceShaderProgram;
import io.github.craftedcart.fluidui.util.UIColor;
import java.util.ArrayList;
package com.owens.oobjloader.lwjgl;

// This code was written by myself, Sean R. Owens, sean at guild dot net,
// and is released to the public domain. Share and enjoy. Since some
// people argue that it is impossible to release software to the public
// domain, you are also free to use this code under any version of the
// GPL, LPGL, Apache, or BSD licenses, or contact me for use of another
// license.  (I generally don't care so I'll almost certainly say yes.)
// In addition this code may also be used under the "unlicense" described
// at http://unlicense.org/ .  See the file UNLICENSE in the repo.



public class DisplayModel {

    public ArrayList<VBO> vboList = new ArrayList<VBO>();

    public DisplayModel() {
    }

    public void addVBO(VBO r) {
        vboList.add(r);
    }

// Path: src/main/java/craftedcart/smblevelworkshop/resource/ResourceShaderProgram.java
// public class ResourceShaderProgram implements IResource {
// 
//     private int programID;
// 
//     public ResourceShaderProgram(ResourceShader vertShader, ResourceShader fragShader) throws Exception {
//         Window.drawable.makeCurrent();
// 
//         try {
//             programID = GL20.glCreateProgram();
//             GL20.glAttachShader(programID, vertShader.getShaderID());
//             GL20.glAttachShader(programID, fragShader.getShaderID());
//             GL20.glLinkProgram(programID);
//             GL20.glValidateProgram(programID);
//         } catch (NullPointerException e) {
//             throw new Exception(e);
//         }
// 
//         Window.drawable.releaseContext();
//     }
// 
//     public int getProgramID() {
//         return programID;
//     }
// }


// Path: src/main/java/com/owens/oobjloader/lwjgl/DisplayModel.java
import craftedcart.smblevelworkshop.resource.ResourceShaderProgram;
import io.github.craftedcart.fluidui.util.UIColor;
import java.util.ArrayList;

package com.owens.oobjloader.lwjgl;

// This code was written by myself, Sean R. Owens, sean at guild dot net,
// and is released to the public domain. Share and enjoy. Since some
// people argue that it is impossible to release software to the public
// domain, you are also free to use this code under any version of the
// GPL, LPGL, Apache, or BSD licenses, or contact me for use of another
// license.  (I generally don't care so I'll almost certainly say yes.)
// In addition this code may also be used under the "unlicense" described
// at http://unlicense.org/ .  See the file UNLICENSE in the repo.



public class DisplayModel {

    public ArrayList<VBO> vboList = new ArrayList<VBO>();

    public DisplayModel() {
    }

    public void addVBO(VBO r) {
        vboList.add(r);
    }

    public void render(ResourceShaderProgram shaderProgram, boolean setTexture) {