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:
authorCampbell Barton <ideasman42@gmail.com>2016-06-08 22:12:42 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-06-08 22:17:43 +0300
commitb41cfb590c798de39d569b462820c8eed70faff2 (patch)
tree6fa4f0d975d6fb38d9abbe8f134340d2a4cff7c1 /source/blender/editors/screen
parentb32fd196a0276cc83c4f0c99a419b12347291883 (diff)
glutil: add glaGetOneInt helper
Diffstat (limited to 'source/blender/editors/screen')
-rw-r--r--source/blender/editors/screen/glutil.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c
index 014268262c4..93bac3f6660 100644
--- a/source/blender/editors/screen/glutil.c
+++ b/source/blender/editors/screen/glutil.c
@@ -327,6 +327,13 @@ float glaGetOneFloat(int param)
return v;
}
+int glaGetOneInt(int param)
+{
+ GLint v;
+ glGetIntegerv(param, &v);
+ return v;
+}
+
void glaRasterPosSafe2f(float x, float y, float known_good_x, float known_good_y)
{
GLubyte dummy = 0;