Cocoa & OpenGL texture
Cocoa & OpenGL texture
- Subject: Cocoa & OpenGL texture
- From: kubernan <email@hidden>
- Date: Thu, 31 Jan 2002 07:10:46 +0100
Hello !
I'm newbie in OpenGL. I try to port an OpenGL code in a cocoa app.
I have a pb during compilation :
GLView.mm:101: `GL_TEXTURE_CUBE_MAP_EXT' undeclared (first use this
function)
My GLView.h include these headers :
#import <Cocoa/Cocoa.h>
#import <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <OpenGL/glext.h>
#include <OpenGL/CGLRenderers.h>
and the code is my GLView.m is :
// blabla
glGenTextures(1, &texture[0]);
glBindTexture(GL_TEXTURE_CUBE_MAP_EXT, texture[1]); // --> undeclared
//blabla
May be i missed something in my code but i don't know what ; I read the
glext.h and i could see the GL_TEXTURE_CUBE_MAP_EXT.
Can you help me ?
Kub.