Need simple buffer, that can be passed to glTexImage2D
===

I need to draw an image and pass it to OpenGL (ES) as a texture. I am constantly being shifted between advanced approaches, like FrameBuffer Objects or dedicated libraries (e.g. ImageMagick) – and simple approaches, that utilise the textels fact.

As far as I understand, textels – the uint8* buffer that can be passed to glTexImage2D – is simple array of three (RGB_888) or four (RGBA_8888) byte tuples. Is this correct? I cannot get over this few simple facts. To put pixel, I simply write 32 bit ints? (for RGBA). Is there any ready to use class that would have PutPixel method?