linux::opengl::CTextureDataRGBA


All platform-dependent classes have been moved to Platform Package in release 10.0.0.

This class is available on Linux platform only

Corresponding class for Windows platform is here.

Corresponding class for Android platform is here.

Implements texture data.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class CTextureDataRGBA :public ITextureData
    {
    public:
        int getWidth() override;
        int getHeight() override;
        int getPitch() override;
        unsigned char *getData() override;
        Color getPixel(const int x, const int y) override;
        Color getPixelFast(const int x, const int y) override;
    
        void setPixel(const int x, const int y, const Color &value) override;
        void setPixelFast(const int x, const int y, const Color &value) override;
    
        void Release() override;
    
        CTextureDataRGBA(CTextureRGBA *texture, const bool readonly);
        virtual ~CTextureDataRGBA() = default;
    };
Namespace: nitisa::standard::linux::opengl
Include: Standard/Platform/Linux/OpenGL/TextureDataRGBA.h