View Full Version : Loading Images
04-19-2001, 12:38 AM
I am using OpenGL 1.1 for Windows. I want to load a 565 image. Currently I used GL_UNSIGNED_SHORT_5_5_5_1_EXT in glTexImage2D since the 565 format is supported only in OpenGL 1.2. Because of this, I got the image of not good quality. Is there a work around to load a 565 image using OpenGL 1.1. I was told that OpenGL 1.2 for windows is not available. Is this true ???......Thanks in advance.
04-19-2001, 02:14 PM
Yes, the opengl32.dll from MS is only version 1.1 but your card manufacturer may support 1.2 nvidia does and probably others.
You need the extension header glext.h from the OpenGLŪ Extension Registry http://oss.sgi.com/projects/ogl-sample/registry/
here is direct link to the header http://oss.sgi.com/projects/ogl-sample/ABI/glext.h
You have to load functions functions with wglGetProcAddress but it seems like you only need an extra constant:
#define GL_UNSIGNED_SHORT_5_6_5 0x8363
If you are distributing your program should an version check also be done:
gl12Supported = atof(glGetString(GL_VERSION)) >= 1.2;
04-20-2001, 01:36 AM
Thanks, It was really a useful information.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.