Blender  V3.3
GPU_batch_presets.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2016 Blender Foundation. All rights reserved. */
3 
11 #pragma once
12 
13 #include "BLI_compiler_attrs.h"
14 #include "BLI_sys_types.h"
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 
20 /* gpu_batch_presets.c */
21 
22 /* Replacement for #gluSphere */
23 
26 struct GPUBatch *GPU_batch_preset_panel_drag_widget(float pixelsize,
27  const float col_high[4],
28  const float col_dark[4],
30 
34 struct GPUBatch *GPU_batch_preset_quad(void);
35 
36 void gpu_batch_presets_init(void);
37 void gpu_batch_presets_register(struct GPUBatch *preset_batch);
38 bool gpu_batch_presets_unregister(struct GPUBatch *preset_batch);
39 void gpu_batch_presets_exit(void);
40 
41 #ifdef __cplusplus
42 }
43 #endif
#define ATTR_WARN_UNUSED_RESULT
GPUBatch
Definition: GPU_batch.h:78
struct GPUBatch * GPU_batch_preset_quad(void)
struct GPUBatch * GPU_batch_preset_panel_drag_widget(float pixelsize, const float col_high[4], const float col_dark[4], float width) ATTR_WARN_UNUSED_RESULT
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)
_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