------------------------------------------------------------------------------
| 1910 | |
| 1911 | //------------------------------------------------------------------------------ |
| 1912 | void vtkOpenGLContextDevice2D::SetTexture(vtkImageData* image, int properties) |
| 1913 | { |
| 1914 | if (image == nullptr) |
| 1915 | { |
| 1916 | if (this->Storage->Texture) |
| 1917 | { |
| 1918 | this->Storage->Texture->Delete(); |
| 1919 | this->Storage->Texture = nullptr; |
| 1920 | } |
| 1921 | return; |
| 1922 | } |
| 1923 | if (this->Storage->Texture == nullptr) |
| 1924 | { |
| 1925 | this->Storage->Texture = vtkTexture::New(); |
| 1926 | } |
| 1927 | this->Storage->Texture->SetInputData(image); |
| 1928 | this->Storage->TextureProperties = properties; |
| 1929 | this->Storage->Texture->SetRepeat(properties & vtkContextDevice2D::Repeat); |
| 1930 | this->Storage->Texture->SetInterpolate(properties & vtkContextDevice2D::Linear); |
| 1931 | this->Storage->Texture->EdgeClampOn(); |
| 1932 | } |
| 1933 | |
| 1934 | //------------------------------------------------------------------------------ |
| 1935 | void vtkOpenGLContextDevice2D::SetPointSize(float size) |
no test coverage detected