/**
 * Copyright 2008 - 2011
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 * 
 * @project loon
 * @author cping
 * @email javachenpeng@yahoo.com
 * @version 0.1
 */
package loon;

import java.nio.Buffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;

import loon.core.graphics.opengl.GL11;

public class AndroidGL11 extends AndroidGL10 implements GL11 {
	
	private final javax.microedition.khronos.opengles.GL11 gl;

	public AndroidGL11 (javax.microedition.khronos.opengles.GL10 gl) {
		super(gl);
		this.gl = (javax.microedition.khronos.opengles.GL11)gl;
	}

	 @Override
	public void glBindBuffer (int target, int buffer) {
		gl.glBindBuffer(target, buffer);
	}

	 @Override
	public void glBufferData (int target, int size, Buffer data, int usage) {
		gl.glBufferData(target, size, data, usage);
	}

	 @Override
	public void glBufferSubData (int target, int offset, int size, Buffer data) {
		gl.glBufferSubData(target, offset, size, data);
	}

	 @Override
	public void glClipPlanef (int plane, FloatBuffer equation) {
		gl.glClipPlanef(plane, equation);
	}

	 @Override
	public void glColor4ub (byte red, byte green, byte blue, byte alpha) {
		gl.glColor4ub(red, green, blue, alpha);
	}

	 @Override
	public void glDeleteBuffers (int n, IntBuffer buffers) {
		gl.glDeleteBuffers(n, buffers);
	}

	 @Override
	public void glGenBuffers (int n, IntBuffer buffers) {
		gl.glGenBuffers(n, buffers);
	}

	 @Override
	public void glGetBooleanv (int pname, IntBuffer params) {
		gl.glGetBooleanv(pname, params);
	}

	 @Override
	public void glGetBufferParameteriv (int target, int pname, IntBuffer params) {
		gl.glGetBufferParameteriv(target, pname, params);
	}

	 @Override
	public void glGetClipPlanef (int pname, FloatBuffer eqn) {
		gl.glGetClipPlanef(pname, eqn);
	}

	 @Override
	public void glGetFloatv (int pname, FloatBuffer params) {
		gl.glGetFloatv(pname, params);
	}

	 @Override
	public void glGetLightfv (int light, int pname, FloatBuffer params) {
		gl.glGetLightfv(light, pname, params);
	}

	 @Override
	public void glGetMaterialfv (int face, int pname, FloatBuffer params) {
		gl.glGetMaterialfv(face, pname, params);
	}

	 @Override
	public void glGetPointerv (int pname, Buffer[] params) {
		gl.glGetPointerv(pname, params);
	}

	 @Override
	public void glGetTexEnviv (int env, int pname, IntBuffer params) {
		gl.glGetTexEnviv(env, pname, params);
	}

	 @Override
	public void glGetTexParameterfv (int target, int pname, FloatBuffer params) {
		gl.glGetTexParameterfv(target, pname, params);
	}

	 @Override
	public void glGetTexParameteriv (int target, int pname, IntBuffer params) {
		gl.glGetTexParameteriv(target, pname, params);
	}

	 @Override
	public boolean glIsBuffer (int buffer) {
		return gl.glIsBuffer(buffer);
	}

	 @Override
	public boolean glIsEnabled (int cap) {
		return gl.glIsEnabled(cap);
	}

	 @Override
	public boolean glIsTexture (int texture) {
		return gl.glIsTexture(texture);
	}

	 @Override
	public void glPointParameterf (int pname, float param) {
		gl.glPointParameterf(pname, param);
	}

	 @Override
	public void glPointParameterfv (int pname, FloatBuffer params) {
		gl.glPointParameterfv(pname, params);
	}

	 @Override
	public void glPointSizePointerOES (int type, int stride, Buffer pointer) {
		gl.glPointSizePointerOES(type, stride, pointer);
	}

	 @Override
	public void glTexEnvi (int target, int pname, int param) {
		gl.glTexEnvi(target, pname, param);
	}

