enum {w=2}; enum{h=2};
unsigned char colors[4*w*h]={
/*R G B A */
0xff,0x00,0x00,0xff, 0x00,0xff,0x00,0xff,
0x00,0x00,0xff,0xff, 0xff,0xff,0xff,0x7f,
};
oglTexture *t=new oglTexture(pixelData,w,h);
t->bind();
uniform sampler2D myTex;
program->set("myTex",0);
gl_FragColor = texture2D(myTex,texCoords);