GL_BGR

Started by
2 comments, last by silvermace 19 years, 2 months ago
When I try to use GL_BGR as a parameter in glTexImage2D, it says that GL_BGR is an undeclared identifier...? Any clues as to what could be the problem?
#include <stdio.h> /* MagpieOfDoom BF Interpreter Sig */void main(){char a[1337],b[1337];int c,d,e[1337],f,g,h;d=g=f=c=h=0;scanf("%s",a);for(;c<1337;c++){b[c]=0;}c=0;while(1){if(!f){b[d]+=(a[c]=='+')-(a[c]=='-');d+=(a[c]=='>')-(a[c]=='<');if(a[c]=='.'){printf("%c",b[d]);}if(a[c]==','){scanf("%c",&b[d]);}h=(b[d]==0);if(a[c]=='['){if(h){f=1;}else{e[g]=c;g++;}}if(a[c]==']'){if(!h){c=e[g-1];}}}else{if(a[c]==']'){f=0;}}c++;if(a[c]=='0'){break;}}} /* C++ Compile! */
Advertisement
Try GL_BGR_EXT, as BGR is an extension.
Thanks. Thats wierd, though, because in many contexts I see it as GL_BGR.
#include <stdio.h> /* MagpieOfDoom BF Interpreter Sig */void main(){char a[1337],b[1337];int c,d,e[1337],f,g,h;d=g=f=c=h=0;scanf("%s",a);for(;c<1337;c++){b[c]=0;}c=0;while(1){if(!f){b[d]+=(a[c]=='+')-(a[c]=='-');d+=(a[c]=='>')-(a[c]=='<');if(a[c]=='.'){printf("%c",b[d]);}if(a[c]==','){scanf("%c",&b[d]);}h=(b[d]==0);if(a[c]=='['){if(h){f=1;}else{e[g]=c;g++;}}if(a[c]==']'){if(!h){c=e[g-1];}}}else{if(a[c]==']'){f=0;}}c++;if(a[c]=='0'){break;}}} /* C++ Compile! */
try GL_BGR_EXT if it still dosnt work, you need to download updated GLext.h files from SGI or nVidia/ATi devloper relations.

EDIT: beaten :P
"I am a donut! Ask not how many tris/batch, but rather how many batches/frame!" -- Matthias Wloka & Richard Huddy, (GDC, DirectX 9 Performance)

http://www.silvermace.com/ -- My personal website

This topic is closed to new replies.

Advertisement