Click here to Skip to main content
15,881,898 members

Comments by Santhosh G_ (Top 90 by date)

Santhosh G_ 4-Aug-16 4:16am View    
hi,

Please provide more details of "magnifying glass/loop in opengl. (Like the one for Windows)"
Santhosh G_ 6-Apr-16 2:49am View    
i think windows will repaint your image, and you need to call swpabuffers() too.
there are some initialisation procedure for opengl, you have to do that.

please refer this app( refer cpu version)
http://www.codeproject.com/Articles/471994/OilPaintEffect
Santhosh G_ 6-Apr-16 2:28am View    
simple test application of texture mapping.
http://www.codesampler.com/oglsrc/oglsrc_2.htm#ogl_texture
Santhosh G_ 6-Apr-16 2:25am View    
Above code will create a texture, and you have to draw this texture to your screen.
Following is a texture drawing sample code.

glBegin(GL_QUADS);
glNormal3d(0, 0, 1);
glTexCoord2f(0, 0);
glVertex3dv(a);
glTexCoord2f(1, 0);
glVertex3dv(b);
glTexCoord2f(1, 1);
glVertex3dv(c);
glTexCoord2f(0, 1);
glVertex3dv(d);
glEnd();

please refer "Using the Image" in the shared link.
https://www.cse.msu.edu/~cse872/tutorial4.html
Santhosh G_ 6-Apr-16 0:34am View    
Please ensure the data is valid.

if(NULL != pFile)
{
fread(Bitmap_Data, 1280 *690 * 4 * sizeof( unsigned char ), 1, pFile);

// debug code, expect a white image displayed.
memset( Bitmap_Data, 255, 1280 *690 * 4 );
fclose(pFile);
}

also please provide the code which display this texture.

Please refer below link to get details about texture mapping.
https://www.cse.msu.edu/~cse872/tutorial4.html