public static bloContext setContext(bloContext context) { bloContext old = sInstance; sInstance = context; return(old); }
void initContext() { mContext = new bloContext(); mVertexShader = glShader.fromFile(ShaderType.VertexShader, "shader/gradient-map.vp"); mFragmentShader = glShader.fromFile(ShaderType.FragmentShader, "shader/gradient-map.fp"); mContext.setShaders(mFragmentShader, mVertexShader); bloContext.setContext(mContext); }