	 @Override
	public void glTexEnviv (int target, int pname, IntBuffer params) {
		gl.glTexEnviv(target, pname, params);
	}

	 @Override
	public void glTexParameterfv (int target, int pname, FloatBuffer params) {
		gl.glTexParameterfv(target, pname, params);
	}

	 @Override
	public void glTexParameteri (int target, int pname, int param) {
		gl.glTexParameteri(target, pname, param);
	}

	 @Override
	public void glTexParameteriv (int target, int pname, IntBuffer params) {
		gl.glTexParameteriv(target, pname, params);
	}

	 @Override
	public void glClipPlanef (int plane, float[] equation, int offset) {
		gl.glClipPlanef(plane, equation, offset);
	}

	 @Override
	public void glDeleteBuffers (int n, int[] buffers, int offset) {
		gl.glDeleteBuffers(n, buffers, offset);
	}

	 @Override
	public void glGenBuffers (int n, int[] buffers, int offset) {
		gl.glGenBuffers(n, buffers, offset);
	}

	 @Override
	public void glGetBooleanv (int pname, boolean[] params, int offset) {
		gl.glGetBooleanv(pname, params, offset);
	}

	 @Override
	public void glGetBufferParameteriv (int target, int pname, int[] params, int offset) {
		gl.glGetBufferParameteriv(target, pname, params, offset);
	}

	 @Override
	public void glGetClipPlanef (int pname, float[] eqn, int offset) {
		gl.glGetClipPlanef(pname, eqn, offset);
	}

	 @Override
	public void glGetFloatv (int pname, float[] params, int offset) {
		gl.glGetFloatv(pname, params, offset);
	}

	 @Override
	public void glGetLightfv (int light, int pname, float[] params, int offset) {
		gl.glGetLightfv(light, pname, params, offset);
	}

	 @Override
	public void glGetMaterialfv (int face, int pname, float[] params, int offset) {
		gl.glGetMaterialfv(face, pname, params, offset);
	}

	 @Override
	public void glGetTexEnviv (int env, int pname, int[] params, int offset) {
		gl.glGetTexEnviv(env, pname, params, offset);
	}

	 @Override
	public void glGetTexParameterfv (int target, int pname, float[] params, int offset) {
		gl.glGetTexParameterfv(target, pname, params, offset);
	}

	 @Override
	public void glGetTexParameteriv (int target, int pname, int[] params, int offset) {
		gl.glGetTexParameteriv(target, pname, params, offset);
	}

	 @Override
	public void glPointParameterfv (int pname, float[] params, int offset) {
		gl.glPointParameterfv(pname, params, offset);
	}

	 @Override
	public void glTexEnviv (int target, int pname, int[] params, int offset) {
		gl.glTexEnviv(target, pname, params, offset);
	}

	 @Override
	public void glTexParameterfv (int target, int pname, float[] params, int offset) {
		gl.glTexParameterfv(target, pname, params, offset);
	}

	 @Override
	public void glTexParameteriv (int target, int pname, int[] params, int offset) {
		gl.glTexParameteriv(target, pname, params, offset);
	}

	 @Override
	public void glColorPointer (int size, int type, int stride, int pointer) {
		gl.glColorPointer(size, type, stride, pointer);
	}

	 @Override
	public void glNormalPointer (int type, int stride, int pointer) {
		gl.glNormalPointer(type, stride, pointer);
	}

	 @Override
	public void glTexCoordPointer (int size, int type, int stride, int pointer) {
		gl.glTexCoordPointer(size, type, stride, pointer);
	}

	 @Override
	public void glVertexPointer (int size, int type, int stride, int pointer) {
		gl.glVertexPointer(size, type, stride, pointer);
	}

	 @Override
	public void glDrawElements (int mode, int count, int type, int indices) {
		gl.glDrawElements(mode, count, type, indices);
	}
}
