If you really are interested in getting to know how to use OpenGL, I recommend you go online and search on google for the `openGL red book` and read all of it. There are various sections, reading the whole thing is very beneficial for learning to use OpenGL, starting from the beginning, as each builds upon previous knowledge. It will tell you the basics of what you need to do to achieve your aims and then you will understand how the various parts of the system work together. I read the entire thing, it's well worth it.
You can also search for the `opengl blue book` which basically is a list of all the commands, their syntax and descriptions of what they do.
You basically need to start by setting up the display, then you load in your pixmap with LoadPixmap, then you need to set up all the parameters that affect transfers to OpenGL such as glTexParameter and so on. You have to create a texture object, I think it's glGenTextures(), you then need to `bind` the object you created to the `GL_Texture_2D` object and then you then need to use glTexImage2D to actually upload the image, passing it the pointer (address) of the topleft corner of the pixmap. You may also then want to set a couple of parameters regarding smoothing/filtering. Then you have to go about defining some vertices, setting the vertex colors, defining the texture coordinates etc.
See my OpenGL blobby objects demo - it shows one way to read in and upload textures and then drawing them as images.
http://www.blitzbasic.com/Community/posts.php?topic=46378#516605Note in the sourcecode there, that bglCreateContext() no longer exists, just use GLGraphics().