The only remaining code in source/blender that must be compiled as C is now datatoc generated code and the DNA defaults that use designated initializers. Pull Request: https://projects.blender.org/blender/blender/pulls/134469
38 lines
924 B
C
38 lines
924 B
C
/* SPDX-FileCopyrightText: 2023 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup freestyle
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
extern "C" {
|
|
#include <Python.h>
|
|
}
|
|
|
|
#include "../view_map/ViewMap.h"
|
|
|
|
#include "BPy_SShape.h"
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
extern PyTypeObject ViewShape_Type;
|
|
|
|
#define BPy_ViewShape_Check(v) (PyObject_IsInstance((PyObject *)v, (PyObject *)&ViewShape_Type))
|
|
|
|
/*---------------------------Python BPy_ViewShape structure definition----------*/
|
|
typedef struct {
|
|
PyObject_HEAD
|
|
Freestyle::ViewShape *vs;
|
|
bool borrowed; /* true if *vs a borrowed object */
|
|
BPy_SShape *py_ss;
|
|
} BPy_ViewShape;
|
|
|
|
/*---------------------------Python BPy_ViewShape visible prototypes-----------*/
|
|
|
|
int ViewShape_Init(PyObject *module);
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////
|