summaryrefslogtreecommitdiff
path: root/src/openglgraphics.cpp
AgeCommit message (Collapse)AuthorFilesLines
2009-10-09Made the smooth effect quadratic.Bertram1-0/+5
2009-10-09IAS (I am stupid (TM) ;D...Bertram1-4/+6
2009-10-09Final fix (or I hope so) to smooth effect in OpenGL.Bertram1-2/+3
2009-10-07Fixed wallpaper blur by only using resized image drawing when it is necessaryPhilipp Sehmisch1-0/+6
2009-09-23Added a basic smooth effect to rescaled wallpapers in OpenGL.Bertram1-0/+23
The current login wallpaper (as any streched ones) will look a bit less ugly...
2009-07-27Added the ability to ask a ambient layer to keep its ratio when the ↵Bertram1-0/+43
resolution isn't the default. You'll have to add this in map properties, for instance if you're want to keep ratio on overlay 0: <map version="1.0" orientation="orthogonal" width="128" height="128" tilewidth="32" tileheight="32"> <properties> ... <property name="overlay0keepratio" value="true"/> ... </properties> </map>
2009-07-24Made the wallpaper be rescaled when necessary under SDL and OpenGL.Bertram1-0/+67
The SDL methods to rescale the wallpaper has been optimized to permit rescaling at load time while OpenGL draws directly rescaled. Does someone know how to smooth the rescaled image under OpenGL?
2009-04-14Unduplicated the code that draws a quadBjørn Lindeijer1-58/+36
Shouldn't affect performance.
2009-03-23Merge branch 'aethyra/master'Bjørn Lindeijer1-20/+93
Conflicts: Many files.
2009-03-18Fixed a broken Mac include for SDL_ttfBjørn Lindeijer1-2/+2
Reviewed-by: trapdoor
2009-03-17Added an image merge feature loosely based on a merge function found inIra Rice1-1/+0
the open source project Wormux. To improve SDL performance, the number of layers that are pushed out to the hardware or software buffers should be reduced, which is where this function comes into play, as it combines two surfaces together so that the number of blit operations is reduced. This function is currently not used, but will be used once a good way to link each of the target systems is determined so that it only initiates when SDL is enabled, as well as making sure that each hook that uses this function is benefiting from it sufficiently. At the moment, it's suspected that the particle engine will likely be the most likely to benefit from this function, followed by tile drawing, then sprite drawing. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-16Applied a similar optimization as in commitIra Rice1-17/+36
d654758ef63f6515d678ceaf77d63a2693e08fb7, but for SDL instead. This currently doesn't buy too much, but it's a little better than it used to be. TODO: Find out why SDL is bottlenecked, and try to bring its performance up to OpenGL levels, if possible. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-03-16Optimising OpenGLGraphics::drawImagePatternSteve Cotton1-0/+53
2009-03-10Extended window layout to take relative positions, as well as offsets toIra Rice1-20/+22
that position. This makes it so that when resolutions are changed, the default locations stay relative to the window's position, and not the 800x600 screen resolution. Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-10Fixed header files, as well as removed the unused buddy list class (notIra Rice1-2/+3
useful since buddy lists are tracked through the player relation interface instead) Signed-off-by: Ira Rice <irarice@gmail.com>
2009-02-07Some more include cleanups.Ira Rice1-5/+0
Signed-off-by: Ira Rice <irarice@gmail.com>
2009-01-23Removed unnecessary references to The Mana World in code headersBjørn Lindeijer1-4/+4
This dates back to the old days of TMW, but the usage instructions of GPLv2 don't mention this being necessary. Since it doesn't add anything, avoid the branding in these sections.
2009-01-05Made an option around the syncing, but no way to change it for now.Bjørn Lindeijer1-3/+1
(cherry picked from mainline commit f6f8b2f885145d4cacf7a6c42d88b6a39f71b366) Conflicts: src/openglgraphics.cpp
2008-12-02Made an option around the syncing, but no way to change it for now.Bjørn Lindeijer1-1/+11
2008-11-21Fixed the linker error that we've been having. Apparently, it was caused Ira Rice1-11/+12
by me accidently removing the include for main.h in openglgraphics.
2008-11-18Pedantic fixes to the client, where I alphabetized all of the include Ira Rice1-6/+1
statements, as well as removing the new skill dialog, which we do not, nor will we use (if we do, it'd be a new one that we'd make). WARNING!!! This, and all other previous builds have a linker error for the Gnome libraries version 4.3.2 on my setup. It's assumed that this is also the case for other users of this library as well. I'm currently assuming that there's a bug in the compiler itself, and will look into reporting this, but in the mean time, it doesn't build for these users, unfortunately. Sorry about this.
2008-07-18Import of client treeLloyd Bryant1-1/+1
2008-04-18Mac now uses Apple key forDavid Athay1-2/+2
emoticons, so alt can be used for alternate characters. Disable vsync on mac.
2007-12-24Minor update, fixed disconnection dialogDavid Athay1-1/+1
2007-10-18Merged removal of dependency on Guichan OpenGL from trunk to 0.0 branch, Bjørn Lindeijer1-62/+73
including optimization of OpenGL memory usage on modern OpenGL drivers. Patches by Guillaume Melquiond.
2007-04-15Rely on default 0 value for z axis.Bjørn Lindeijer1-12/+12
2006-11-26Higher precision log timestamps, some more logging and support for TGA images.Bjørn Lindeijer1-0/+3
2006-08-13Merged Guichan 0.5.0 support from guichan-0.5.0 branch, plus several updatesBjørn Lindeijer1-15/+13
from the 0.1.0 branch.
2006-05-12Set color back to current color instead of setting it to white. Fixes whiteBjørn Lindeijer1-1/+1
rectangles in equipment window.
2006-05-03Increased fps limit granularity and cleaned some code, fixed some xml ↵Eugenio Favalli1-11/+0
library name in Dev-C++ project file, switched version to 0.0.20.
2006-03-09Made all class members named like mClassMember.Björn Steinbrink1-2/+2
2006-02-23A bunch of mostly cosmetic cleanups.Björn Steinbrink1-1/+0
2005-10-15Some small cleanups.Björn Steinbrink1-1/+1
2005-10-09* Made Sprite into an interface implemented by both FloorItem and Being, whichBjørn Lindeijer1-5/+5
hook themselves into the map on construction. The improved fringe layer is working as expected now. * Made sure TMW compiles without warnings even when using "-Wconversion -Wshadow -Wcast-qual -Wwrite-strings -ansi -pedantic", lots of cleanups. * Added two new small tilesets that contain the desert tiles that are twice and three times the height of a normal tile. One well in new_3-1 has been converted to use the new double tiles for testing purposes.
2005-09-24Fix crash on exit after taking screenshot in OpenGL and fix compiler warning.Bjørn Lindeijer1-12/+30
2005-09-24Fix compile error and memory leak as by Nayr's patch. Verified to work on ↵Bjørn Lindeijer1-5/+6
Windows, still needs to be tested by Mac (maybe needs the byte mask stuff) and I would like the code to be verified again, too.
2005-09-23fixed opengl screenshot, made opengl smoother on macosxDuane Bailey1-47/+23
2005-09-20Fixed use of Enter for closing death and weight notices, and changed glColor4fBjørn Lindeijer1-15/+15
to glColor4ub.
2005-09-18Changed Graphics::saveScreenshot to Graphics::getScreenshot. Now using the ↵Björn Steinbrink1-0/+55
ImageWriter to save that screenshot.
2005-09-17Use gl{Push,Pop}Matrix instead of calculating offsets, cause floating point ↵Björn Steinbrink1-7/+2
maths isn't accurate enough.
2005-08-31Fix push/pop clip area, also fixes the broken scrollareas.Björn Steinbrink1-8/+8
2005-08-28Prepare our source so that it'll survive a guichan header cleanup, should it ↵Björn Steinbrink1-0/+2
ever happen...
2005-08-26Remove useless code.Björn Steinbrink1-5/+0
2005-08-26Use glTranslatef instead of glTranslated. Remove some useless code.Björn Steinbrink1-41/+4
2005-08-25Use OpenGL's translation capabilites. Small cleanups.Björn Steinbrink1-22/+23
2005-08-25Reducing the code duplication a little more.Björn Steinbrink1-96/+63
2005-08-25Reduce code duplication.Björn Steinbrink1-34/+18
2005-08-25Made our drawImage() method respect the clip area from the guichan graphics ↵Björn Steinbrink1-0/+3
part. Removed some (now) obsolete code. Fixed compilation errors.
2005-08-20Added some missing state changes and checks.Björn Steinbrink1-8/+28
2005-08-18Semi-separated OpenGL and SDL graphics classes, improving OpenGL performance.Björn Steinbrink1-0/+389