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 » U++ Library support » Draw, Display, Images, Bitmaps, Icons » RGBA ctor
RGBA ctor [message #20463] Thu, 19 March 2009 20:52 Go to previous message
Mindtraveller is currently offline  Mindtraveller
Messages: 916
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

I think it will be good to have uniform ctor for RGBA. This will unify constructing colours on different platforms:
//Color.h
//add to each platform` implementation:
struct RGBA : Moveable<RGBA> {
RGBA (byte R, byte G, byte B, byte A = 0xFF) :r(R),g(G),b(B),a(A) {}
...
 
Read Message
Read Message
Previous Topic: DrawOpWin32.cpp, line 96 q != ERROR
Next Topic: Drawing rectangles question
Goto Forum:
  


Current Time: Mon Oct 26 10:50:47 CET 2020

Total time taken to generate the page: 0.01648 seconds