Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » U++ community news and announcements » DDARasterizer
DDARasterizer [message #39932] Sun, 12 May 2013 17:02 Go to next message
mirek is currently offline  mirek
Messages: 13996
Registered: November 2005
Ultimate Member
I have added DDARasterizer class to Draw package - it is able to convert lines and polygons to series of vertical and horizontal line segments, using strictly non-antialiased DDA/Bresenham algorithm.

It is intended to e.g. emulate polygon painting when only DrawRect is available.
Re: DDARasterizer [message #39937 is a reply to message #39932] Mon, 13 May 2013 12:02 Go to previous messageGo to next message
Zbych is currently offline  Zbych
Messages: 327
Registered: July 2009
Senior Member
Hi,

Gcc 4.4 shows some warnings in DDA code (svn 6059):

/home/zbych/upp/uppsrc/Draw/DDARasterizer.cpp: In member function ‘void Upp::DDARasterizer::FatLine(Upp::Point, Upp::Point, int)’:
/home/zbych/upp/uppsrc/Draw/DDARasterizer.cpp:110: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/home/zbych/upp/uppsrc/Core/Gtypes.h:148: note: candidate 1: Upp::Point_<double> Upp::operator*(double, Upp::Point_<double>)
/home/zbych/upp/uppsrc/Core/Gtypes.h:148: note: candidate 2: Upp::Point_<int> Upp::operator*(int, Upp::Point_<int>)
/home/zbych/upp/uppsrc/Draw/DDARasterizer.cpp:111: warning: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/home/zbych/upp/uppsrc/Core/Gtypes.h:150: note: candidate 1: Upp::Point_<double> Upp::operator/(Upp::Point_<double>, double)
/home/zbych/upp/uppsrc/Core/Gtypes.h:150: note: candidate 2: Upp::Point_<int> Upp::operator/(Upp::Point_<int>, int)
S

[Updated on: Mon, 13 May 2013 17:35]

Report message to a moderator

Re: DDARasterizer [message #39943 is a reply to message #39937] Tue, 14 May 2013 20:44 Go to previous message
mirek is currently offline  mirek
Messages: 13996
Registered: November 2005
Ultimate Member
GCC 4.6 was not warning at all; however older version of GCC even ended with error.

Should be fixed now.
Previous Topic: ide find&replace is now able to lowercase/uppercase/initcaps and index
Next Topic: CtrlLib: Calendar, DropDate: Fixed issue with end of month clicks, WhenWeek
Goto Forum:
  


Current Time: Wed Jul 24 16:22:36 CEST 2024

Total time taken to generate the page: 0.01905 seconds