MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / clearPreviewTexture

Method clearPreviewTexture

apps/tools/Studio/StudioApp.cpp:53–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53void StudioApp::clearPreviewTexture()
54{
55 if (previewTexture)
56 {
57 SDL_DestroyTexture(previewTexture);
58 previewTexture = nullptr;
59 }
60 previewTexW = 0;
61 previewTexH = 0;
62 previewTextureFile.clear();
63}
64
65StudioApp::PreviewType StudioApp::previewTypeFromExtension(const std::string& ext)
66{

Callers

nothing calls this directly

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected