Blender V5.0
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
10struct Object;
11struct ProjCameraInfo;
12
20 const float rotmat[4][4],
21 float winx,
22 float winy);
23
27void BKE_uvproject_from_camera(float target[2], float source[3], struct ProjCameraInfo *uci);
28
33void BKE_uvproject_from_view(float target[2],
34 float source[3],
35 float persmat[4][4],
36 float rotmat[4][4],
37 float winx,
38 float winy);
39
43void BKE_uvproject_from_view_ortho(float target[2], float source[3], const float rotmat[4][4]);
44
48void BKE_uvproject_camera_info_scale(ProjCameraInfo *uci, float scale_x, float scale_y);
49
50/*
51 * Free info. */
void BKE_uvproject_from_view(float target[2], float source[3], float persmat[4][4], float rotmat[4][4], float winx, float winy)
Definition uvproject.cc:84
void BKE_uvproject_from_view_ortho(float target[2], float source[3], const float rotmat[4][4])
Definition uvproject.cc:182
void BKE_uvproject_from_camera(float target[2], float source[3], struct ProjCameraInfo *uci)
Definition uvproject.cc:32
void BKE_uvproject_camera_info_scale(ProjCameraInfo *uci, float scale_x, float scale_y)
Definition uvproject.cc:193
void BKE_uvproject_camera_info_free(ProjCameraInfo *uci)
Definition uvproject.cc:177
struct ProjCameraInfo * BKE_uvproject_camera_info(const struct Object *ob, const float rotmat[4][4], float winx, float winy)
float rotmat[4][4]
Definition uvproject.cc:27