Blender  V3.3
BLI_uvproject.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 #pragma once
3 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 struct Object;
13 struct ProjCameraInfo;
14 
22  float rotmat[4][4],
23  float winx,
24  float winy);
25 
29 void BLI_uvproject_from_camera(float target[2], float source[3], struct ProjCameraInfo *uci);
30 
35 void BLI_uvproject_from_view(float target[2],
36  float source[3],
37  float persmat[4][4],
38  float rotmat[4][4],
39  float winx,
40  float winy);
41 
45 void BLI_uvproject_from_view_ortho(float target[2], float source[3], const float rotmat[4][4]);
46 
50 void BLI_uvproject_camera_info_scale(struct ProjCameraInfo *uci, float scale_x, float scale_y);
51 
52 #ifdef __cplusplus
53 }
54 #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.c:79
void BLI_uvproject_from_view_ortho(float target[2], float source[3], const float rotmat[4][4])
Definition: uvproject.c:169
void BLI_uvproject_from_camera(float target[2], float source[3], struct ProjCameraInfo *uci)
Definition: uvproject.c:27
struct ProjCameraInfo * BLI_uvproject_camera_info(struct Object *ob, float rotmat[4][4], float winx, float winy)
Definition: uvproject.c:120
void BLI_uvproject_camera_info_scale(struct ProjCameraInfo *uci, float scale_x, float scale_y)
Definition: uvproject.c:180
float rotmat[4][4]
Definition: uvproject.c:22