1 /* 2 * This program is free software; you can redistribute it and/or 3 * modify it under the terms of the GNU General Public License 4 * as published by the Free Software Foundation; either version 2 5 * of the License, or (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * GNU General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License 13 * along with this program; if not, write to the Free Software Foundation, 14 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15 */ 16 17 /** \file 18 * \ingroup DNA 19 */ 20 21 #pragma once 22 23 /** Settings for offscreen rendering */ 24 typedef enum eV3DOffscreenDrawFlag { 25 V3D_OFSDRAW_NONE = (0), 26 V3D_OFSDRAW_SHOW_ANNOTATION = (1 << 0), 27 V3D_OFSDRAW_OVERRIDE_SCENE_SETTINGS = (1 << 1), 28 V3D_OFSDRAW_SHOW_GRIDFLOOR = (1 << 2), 29 } eV3DOffscreenDrawFlag; 30 31 /** #View3DShading.light */ 32 typedef enum eV3DShadingLightingMode { 33 V3D_LIGHTING_FLAT = 0, 34 V3D_LIGHTING_STUDIO = 1, 35 V3D_LIGHTING_MATCAP = 2, 36 } eV3DShadingLightingMode; 37 38 /** #View3DShading.color_type, #View3DShading.wire_color_type */ 39 typedef enum eV3DShadingColorType { 40 V3D_SHADING_MATERIAL_COLOR = 0, 41 V3D_SHADING_RANDOM_COLOR = 1, 42 V3D_SHADING_SINGLE_COLOR = 2, 43 V3D_SHADING_TEXTURE_COLOR = 3, 44 V3D_SHADING_OBJECT_COLOR = 4, 45 V3D_SHADING_VERTEX_COLOR = 5, 46 } eV3DShadingColorType; 47 48 /** #View3DShading.background_type */ 49 typedef enum eV3DShadingBackgroundType { 50 V3D_SHADING_BACKGROUND_THEME = 0, 51 V3D_SHADING_BACKGROUND_WORLD = 1, 52 V3D_SHADING_BACKGROUND_VIEWPORT = 2, 53 } eV3DShadingBackgroundType; 54