[opengtl-commits] [757] generate the template |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 757
Author: cyrille
Date: 2009-05-30 12:25:14 +0200 (Sat, 30 May 2009)
Log Message:
-----------
generate the template
Modified Paths:
--------------
trunk/OpenGTL/OpenCTL/tools/templatecompiler/CtlTC.cpp
Modified: trunk/OpenGTL/OpenCTL/tools/templatecompiler/CtlTC.cpp
===================================================================
--- trunk/OpenGTL/OpenCTL/tools/templatecompiler/CtlTC.cpp 2009-05-30 10:20:14 UTC (rev 756)
+++ trunk/OpenGTL/OpenCTL/tools/templatecompiler/CtlTC.cpp 2009-05-30 10:25:14 UTC (rev 757)
@@ -146,9 +146,13 @@
ctltemplate.compile();
if(ctltemplate.isCompiled())
{
+ int alphaPos = -1;
+ if(hasAlpha) {
+ alphaPos = channelsCount - 1;
+ }
+ std::cout << ctltemplate.generateSource(typesMap, GTLCore::PixelDescription(typeChannelImage, channelsCount, alphaPos)) << std::endl;
+ } else {
std::cout << "Error: " << std::endl << ctltemplate.compilationErrorsMessage() << std::endl;
- } else {
-
}
}
}