Original Post
Hi,
i have been using DirectX for quite some time now and have recently started working on opengl. getting back to the problem, i have 8bit texture and i want to use in opengl. now, i load the data of the image using a 3rd party library and it loads it correctly (checked that!). the data is a bitmap with 8 bits per pixel for RGB. now when i try to generate the texture using
glTexImage2D(glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB8, info.Width,
info.Height, 0, GL_RGB8, GL_UNSIGNED_BYTE, info.Data);
it doesn''t load the texture. i have tried passing different parameters to and <format> parameters of glTexImage2D(...) but none has worked. i am in the middle of a major deadline, so can someone please help me out. and yes, the image width and height are multiple of 2. any help will be greatly appreciated!