1

Topic: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

HI !
I am trying to port neverball game on openGl-es, am stuck in the process with
glPushAttrib(GL_TEXTURE_BIT)
I made many unsucessfull attempts to replace it but everytime the result is missing text in the menue and many other things
Below is a replacement i have used for glPushAttrib(GL_LIGHTING_BIT | GL_DEPTH_BUFFER_BIT);
which is working fine but i am not able to find a similar replacement in glPushAttrib(GL_TEXTURE_BIT)
Please help

/**********************************/
GLboolean was_enabled ;
glPushAttrib(GL_LIGHTING_BIT | GL_DEPTH_BUFFER_BIT);
        
was_enabled = glIsEnabled (GL_COLOR_MATERIAL | GL_COLOR_MATERIAL_FACE | GL_LIGHT_MODEL_LOCAL_VIEWER | GL_LIGHT_MODEL_TWO_SIDE | GL_LIGHTING);

    if (was_enabled)
    {
        glEnable(GL_COLOR_MATERIAL);
        glEnable(GL_COLOR_MATERIAL_FACE);
        glEnable(GL_LIGHT_MODEL_LOCAL_VIEWER);
        glEnable(GL_LIGHT_MODEL_TWO_SIDE);
        glEnable(GL_LIGHTING);
 
    }
    else
    {
        glDisable (GL_LIGHTING  | GL_DEPTH_TEST);
    }
/*********************************/
thanking you in anticipation

2

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

Hi,

If you search the forum for OpenGL ES, you'll find a few other people asking the same questions and a few answers.  I will admit that this has got me curious about why OpenGL ES has suddenly become so popular, but in any case, you will probably have better luck with your question on an OpenGL-related forum, not here.

3

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

I too am somewhat suspicious of the surprising number of newcomers working on GLES ports.

Frankly, I'm not answering this question because if a programmer doesn't know the answer, then he's not qualified to be working on such a port.

To anyone working on a GLES port of Neverball or Neverputt: keep in mind that it is GPL code, so if you distribute a binary then you must distribute the source.

4

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

I think you have to add something more in this portion
else
    {
        glDisable (GL_LIGHTING  | GL_DEPTH_TEST);
    }

I cannot suggest you anything because i do not know detail about your project.

5

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

I'm really happy that stuff is in there.

6

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

Lol RLK big_smile. Stop messing with the android noobs wink

7

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

Wow, there are so many things wrong with this topic.

8

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

http://snth.net/~rlk/boromir.jpg

One does not simply HACK into Neverball.

9

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

HEHEHEHE - makes me frightened to post re GLES  big_smile

Currently Playing:
Celeste and Electronic Super Joy

10

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

You TOO can be a programmer for mobile devices!
sign me UP!!

computerliebe

11

Re: neverball :glPushAttrib(GL_TEXTURE_BIT) replacement in opengl es

Is that a Vic-20? with the massive 3.5Kb of RAM?!

Funny, I thought it was slimmer than that...

PS. That woman has a moustache...

Currently Playing:
Celeste and Electronic Super Joy