Click here to Skip to main content
15,885,214 members

Comments by Santhosh G_ (Top 90 by date)

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

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)
Santhosh G_ 6-Apr-16 2:28am View    
simple test application of texture mapping.
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.

glNormal3d(0, 0, 1);
glTexCoord2f(0, 0);
glTexCoord2f(1, 0);
glTexCoord2f(1, 1);
glTexCoord2f(0, 1);

please refer "Using the Image" in the shared link.
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 );

also please provide the code which display this texture.

Please refer below link to get details about texture mapping.