代码: 改的opengles 2.0 入门指导中的demo, 在次基础之上增加VBO 调用。
// Hello_Triangle.c
//
// This is a simple example that draws a single triangle with
// a minimal vertex/fragment shader. The purpose of this
// example is to demonstrate the basic concepts of
// OpenGL ES 2.0 rendering.
#include <stdlib.h>
#include <GLES/gl.h>
#include <GLES/egl.h>
#include "esUtil.h"
GLuint _programObject;
typedef struct
{
// Handle to a program object
GLuint programObject;
} UserData;
///
// Create a shader object, load the shader source, and
// compile the shader.
//
GLuint LoadS