Opened 22 years ago

Closed 22 years ago

Last modified 6 years ago

#7970 closed patch

Updated OPENGL/SDL rendering routines

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

Description

Here goes the updated version of the OpenGL rendering routines (from CVS 06/09/2002). The Makefile.diff adds the option to add the needed libraries and defines for the OpenGL mode. If you comment this in the Makefile, then you will compile the normal SDL (or X11) mode. If not commented, this will generate a binary executable that *only* renders in OpenGL textures with bilinear filtering (good for people with 3d accelerators). The OpenGL routines are used in the fb2opengl.h file.

Ticket imported from: #566441. Ticket imported from: patches/75.

Attachments (10)

opengl_sdl.cpp.diff (2.3 KB ) - added by SF/luke_br 22 years ago.
Modified sdl.cpp for OpenGL rendering support
fb2opengl.h (8.7 KB ) - added by SF/luke_br 22 years ago.
Framebuffer to OpenGL texture routines
fb2opengl.2.h (8.7 KB ) - added by SF/luke_br 22 years ago.
Framebuffer to OpenGL texture conversion
Makefile.diff (127 bytes ) - added by SF/luke_br 22 years ago.
Modified Makefile to add OpenGL support
fb2opengl11.h (9.5 KB ) - added by SF/luke_br 22 years ago.
FIXED! Sorry, my fault.
sdl_opengl_11.cpp.diff (2.3 KB ) - added by SF/luke_br 22 years ago.
FIXED! Sorry, my fault.
sdl_gl.cpp (25.5 KB ) - added by SF/luke_br 22 years ago.
New SDL/OpenGL output mode (choose in Makefile)
Makefile.mingw.diff (159 bytes ) - added by SF/luke_br 22 years ago.
Makefile.ming for new SDL/OpenGL output
Makefile.2.diff (506 bytes ) - added by SF/luke_br 22 years ago.
Modified Makefile dor new SDL/OpenGL output mode
sdl_gl.2.cpp (25.5 KB ) - added by SF/luke_br 22 years ago.
Fullscreen Toggle and Gamma Correction

Download all attachments as: .zip

Change History (15)

by SF/luke_br, 22 years ago

Attachment: opengl_sdl.cpp.diff added

Modified sdl.cpp for OpenGL rendering support

by SF/luke_br, 22 years ago

Attachment: fb2opengl.h added

Framebuffer to OpenGL texture routines

by SF/luke_br, 22 years ago

Attachment: fb2opengl.2.h added

Framebuffer to OpenGL texture conversion

by SF/luke_br, 22 years ago

Attachment: Makefile.diff added

Modified Makefile to add OpenGL support

comment:1 by Kirben, 22 years ago

I was attempting to try out the OpenGL patch and noticed a
few problems: bzero don't exist on mingw, so please use memset () instead. Could you alter the source code to not require OpenGL 1.2 ? unforunately Windows is still stuck with OpenGL 1.1 and I'm unable to find OpenGL 1.2 libs for Windows anywhere.

comment:2 by Kirben, 22 years ago

Compiles fine with OpenGL support now but I get a black screen no matter what I do, ScummVM still seems to be working ok otherwise as I can hear sound in background. Could it be related to problem mentioned at http://www.opengl.org/developers/faqs/technical/mswindows.ht m#mswi0190 ? since I'm using Windows XP and have no OpenGL problems with other programs.

by SF/luke_br, 22 years ago

Attachment: fb2opengl11.h added

FIXED! Sorry, my fault.

by SF/luke_br, 22 years ago

Attachment: sdl_opengl_11.cpp.diff added

FIXED! Sorry, my fault.

by SF/luke_br, 22 years ago

Attachment: sdl_gl.cpp added

New SDL/OpenGL output mode (choose in Makefile)

by SF/luke_br, 22 years ago

Attachment: Makefile.mingw.diff added

Makefile.ming for new SDL/OpenGL output

by SF/luke_br, 22 years ago

Attachment: Makefile.2.diff added

Modified Makefile dor new SDL/OpenGL output mode

by SF/luke_br, 22 years ago

Attachment: sdl_gl.2.cpp added

Fullscreen Toggle and Gamma Correction

comment:3 by SF/ender, 22 years ago

This has been applied, so I'm closing this patch request.

Thanks Andr :)

comment:4 by SF/ender, 22 years ago

Owner: set to Kirben
Status: newclosed

comment:5 by digitall, 6 years ago

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