Opened 17 years ago

Closed 17 years ago

Last modified 12 months ago

#8102 closed patch

OpenGL stuff changed (again)

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

Description

I now use a method for blitting the sdl_tmpscreen on a
texture (see
FB2GL::blit16() in fb2opengl.h).
With this I didn't have to change much of the SDL
original code.
There is only one small problem: the end of screen get
blurred when
shaking. I tried to use a blackrectangle to fill it up,
but that cause other
problems in the screen (?). I will look that later.
BTW, the mouse problem is solved. It happened because
the rendering
was slow. Now it's s faster.
The new variable _screenStart when set (default is 30)
centers the screen
in OpenGL mode. If it's value is 0 (zero), the game
screen is streched
vertically to fit the whole monitor screen.

Ticket imported from: #627178. Ticket imported from: patches/207.

Attachments (2)

fb2opengl.h (12.1 KB ) - added by SF/luke_br 17 years ago.
Functions for rendering in OpenGL (new blit16 method)
sdl_gl.cpp (12.7 KB ) - added by SF/luke_br 17 years ago.
SDL with OpenGL

Download all attachments as: .zip

Change History (5)

by SF/luke_br, 17 years ago

Attachment: fb2opengl.h added

Functions for rendering in OpenGL (new blit16 method)

by SF/luke_br, 17 years ago

Attachment: sdl_gl.cpp added

SDL with OpenGL

comment:1 by SF/ender, 17 years ago

Owner: set to SF/ender
Status: newclosed

comment:2 by SF/ender, 17 years ago

Thanks, applied :)

In the future is there any chance you can send diff's instead of whole files?
It makes the process easier for us :)

comment:3 by digitall, 12 months ago

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