Attempt xcb image put.
This commit is contained in:
parent
c6d03f16d0
commit
5d984aa61d
6 changed files with 78 additions and 6 deletions
|
@ -29,12 +29,28 @@ public:
|
|||
void setBitDepth(unsigned bitDepth);
|
||||
void setNumChannels(unsigned numChannels);
|
||||
|
||||
private:
|
||||
void initialize();
|
||||
|
||||
const T* getDataPtr() const
|
||||
{
|
||||
return mData.data();
|
||||
}
|
||||
|
||||
const std::vector<T>& getDataRef() const
|
||||
{
|
||||
return mData;
|
||||
}
|
||||
|
||||
std::vector<T> getData() const
|
||||
{
|
||||
return mData;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
unsigned mWidth{1};
|
||||
unsigned mHeight{1};
|
||||
unsigned mBitDepth{8};
|
||||
unsigned mNumChannels{1};
|
||||
unsigned mNumChannels{4};
|
||||
std::vector<T> mData;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue