예제 #1
0
        public static bloContext setContext(bloContext context)
        {
            bloContext old = sInstance;

            sInstance = context;
            return(old);
        }
예제 #2
0
 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);
 }