Blender V5.3
BKE_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
9
10namespace blender {
11
12struct Object;
13struct ProjCameraInfo;
14
22 const float rotmat[4][4],
23 float winx,
24 float winy);
25
29void BKE_uvproject_from_camera(float target[2],
30 const float source[3],
31 const struct ProjCameraInfo *uci);
32
37void BKE_uvproject_from_view(float target[2],
38 const float source[3],
39 const float persmat[4][4],
40 const float rotmat[4][4],
41 float winx,
42 float winy);
43
47void BKE_uvproject_from_view_ortho(float target[2],
48 const float source[3],
49 const float rotmat[4][4]);
50
54void BKE_uvproject_camera_info_scale(ProjCameraInfo *uci, float scale_x, float scale_y);
55
56/*
57 * Free info. */
59
60} // namespace blender
BMesh Iterators.
void BKE_uvproject_camera_info_scale(ProjCameraInfo *uci, float scale_x, float scale_y)
Definition uvproject.cc:197
void BKE_uvproject_from_view(float target[2], const float source[3], const float persmat[4][4], const float rotmat[4][4], float winx, float winy)
Definition uvproject.cc:86
void BKE_uvproject_from_camera(float target[2], const float source[3], const struct ProjCameraInfo *uci)
void BKE_uvproject_camera_info_free(ProjCameraInfo *uci)
Definition uvproject.cc:179
void BKE_uvproject_from_view_ortho(float target[2], const float source[3], const float rotmat[4][4])
Definition uvproject.cc:184
struct ProjCameraInfo * BKE_uvproject_camera_info(const struct Object *ob, const float rotmat[4][4], float winx, float winy)