MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetVideoPointer

Method GetVideoPointer

src/video/win32_v.cpp:1559–1565  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1557}
1558
1559void *VideoDriver_Win32OpenGL::GetVideoPointer()
1560{
1561 if (BlitterFactory::GetCurrentBlitter()->NeedsAnimationBuffer()) {
1562 this->anim_buffer = OpenGLBackend::Get()->GetAnimBuffer();
1563 }
1564 return OpenGLBackend::Get()->GetVideoBuffer();
1565}
1566
1567void VideoDriver_Win32OpenGL::ReleaseVideoPointer()
1568{

Callers 4

AllocateBackingStoreMethod · 0.95
LockVideoBufferMethod · 0.45
RedrawScreenDebugMethod · 0.45
LockVideoBufferMethod · 0.45

Calls 3

GetVideoBufferMethod · 0.80
NeedsAnimationBufferMethod · 0.45
GetAnimBufferMethod · 0.45

Tested by

no test coverage detected