Blender V4.3
GPU_immediate_util.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13/* Draw 2D rectangles (replaces glRect functions) */
14/* caller is responsible for vertex format & shader */
15void immRectf(uint pos, float x1, float y1, float x2, float y2);
16void immRecti(uint pos, int x1, int y1, int x2, int y2);
17
22void immRectf_fast(uint pos, float x1, float y1, float x2, float y2);
24 uint pos, uint col, float x1, float y1, float x2, float y2, const float color[4]);
26 uint pos, uint col, int x1, int y1, int x2, int y2, const float color[4]);
27
39void imm_cpack(uint x);
40
51void imm_draw_circle_wire_2d(uint shdr_pos, float x, float y, float radius, int nsegments);
62void imm_draw_circle_fill_2d(uint shdr_pos, float x, float y, float radius, int nsegments);
63
65 uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments);
67 uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments);
68
72void imm_draw_circle_wire_3d(uint pos, float x, float y, float radius, int nsegments);
74 uint pos, float x, float y, float radius_x, float radius_y, int nsegments);
75void imm_draw_circle_dashed_3d(uint pos, float x, float y, float radius, int nsegments);
76void imm_draw_circle_fill_3d(uint pos, float x, float y, float radius, int nsegments);
78 uint pos, float x, float y, float radius_x, float radius_y, int nsegments);
79
84 uint pos, float x, float y, float radius, int nsegments, float start, float sweep);
86 uint pos, float x, float y, float z, float radius, int nsegments, float start, float sweep);
87
104 float x,
105 float y,
106 float rad_inner,
107 float rad_outer,
108 int nsegments,
109 float start,
110 float sweep);
112 float x,
113 float y,
114 float z,
115 float rad_inner,
116 float rad_outer,
117 int nsegments,
118 float start,
119 float sweep);
120
130void imm_draw_box_wire_2d(uint pos, float x1, float y1, float x2, float y2);
131void imm_draw_box_wire_3d(uint pos, float x1, float y1, float x2, float y2);
132
136void imm_draw_box_checker_2d_ex(float x1,
137 float y1,
138 float x2,
139 float y2,
140 const float color_primary[4],
141 const float color_secondary[4],
142 int checker_size);
143void imm_draw_box_checker_2d(float x1, float y1, float x2, float y2);
144
145void imm_draw_cube_fill_3d(uint pos, const float center[3], const float aspect[3]);
146void imm_draw_cube_wire_3d(uint pos, const float center[3], const float aspect[3]);
148 const float center[3],
149 const float aspect[3],
150 float factor);
151
165 uint pos, uint nor, float base, float top, float height, int slices, int stacks);
167 uint pos, float base, float top, float height, int slices, int stacks);
169 uint pos, float base, float top, float height, int slices, int stacks);
170
171void imm_drawcircball(const float cent[3], float radius, const float tmat[4][4], uint pos);
unsigned int uint
void imm_draw_box_wire_2d(uint pos, float x1, float y1, float x2, float y2)
void imm_draw_box_checker_2d(float x1, float y1, float x2, float y2)
void imm_draw_cylinder_wire_3d(uint pos, float base, float top, float height, int slices, int stacks)
void imm_draw_disk_partial_fill_3d(uint pos, float x, float y, float z, float rad_inner, float rad_outer, int nsegments, float start, float sweep)
void imm_draw_circle_fill_2d(uint shdr_pos, float x, float y, float radius, int nsegments)
void imm_draw_cylinder_fill_3d(uint pos, float base, float top, float height, int slices, int stacks)
void imm_draw_circle_partial_wire_2d(uint pos, float x, float y, float radius, int nsegments, float start, float sweep)
void imm_draw_cylinder_fill_normal_3d(uint pos, uint nor, float base, float top, float height, int slices, int stacks)
void imm_draw_box_checker_2d_ex(float x1, float y1, float x2, float y2, const float color_primary[4], const float color_secondary[4], int checker_size)
void imm_draw_circle_wire_aspect_3d(uint pos, float x, float y, float radius_x, float radius_y, int nsegments)
void imm_draw_circle_fill_aspect_2d(uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments)
void imm_draw_circle_partial_wire_3d(uint pos, float x, float y, float z, float radius, int nsegments, float start, float sweep)
void imm_draw_circle_wire_3d(uint pos, float x, float y, float radius, int nsegments)
void imm_draw_circle_dashed_3d(uint pos, float x, float y, float radius, int nsegments)
void imm_drawcircball(const float cent[3], float radius, const float tmat[4][4], uint pos)
void imm_draw_circle_fill_3d(uint pos, float x, float y, float radius, int nsegments)
void immRectf_fast(uint pos, float x1, float y1, float x2, float y2)
void immRecti(uint pos, int x1, int y1, int x2, int y2)
void imm_draw_circle_wire_aspect_2d(uint shdr_pos, float x, float y, float radius_x, float radius_y, int nsegments)
void immRectf_fast_with_color(uint pos, uint col, float x1, float y1, float x2, float y2, const float color[4])
void imm_draw_box_wire_3d(uint pos, float x1, float y1, float x2, float y2)
void immRectf(uint pos, float x1, float y1, float x2, float y2)
void imm_draw_cube_corners_3d(uint pos, const float center[3], const float aspect[3], float factor)
void imm_draw_cube_wire_3d(uint pos, const float center[3], const float aspect[3])
void imm_draw_cube_fill_3d(uint pos, const float center[3], const float aspect[3])
void imm_cpack(uint x)
void imm_draw_circle_fill_aspect_3d(uint pos, float x, float y, float radius_x, float radius_y, int nsegments)
void imm_draw_disk_partial_fill_2d(uint pos, float x, float y, float rad_inner, float rad_outer, int nsegments, float start, float sweep)
void immRecti_fast_with_color(uint pos, uint col, int x1, int y1, int x2, int y2, const float color[4])
void imm_draw_circle_wire_2d(uint shdr_pos, float x, float y, float radius, int nsegments)
Group Output data from inside of a node group A color picker Mix two input colors RGB to Convert a color s luminance to a grayscale value Generate a normal vector and a dot product Brightness Control the brightness and contrast of the input color Vector Map input vector components with curves Camera Retrieve information about the camera and how it relates to the current shading point s position Clamp a value between a minimum and a maximum Vector Perform vector math operation Invert Invert a color
SIMD_FORCE_INLINE const btScalar & z() const
Return the z value.
Definition btQuadWord.h:117
uint col
uint top
Frequency::GEOMETRY nor[]