Opened 22 years ago

Closed 22 years ago

Last modified 5 years ago

#8101 closed patch

OpenGL with overlay

Reported by: SF/luke_br Owned by: fingolfin
Priority: normal Component: Graphics
Version: Keywords:
Cc: Game:

Description

New OpenGL rendering for the new scummvm stuff.

Ticket imported from: #626629. Ticket imported from: patches/206.

Attachments (2)

fb2opengl.h (11.2 KB ) - added by SF/luke_br 22 years ago.
Functions for OpenGL rendering
sdl_gl.cpp (12.2 KB ) - added by SF/luke_br 22 years ago.
SDL Object for OpenGL support

Download all attachments as: .zip

Change History (6)

by SF/luke_br, 22 years ago

Attachment: fb2opengl.h added

Functions for OpenGL rendering

by SF/luke_br, 22 years ago

Attachment: sdl_gl.cpp added

SDL Object for OpenGL support

comment:1 by SF/luke_br, 22 years ago

I forgot to tell: it's a little bit slower than the SDL version. And when moving the mouse cursor, the screen stops being updated. Don't know why yet. I didn't test it on a windows machine, but it will probably work.

comment:2 by fingolfin, 22 years ago

Owner: set to fingolfin
Status: newclosed

comment:3 by fingolfin, 22 years ago

Checked in. Some notes:

* I changed <GL/gl.h> (doesn't exist here) back to <SDL_opengl.h> * the GUI colors are wrong here (555 vs 565 mode), nothing you can or should do about it for now, though: I need to honor PROP_OVERLAY_IS_565 in NewGUI * the screen is always inited ot 640x480. No problem, but most ScummVM games are actually 320x200 and the scaler stretches the graphics vertically - looks kinda ugly. Would it be possible to add an options that adds black borders at the bottom & top instead?

comment:4 by digitall, 5 years ago

Component: Graphics
Note: See TracTickets for help on using tickets.