summaryrefslogtreecommitdiff
path: root/common/opengl.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/opengl.h')
-rwxr-xr-xcommon/opengl.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/common/opengl.h b/common/opengl.h
index 6445b5c..4e5fa3a 100755
--- a/common/opengl.h
+++ b/common/opengl.h
@@ -1271,4 +1271,15 @@ extern PFNGLUNLOCKARRAYSEXT pfnglUnlockArraysEXT;
#define glLockArraysEXT pfnglLockArraysEXT
#define glUnlockArraysEXT pfnglUnlockArraysEXT
+inline void glEnableLineStipple()
+{
+ glEnable(GL_LINE_STIPPLE);
+ glLineStipple(5, 0x5555);
+}
+
+inline void glDisableLineStipple()
+{
+ glDisable(GL_LINE_STIPPLE);
+}
+
#endif // _OPENGL_H_