MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkTextureObject

Method vtkTextureObject

Rendering/OpenGL2/vtkTextureObject.cxx:118–162  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

116
117//------------------------------------------------------------------------------
118vtkTextureObject::vtkTextureObject()
119{
120 this->Context = nullptr;
121 this->Handle = 0;
122 this->OwnHandle = false;
123 this->NumberOfDimensions = 0;
124 this->Target = 0;
125 this->Components = 0;
126 this->Width = 0;
127 this->Height = 0;
128 this->Depth = 0;
129 this->Samples = 0;
130 this->RequireTextureInteger = false;
131 this->SupportsTextureInteger = false;
132 this->RequireTextureFloat = false;
133 this->SupportsTextureFloat = false;
134 this->RequireDepthBufferFloat = false;
135 this->SupportsDepthBufferFloat = false;
136 this->AutoParameters = 1;
137 this->WrapS = Repeat;
138 this->WrapT = Repeat;
139 this->WrapR = Repeat;
140 this->MinificationFilter = Nearest;
141 this->MagnificationFilter = Nearest;
142 this->MinLOD = -1000.0f;
143 this->MaxLOD = 1000.0f;
144 this->BaseLevel = 0;
145 this->MaxLevel = 0;
146 this->DepthTextureCompare = false;
147 this->DepthTextureCompareFunction = Lequal;
148 this->GenerateMipmap = false;
149 this->ShaderProgram = nullptr;
150 this->BorderColor[0] = 0.0f;
151 this->BorderColor[1] = 0.0f;
152 this->BorderColor[2] = 0.0f;
153 this->BorderColor[3] = 0.0f;
154 this->MaximumAnisotropicFiltering = 1.0;
155 this->BufferObject = nullptr;
156 this->UseSRGBColorSpace = false;
157
158 this->ResourceCallback = new vtkOpenGLResourceFreeCallback<vtkTextureObject>(
159 this, &vtkTextureObject::ReleaseGraphicsResources);
160
161 this->ResetFormatAndType();
162}
163
164//------------------------------------------------------------------------------
165vtkTextureObject::~vtkTextureObject()

Callers

nothing calls this directly

Calls 1

ResetFormatAndTypeMethod · 0.95

Tested by

no test coverage detected