improved render channel count system

This commit is contained in:
itsmattkc
2020-11-15 22:16:40 +11:00
parent ee5307336e
commit 0d0766e4fb
83 changed files with 1017 additions and 1132 deletions
+6 -20
View File
@@ -41,19 +41,12 @@ public:
kMipmappedLinear
};
enum ChannelFormat {
kRGBA,
kRGB,
kRedOnly
};
static const Interpolation kDefaultInterpolation;
Texture(Renderer* renderer, const QVariant& native, const VideoParams& param, Type type) :
renderer_(renderer),
params_(param),
id_(native),
meaningful_alpha_(true),
type_(type)
{
}
@@ -82,11 +75,16 @@ public:
return params_.height();
}
PixelFormat::Format format() const
VideoParams::Format format() const
{
return params_.format();
}
int channel_count() const
{
return params_.channel_count();
}
int divider() const
{
return params_.divider();
@@ -97,16 +95,6 @@ public:
return params_.pixel_aspect_ratio();
}
bool has_meaningful_alpha() const
{
return meaningful_alpha_;
}
void set_has_meaningful_alpha(bool e)
{
meaningful_alpha_ = e;
}
Type type() const
{
return type_;
@@ -119,8 +107,6 @@ private:
QVariant id_;
bool meaningful_alpha_;
Type type_;
};