Blender  V2.93
GPU_drawlist.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2020 Blender Foundation.
17  * All rights reserved.
18  */
19 
27 #pragma once
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 struct GPUBatch;
34 
36 typedef struct GPUDrawList GPUDrawList;
37 
38 /* Create a list with at least length drawcalls. Length can affect performance. */
41 
42 void GPU_draw_list_append(GPUDrawList *list, GPUBatch *batch, int i_first, int i_count);
44 
45 #ifdef __cplusplus
46 }
47 #endif
GPUBatch
Definition: GPU_batch.h:93
struct GPUDrawList GPUDrawList
Definition: GPU_drawlist.h:36
void GPU_draw_list_append(GPUDrawList *list, GPUBatch *batch, int i_first, int i_count)
Definition: gpu_drawlist.cc:49
GPUDrawList * GPU_draw_list_create(int length)
Definition: gpu_drawlist.cc:37
void GPU_draw_list_submit(GPUDrawList *list)
Definition: gpu_drawlist.cc:55
void GPU_draw_list_discard(GPUDrawList *list)
Definition: gpu_drawlist.cc:43
SIMD_FORCE_INLINE btScalar length(const btQuaternion &q)
Return the length of a quaternion.
Definition: btQuaternion.h:895
GPUBatch * batch
Definition: drawnode.c:3779