View Full Version : glm?
11-05-2008, 04:50 AM
I saw on a website "GLUT has functions for reading OBJ model files which includes a function glmReadPPM() that reads .ppm files"
I searched for glm.h and I do not have it. I found this:
but it doesn't seem to have glmReadPPM(). I am running linux - does anyone know how to install whatever I need to have glm.h?
11-05-2008, 11:49 AM
your google-fu is weak :)
11-05-2008, 12:36 PM
If you are looking for a PPM image loader, then try this too.
It reads both P3(ascii) and P6(binary) formats. The basic usage of this class is;
int width = ppm.getWidth();
int height = ppm.getHeight();
const unsigned char* pixels = ppm.getData();
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, width, height, 0, GL_RGB, GL_UNSIGNED_BYTE, pixels);
11-05-2008, 01:02 PM
oh, i mean i found those files just by themselves, but I thought it would be more like an official library I could install?
Is it not?
11-05-2008, 01:57 PM
It seems that the "glm" you are talking about is just composed of one source file and one header file. So you can insert them in your project directory and compile them in the project makefile. An alternative is to build yourself static and dynamic libraries and put them in your system or IDE lib path which is very easy.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.