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 » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » Painter 2.0
Re: Painter 2.0 [message #20098 is a reply to message #20095] Tue, 17 February 2009 14:42 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
cbpporter wrote on Tue, 17 February 2009 07:39


So maybe a single interface is in order, which handles the common denominator of both Draw and Painter and which can choose it's backend.



Painter implements Draw. That IMO is as far as you can get.

To make things clear: Draw has to be there because DrawText, DrawImage (single image many times) and DrawRect are HW accelerated. Also, they are enough to create GUI (e.g. CtrlLib only uses these 3 methods). Also worth noting is that DrawText is using system font renderer - rendering fonts any other way would make your app to look inconsistent with the rest of OS.

If you are about to create some complex graphics, use Painter and use Draw to put the resulting image on the screen. (And to paint to Painter, you can use any routine that accepts Draw&, e.g. RichText works in with Painter).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ide: Compare with file, SVN history
Next Topic: MT
Goto Forum:
  


Current Time: Fri May 10 23:02:54 CEST 2024

Total time taken to generate the page: 0.02467 seconds