MCPcopy Create free account
hub / github.com/NazaraEngine/NazaraEngine / Resize

Method Resize

src/Nazara/Graphics/DeferredDOFPass.cpp:193–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 */
192
193 bool DeferredDOFPass::Resize(const Vector2ui& dimensions)
194 {
195 DeferredRenderPass::Resize(dimensions);
196
197 m_dofRTT.Create(true);
198 for (unsigned int i = 0; i < 2; ++i)
199 {
200 m_dofTextures[i]->Create(ImageType_2D, PixelFormatType_RGBA8, dimensions.x/4, dimensions.y/4);
201 m_dofRTT.AttachTexture(AttachmentPoint_Color, i, m_dofTextures[i]);
202 }
203 m_dofRTT.Unlock();
204
205 if (!m_dofRTT.IsComplete())
206 {
207 NazaraError("Incomplete RTT");
208 return false;
209 }
210
211 return true;
212 }
213}

Callers 12

SendCharacterMethod · 0.45
ReceivePacketMethod · 0.45
QueueIncomingCommandMethod · 0.45
ReceivePacketMethod · 0.45
InitStreamMethod · 0.45
InitializeMethod · 0.45
UnserializeFunction · 0.45
StringStream.cppFile · 0.45
ReadLineMethod · 0.45
NormalizePathMethod · 0.45
WriteBlockMethod · 0.45
ByteArray.cppFile · 0.45

Calls 4

AttachTextureMethod · 0.80
IsCompleteMethod · 0.80
CreateMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected