Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2016-10-01 02:51:04 +0300
committerMike Erwin <significant.bit@gmail.com>2016-10-01 02:51:04 +0300
commitd1b21d1278b3f91643fb52ed67320c064e28a0d4 (patch)
tree2c9827a1391756aa30f2ef2462cb398fa709e88d /source/blender/gpu/GPU_draw.h
parent82648a8f919cf42355c3be3d1feabab0c5889508 (diff)
OpenGL: add support for programmable point size
And enable point sprites always. Fragment shaders can use gl_PointCoord now.
Diffstat (limited to 'source/blender/gpu/GPU_draw.h')
-rw-r--r--source/blender/gpu/GPU_draw.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/gpu/GPU_draw.h b/source/blender/gpu/GPU_draw.h
index 90b65af87c8..91d436557f0 100644
--- a/source/blender/gpu/GPU_draw.h
+++ b/source/blender/gpu/GPU_draw.h
@@ -59,6 +59,13 @@ struct DupliObject;
void GPU_state_init(void);
+/* Programmable point size
+ * - shaders set their own point size when enabled
+ * - use glPointSize when disabled */
+
+void GPU_enable_program_point_size(void);
+void GPU_disable_program_point_size(void);
+
/* Material drawing
* - first the state is initialized by a particular object and
* it's materials