summaryrefslogtreecommitdiff
path: root/win/System.cpp
diff options
context:
space:
mode:
authorleo2000-08-22 14:14:07 +0000
committerleo2000-08-22 14:14:07 +0000
commita6a43f1b95bd33990a21fd1a52bff8c4a129d4e9 (patch)
tree844bcfb4fcc7812d53828cffd4acff76747f5341 /win/System.cpp
parent4cb437c64ef4438f381fe95015c8155b789ff4b7 (diff)
Several changes, see docs/CHANGES.txt for a complete list
git-svn-id: http://svn.leocad.org/trunk@103 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win/System.cpp')
-rw-r--r--win/System.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/win/System.cpp b/win/System.cpp
index 3e9ad46..8cc5c46 100644
--- a/win/System.cpp
+++ b/win/System.cpp
@@ -46,22 +46,6 @@ static void ShowLastError()
LocalFree( lpMsgBuf );
}
-/*
-typedef void (APIENTRY * GLLOCKARRAYSEXTPROC) (GLint first, GLsizei count);
-typedef void (APIENTRY * GLUNLOCKARRAYSEXTPROC) ();
-
-// Compiled vertex array function pointers.
-static GLLOCKARRAYSEXTPROC glLockArraysEXT;
-static GLUNLOCKARRAYSEXTPROC glUnlockArraysEXT;
-
-char* extensions = (char*)glGetString(GL_EXTENSIONS);
-if (strstr(extensions, "GL_EXT_compiled_vertex_array") != NULL)
-{
- glLockArraysEXT = (GLLOCKARRAYSEXTPROC)wglGetProcAddress("glLockArraysEXT");
- glUnlockArraysEXT = (GLUNLOCKARRAYSEXTPROC)wglGetProcAddress("glUnlockArraysEXT");
-}
-*/
-
static CMenu* GetMainMenu(int nIndex)
{
CWnd* pFrame = AfxGetMainWnd();
@@ -1608,3 +1592,8 @@ File* SystemImportClipboard()
return clip;
}
+
+bool Sys_KeyDown (int key)
+{
+ return GetKeyState (KEY_CONTROL) < 0;
+}