KiCad PCB EDA Suite
Loading...
Searching...
No Matches
3d_cache.cpp File Reference
#include <mutex>
#include <utility>
#include <wx/datetime.h>
#include <wx/dir.h>
#include <wx/log.h>
#include <wx/stdpaths.h>
#include <boost/version.hpp>
#include <boost/uuid/sha1.hpp>
#include "3d_cache.h"
#include "3d_info.h"
#include "3d_plugin_manager.h"
#include "sg/scenegraph.h"
#include "plugins/3dapi/ifsg_api.h"
#include <advanced_config.h>
#include <common.h>
#include <filename_resolver.h>
#include <paths.h>
#include <pgm_base.h>
#include <project.h>
#include <settings/common_settings.h>
#include <settings/settings_manager.h>
#include <wx_filename.h>

Go to the source code of this file.

Classes

class  S3D_CACHE_ENTRY
 

Macros

#define GLM_FORCE_RADIANS
 
#define MASK_3D_CACHE   "3D_CACHE"
 

Functions

static bool isSHA1Same (const unsigned char *shaA, const unsigned char *shaB) noexcept
 
static bool checkTag (const char *aTag, void *aPluginMgrPtr)
 
static const wxString sha1ToWXString (const unsigned char *aSHA1Sum)
 

Variables

static std::mutex mutex3D_cache
 

Macro Definition Documentation

◆ GLM_FORCE_RADIANS

#define GLM_FORCE_RADIANS

Definition at line 26 of file 3d_cache.cpp.

◆ MASK_3D_CACHE

#define MASK_3D_CACHE   "3D_CACHE"

Definition at line 61 of file 3d_cache.cpp.

Function Documentation

◆ checkTag()

static bool checkTag ( const char *  aTag,
void *  aPluginMgrPtr 
)
static

Definition at line 78 of file 3d_cache.cpp.

References S3D_PLUGIN_MANAGER::CheckTag().

Referenced by S3D_CACHE::loadCacheData().

◆ isSHA1Same()

static bool isSHA1Same ( const unsigned char *  shaA,
const unsigned char *  shaB 
)
staticnoexcept

Definition at line 66 of file 3d_cache.cpp.

Referenced by S3D_CACHE::load().

◆ sha1ToWXString()

static const wxString sha1ToWXString ( const unsigned char *  aSHA1Sum)
static

Definition at line 89 of file 3d_cache.cpp.

Referenced by S3D_CACHE_ENTRY::GetCacheBaseName().

Variable Documentation

◆ mutex3D_cache

std::mutex mutex3D_cache
static

Definition at line 63 of file 3d_cache.cpp.

Referenced by S3D_CACHE::load().