Advertisement

Lessen 13 (Bitmap Fonts) - glEnable(GL_TEXTURE)

Started by October 25, 2003 06:45 AM
5 comments, last by Kidney Stone 21 years, 4 months ago
Hallo! - I tried to compile the source and all was OK! - Then I converted the source to a class and all was OK! - As I used the Class with other souce of me... it wasn''t OK! I see the problem is, if I enable GL_TEXTURE in InitGL() it doesn''t run. If I disable GL_TEXTURE in InitGL() it doesn''t run. But, if I write nothing... all is OK!! Why can''t I enable or disable GL_TEXTURE? I hope you know what I mean. Cheers Your Kidney Stone
CheersYour Kidney Stone
*beep* sh.. *beep* sorry!
I posted this topic two times!!

I''m Sorry!!!

Please, write in this topic, thanks!



Cheers
Your Kidney Stone
CheersYour Kidney Stone
Advertisement
you should glEnable(GL_TEXTURE_2D);
GL_TEXTURE is used for other stuff...

Relative Games - My apps

Thanks... but...

It doesn''t have an effect if I enable or disable GL_TEXTURE_2D. I don''t know why, but if I enable or disable GL_TEXTURE it doesn''t display the Text.

1. examples:
int InitGL(GLvoid) {
// some defenitions
glEnable(GL_TEXTURE);
glEnable(GL_TEXTURE_2D);
} // Doesn''t display the text!!!!

2. example:
int InitGL(GLvoid) {
// some defenitions
glDisable(GL_TEXTURE);
glEnable(GL_TEXTURE_2D);
} // Doesn''t display the text!!!!

3. example:
int InitGL(GLvoid) {
// some defenitions
////// I don''t enable or disable GL_TEXTURE
// glDisable(GL_TEXTURE);
glEnable(GL_TEXTURE_2D);
} // displays the text!!!!

4. example:
int InitGL(GLvoid) {
// some defenitions
////// I don''t enable or disable GL_TEXTURE
// glDisable(GL_TEXTURE);
glDisable(GL_TEXTURE_2D);
} // displays the text!!!!


You see that the enabeling or disabling of GL_TEXTURE has the effect that the text won''t be displayed...
Try it please with the original Source of Lesson 13! I tried it with the original source, too!



Cheers
Your Kidney Stone
CheersYour Kidney Stone
don''t use GL_TEXTURE with glenable. I''m pretty sure that the GL_TEXTURE enumerant is for the texture matrix and for specifying a source for the GL_COMBINE_ARB extension. Its not enableable so what your doing is an undefined operation.

quote:
Original post by chowe6685
Its not enableable so what your doing is an undefined operation.


Actually, it is a well defined operation. The INVALID_ENUM error flag is set and the command is ignored.
Advertisement
Ok, thanks a lot!


Cheers
Your Kidney Stone
CheersYour Kidney Stone

This topic is closed to new replies.

Advertisement