On Tue, Jan 25, 2005 at 01:11:36AM +0000, Pablo Nicolás Nuñez Pölcher wrote:
hi pablo, > > first question being : why can't I blit surfaces (in > > memory, not on the screen) as soon as there is > > anything transparent on it ? > > At a first glance, I don't know. problem solved > > did you see the page on the wiki with all problems > > shortly listed ? > > Yes, I took a look at it. As for the first one "- something > is wrong with coordinates in image::display", there's > actually nothing wrong about that. It's just that when > OpenGL works in ortho mode, it considers that the > origin of the screen (0,0) is at the left bottom corner. > It's like working on the first quadrant of a pair of > cartesian axes. yes, that's ok however, if I switch to 800x600, the background image is not fullscreen hence something wrong with coordinates I think I now know :) what's the main problem (and also some smaller bugs) tell me if I'm wrong there is something I didn't expected with GL there is no way to update the screen without having to put back all images when calling SDL_GL_SwapBuffers, the buffer has to contain ALL images to display on the screen, and not just the modifications between this frame and the frame before. am I right pablo ? this is however not a big problem i'm by now modifying the engine like that : each screen will contain a list of "on screen elements" (things displayed on it) calling screen::display will iterate through the list and display everything on the screen with inheritance it's not going to take too long to code i think I'll have finished tonight good points : no more troubles with mouse masks : masks aren't needed anymore bad points : need to redraw the whole screen as soon as something is modified so i'll make again some hard modifications on the engine here is a list a things people can do without danger : - add image_engin::set_gamma and modify fadein fadeout of logo - rewrite the .fli decoder for the intro (also scale the video) see you :) Fred -- Why fear computers ? They don't byte !