public Model(float[] vBuffer, String texturePath, int mode){
		id = createVBOID();
		vBufferSize = vBuffer.length;
	    vBufferData = BufferUtils.createFloatBuffer(vBuffer.length);
	    vBufferData.put(vBuffer);
	    vBufferData.rewind();
	    
	    if(texturePath != null){
			try {
				texture = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("src/textures/" + texturePath));
			} catch (Exception d) {
				try {
					texture = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("src/textures/" + "default.png"));
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
	    }
	    else{
			try {
				texture = TextureLoader.getTexture("PNG", ResourceLoader.getResourceAsStream("src/textures/" + "blank.png"));
			} catch (Exception e) {
				e.printStackTrace();
			}
	    }
	    
	    this.mode = mode;
	    
	}