Krita Source Code Documentation
Loading...
Searching...
No Matches
CreateApplicator< channels_type > Struct Template Reference

Public Member Functions

KoAlphaMaskApplicatorBaseoperator() (int numChannels, int alphaPos)
 

Detailed Description

template<typename channels_type>
struct CreateApplicator< channels_type >

Definition at line 15 of file KoAlphaMaskApplicatorFactory.cpp.

Member Function Documentation

◆ operator()()

template<typename channels_type >
KoAlphaMaskApplicatorBase * CreateApplicator< channels_type >::operator() ( int numChannels,
int alphaPos )
inline

Definition at line 17 of file KoAlphaMaskApplicatorFactory.cpp.

17 {
18 if (numChannels == 4) {
19 KIS_ASSERT(alphaPos == 3);
22 } else if (numChannels == 5) {
23 KIS_ASSERT(alphaPos == 4);
26 } else if (numChannels == 2) {
27 KIS_ASSERT(alphaPos == 1);
30 } else if (numChannels == 1) {
31 KIS_ASSERT(alphaPos == 0);
34 } else {
35 KIS_ASSERT(0);
36 }
37
38 return 0;
39 }
auto createOptimizedClass(Args &&...param)
#define KIS_ASSERT(cond)
Definition kis_assert.h:33

References createOptimizedClass(), and KIS_ASSERT.


The documentation for this struct was generated from the following file: