Content


NTL
Core
ITextureMultisample

ITextureMultisample


Describes multi-sample texture(image). It is a renderer resource and could be used only when renderer is defined. It means it could be used only when owner of the texture belongs to the form. It couldn't be used to draw on the form whose renderer is different. It shouldn't be used by control when control was removed from form. If you want store images without any restrictions, use Image instead(then, you can create texture from it and draw the texture with help of renderer).

You can find more information in comments below.

class ITextureMultisample : public virtual IBaseTexture
{
protected:
    TextureDepthStencilMode m_eDepthStencilMode;
    TextureSwizzle m_eSwizzleR;
    TextureSwizzle m_eSwizzleG;
    TextureSwizzle m_eSwizzleB;
    TextureSwizzle m_eSwizzleA;
    int m_iSamples;
    bool m_bFixedSampleLocations;
public:
    TextureDepthStencilMode const &DepthStencilMode;
    TextureSwizzle const &SwizzleR;
    TextureSwizzle const &SwizzleG;
    TextureSwizzle const &SwizzleB;
    TextureSwizzle const &SwizzleA;
    int const &Samples;
    bool const &FixedSampleLocations;

    virtual bool setDepthStencilMode(const TextureDepthStencilMode value) = 0;
    virtual bool setSwizzleR(const TextureSwizzle value) = 0;
    virtual bool setSwizzleG(const TextureSwizzle value) = 0;
    virtual bool setSwizzleB(const TextureSwizzle value) = 0;
    virtual bool setSwizzleA(const TextureSwizzle value) = 0;
    virtual bool setSwizzleRGBA(const TextureSwizzle value) = 0;
    virtual bool setSamples(const int value) = 0;
    virtual bool setFixedSampleLocations(const bool value) = 0;
};
Namespace: nitisa
Include: Nitisa/Interfaces/ITextureMultisample.h