Blender V4.3
BLI_uvproject.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4#pragma once
5
10#ifdef __cplusplus
11extern "C" {
12#endif
13
14struct Object;
15struct ProjCameraInfo;
16
24 const float rotmat[4][4],
25 float winx,
26 float winy);
27
31void BLI_uvproject_from_camera(float target[2], float source[3], struct ProjCameraInfo *uci);
32
37void BLI_uvproject_from_view(float target[2],
38 float source[3],
39 float persmat[4][4],
40 float rotmat[4][4],
41 float winx,
42 float winy);
43
47void BLI_uvproject_from_view_ortho(float target[2], float source[3], const float rotmat[4][4]);
48
52void BLI_uvproject_camera_info_scale(struct ProjCameraInfo *uci, float scale_x, float scale_y);
53
54#ifdef __cplusplus
55}
56#endif
void BLI_uvproject_from_view(float target[2], float source[3], float persmat[4][4], float rotmat[4][4], float winx, float winy)
Definition uvproject.cc:83
void BLI_uvproject_from_view_ortho(float target[2], float source[3], const float rotmat[4][4])
Definition uvproject.cc:176
void BLI_uvproject_from_camera(float target[2], float source[3], struct ProjCameraInfo *uci)
Definition uvproject.cc:31
struct ProjCameraInfo * BLI_uvproject_camera_info(const struct Object *ob, const float rotmat[4][4], float winx, float winy)
void BLI_uvproject_camera_info_scale(struct ProjCameraInfo *uci, float scale_x, float scale_y)
Definition uvproject.cc:187
float rotmat[4][4]
Definition uvproject.cc:26