Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r52093 - in sandbox/guigl: boost/guigl libs/guigl/build/xcodeide/guigl.xcodeproj
From: stipe_at_[hidden]
Date: 2009-03-31 20:53:40


Author: srajko
Date: 2009-03-31 20:53:39 EDT (Tue, 31 Mar 2009)
New Revision: 52093
URL: http://svn.boost.org/trac/boost/changeset/52093

Log:
making alpha channel for color_type optional
Text files modified:
   sandbox/guigl/boost/guigl/types.hpp | 13 ++++++++++++-
   sandbox/guigl/libs/guigl/build/xcodeide/guigl.xcodeproj/project.pbxproj | 2 ++
   2 files changed, 14 insertions(+), 1 deletions(-)

Modified: sandbox/guigl/boost/guigl/types.hpp
==============================================================================
--- sandbox/guigl/boost/guigl/types.hpp (original)
+++ sandbox/guigl/boost/guigl/types.hpp 2009-03-31 20:53:39 EDT (Tue, 31 Mar 2009)
@@ -17,7 +17,18 @@
 
 typedef gil::point2<double> size_type;
 typedef gil::point2<double> position_type;
-typedef gil::rgba32f_pixel_t color_type;
+struct color_type : public gil::rgba32f_pixel_t
+{
+ typedef gil::rgba32f_pixel_t base_type;
+ typedef gil::bits32f channel_t;
+
+ explicit color_type(channel_t v)
+ : base_type(v)
+ {}
+ color_type(channel_t v0, channel_t v1, channel_t v2, channel_t v3 = static_cast<channel_t>(1))
+ : base_type(v0,v1,v2,v3)
+ {}
+};
 
 }}
 

Modified: sandbox/guigl/libs/guigl/build/xcodeide/guigl.xcodeproj/project.pbxproj
==============================================================================
--- sandbox/guigl/libs/guigl/build/xcodeide/guigl.xcodeproj/project.pbxproj (original)
+++ sandbox/guigl/libs/guigl/build/xcodeide/guigl.xcodeproj/project.pbxproj 2009-03-31 20:53:39 EDT (Tue, 31 Mar 2009)
@@ -175,6 +175,7 @@
                 08B919780EB682BC00F743E3 /* delayed_constructor.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = delayed_constructor.hpp; sourceTree = "<group>"; };
                 08B9197C0EB6885C00F743E3 /* test_delayed_constructor.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = test_delayed_constructor.cpp; sourceTree = "<group>"; };
                 08CD92110EEB51120047AE90 /* export_symbols.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = export_symbols.hpp; sourceTree = "<group>"; };
+ 08CF173F0F784CC1002C4CBF /* color.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = color.hpp; sourceTree = "<group>"; };
                 08D0F2550E6712E90026C6DF /* active_colored.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = active_colored.hpp; sourceTree = "<group>"; };
                 08D0F25D0E67139E0026C6DF /* active_colored.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = active_colored.hpp; sourceTree = "<group>"; };
                 08D5606D0E52901F005A2391 /* window.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = window.cpp; sourceTree = "<group>"; };
@@ -356,6 +357,7 @@
                 08A454D80E5243ED002C4151 /* guigl */ = {
                         isa = PBXGroup;
                         children = (
+ 08CF173F0F784CC1002C4CBF /* color.hpp */,
                                 081B06DC0E5FE32A00EF7F91 /* layout */,
                                 08978DC60E5D943200C79062 /* view */,
                                 089E06FA0E5D0F2A00C425FE /* widget */,


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk