Ai
1 Star 10 Fork 2

Gitee 极速下载/blender

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/blender/blender
克隆/下载
GHOST_Path-api.hh 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
/* SPDX-FileCopyrightText: 2010 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup GHOST
*/
#pragma once
#include <optional>
#include <string>
#include "GHOST_Types.h"
GHOST_DECLARE_HANDLE(GHOST_SystemPathsHandle);
/**
* Creates the one and only instance of the system path access.
* \return An indication of success.
*/
extern GHOST_TSuccess GHOST_CreateSystemPaths();
/**
* Disposes the one and only system.
* \return An indication of success.
*/
extern GHOST_TSuccess GHOST_DisposeSystemPaths();
/**
* Determine the base directory in which shared resources are located.
* It will first try to use "unpack and run" path, then look for properly
* installed path, including versioning.
* \return Unsigned char string pointing to system directory (eg `/usr/share/blender/`).
*
* \note typically: `BKE_appdir_resource_path_id(BLENDER_RESOURCE_PATH_SYSTEM, false)` should be
* used instead of this function directly as it ensures environment variable overrides are used.
*/
extern const char *GHOST_getSystemDir(int version, const char *versionstr);
/**
* Determine the base directory in which user configuration is stored, including versioning.
* \return Unsigned char string pointing to user directory (eg ~).
*
* \note typically: `BKE_appdir_resource_path_id(BLENDER_RESOURCE_PATH_USER, false)` should be
* used instead of this function directly as it ensures environment variable overrides are used.
*/
extern const char *GHOST_getUserDir(int version, const char *versionstr);
/**
* Determine a special ("well known") and easy to reach user directory.
* \return If successfull, a string containing the user directory path (eg `~/Documents/`).
*/
extern std::optional<std::string> GHOST_getUserSpecialDir(GHOST_TUserSpecialDirTypes type);
/**
* Determine the directory in which the binary file is found.
* \return Unsigned char string pointing to binary directory (eg ~/usr/local/bin/).
*/
extern const char *GHOST_getBinaryDir();
/**
* Add the file to the operating system most recently used files
*/
extern void GHOST_addToSystemRecentFiles(const char *filepath);
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/blender.git
git@gitee.com:mirrors/blender.git
mirrors
blender
blender
main

搜索帮助