Blender  V2.93
GPU_batch_presets.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) 2016 Blender Foundation.
17  * All rights reserved.
18  */
19 
27 #pragma once
28 
29 #include "BLI_compiler_attrs.h"
30 #include "BLI_sys_types.h"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /* gpu_batch_presets.c */
37 
38 /* Replacement for gluSphere */
41 struct GPUBatch *GPU_batch_preset_panel_drag_widget(const float pixelsize,
42  const float col_high[4],
43  const float col_dark[4],
44  const float width) ATTR_WARN_UNUSED_RESULT;
45 
46 struct GPUBatch *GPU_batch_preset_quad(void);
47 
48 void gpu_batch_presets_init(void);
49 void gpu_batch_presets_register(struct GPUBatch *preset_batch);
50 bool gpu_batch_presets_unregister(struct GPUBatch *preset_batch);
51 void gpu_batch_presets_exit(void);
52 
53 #ifdef __cplusplus
54 }
55 #endif
void BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() int BLI_kdtree_nd_() ATTR_WARN_UNUSED_RESULT
GPUBatch
Definition: GPU_batch.h:93
struct GPUBatch * GPU_batch_preset_quad(void)
void gpu_batch_presets_exit(void)
void gpu_batch_presets_register(struct GPUBatch *preset_batch)
struct GPUBatch * GPU_batch_preset_sphere(int lod) ATTR_WARN_UNUSED_RESULT
bool gpu_batch_presets_unregister(struct GPUBatch *preset_batch)
struct GPUBatch * GPU_batch_preset_sphere_wire(int lod) ATTR_WARN_UNUSED_RESULT
void gpu_batch_presets_init(void)
struct GPUBatch * GPU_batch_preset_panel_drag_widget(const float pixelsize, const float col_high[4], const float col_dark[4], const float width) ATTR_WARN_UNUSED_RESULT
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint GLsizei width