Cleanup: expose struct for ED_view3d_mats_rv3d_*
This commit is contained in:
parent
7b92b64742
commit
6b9d73e8a7
@ -47,6 +47,7 @@ struct Main;
|
||||
struct MetaElem;
|
||||
struct Nurb;
|
||||
struct Object;
|
||||
struct RV3DMatrixStore;
|
||||
struct RegionView3D;
|
||||
struct Scene;
|
||||
struct ScrArea;
|
||||
@ -330,8 +331,8 @@ void ED_view3d_check_mats_rv3d(struct RegionView3D *rv3d);
|
||||
#endif
|
||||
int ED_view3d_scene_layer_set(int lay, const int *values, int *active);
|
||||
|
||||
void *ED_view3d_mats_rv3d_backup(struct RegionView3D *rv3d);
|
||||
void ED_view3d_mats_rv3d_restore(struct RegionView3D *rv3d, void *rv3dmat_pt);
|
||||
struct RV3DMatrixStore *ED_view3d_mats_rv3d_backup(struct RegionView3D *rv3d);
|
||||
void ED_view3d_mats_rv3d_restore(struct RegionView3D *rv3d, struct RV3DMatrixStore *rv3dmat);
|
||||
|
||||
bool ED_view3d_context_activate(struct bContext *C);
|
||||
void ED_view3d_draw_offscreen_init(struct Scene *scene, struct View3D *v3d);
|
||||
|
@ -2955,7 +2955,7 @@ struct RV3DMatrixStore {
|
||||
float pixsize;
|
||||
};
|
||||
|
||||
void *ED_view3d_mats_rv3d_backup(struct RegionView3D *rv3d)
|
||||
struct RV3DMatrixStore *ED_view3d_mats_rv3d_backup(struct RegionView3D *rv3d)
|
||||
{
|
||||
struct RV3DMatrixStore *rv3dmat = MEM_mallocN(sizeof(*rv3dmat), __func__);
|
||||
copy_m4_m4(rv3dmat->winmat, rv3d->winmat);
|
||||
@ -2968,9 +2968,8 @@ void *ED_view3d_mats_rv3d_backup(struct RegionView3D *rv3d)
|
||||
return (void *)rv3dmat;
|
||||
}
|
||||
|
||||
void ED_view3d_mats_rv3d_restore(struct RegionView3D *rv3d, void *rv3dmat_pt)
|
||||
void ED_view3d_mats_rv3d_restore(struct RegionView3D *rv3d, struct RV3DMatrixStore *rv3dmat)
|
||||
{
|
||||
struct RV3DMatrixStore *rv3dmat = rv3dmat_pt;
|
||||
copy_m4_m4(rv3d->winmat, rv3dmat->winmat);
|
||||
copy_m4_m4(rv3d->viewmat, rv3dmat->viewmat);
|
||||
copy_m4_m4(rv3d->persmat, rv3dmat->persmat);
|
||||
|
@ -202,7 +202,7 @@ static PyObject *pygpu_offscreen_draw_view3d(BPy_GPUOffScreen *self, PyObject *a
|
||||
ARegion *ar;
|
||||
GPUFX *fx;
|
||||
GPUFXSettings fx_settings;
|
||||
void *rv3d_mats;
|
||||
struct RV3DMatrixStore *rv3d_mats;
|
||||
|
||||
BPY_GPU_OFFSCREEN_CHECK_OBJ(self);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user