Changeset 3698 in vbox
- Timestamp:
- Jul 18, 2007 5:15:05 PM (17 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/HostOGLComplexAsync.cpp
r3338 r3698 4 4 * 5 5 * Complex buffered OpenGL functions 6 * 6 */ 7 8 /* 7 9 * Copyright (C) 2006-2007 innotek GmbH 8 10 * -
trunk/src/VBox/HostServices/SharedOpenGL/HostOGLComplexSync.cpp
r3338 r3698 4 4 * 5 5 * Simple buffered OpenGL functions 6 * 6 */ 7 8 /* 7 9 * Copyright (C) 2006-2007 innotek GmbH 8 10 * … … 44 46 45 47 /* Note: when in GL_FEEDBACK or GL_SELECT mode -> fill those buffers 46 * when switching to GL_FEEDBACK or GL_SELECT mode -> pass pointers 48 * when switching to GL_FEEDBACK or GL_SELECT mode -> pass pointers 47 49 */ 48 50 void vboxglRenderMode (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer) -
trunk/src/VBox/HostServices/SharedOpenGL/HostOGLSimpleAsync.cpp
r3338 r3698 4 4 * 5 5 * Simple buffered OpenGL functions 6 * 6 */ 7 8 /* 7 9 * Copyright (C) 2006-2007 innotek GmbH 8 10 * -
trunk/src/VBox/HostServices/SharedOpenGL/HostOGLSimpleSync.cpp
r3338 r3698 4 4 * 5 5 * Simple buffered OpenGL functions 6 * 6 */ 7 8 /* 7 9 * Copyright (C) 2006-2007 innotek GmbH 8 10 * -
trunk/src/VBox/HostServices/SharedOpenGL/gldrv.h
r3471 r3698 1 1 /** @file 2 *3 2 * VBox OpenGL windows helper functions 4 3 */ … … 20 19 */ 21 20 22 #ifndef __ VBOXGLWIN__H23 #define __ VBOXGLWIN__H21 #ifndef ___VBOXGLWIN_H 22 #define ___VBOXGLWIN_H 24 23 25 24 #include <iprt/types.h> 26 25 27 #ifdef __WIN__26 #ifdef RT_OS_WINDOWS 28 27 #define VBOX_OGL_DEBUG_WINDOW_OUTPUT 29 28 #endif … … 52 51 53 52 54 #ifndef __WIN__53 #ifndef RT_OS_WINDOWS 55 54 56 55 typedef uint32_t DWORD; … … 153 152 RTUINTPTR vboxDrvIsExtensionAvailable(char *pszExtFunctionName); 154 153 155 #endif /* __VBOXGLWIN__H */154 #endif /* !___VBOXGLWIN_H */ -
trunk/src/VBox/HostServices/SharedOpenGL/glext.cpp
r3604 r3698 3 3 * VBox OpenGL helper functions 4 4 * 5 * OpenGL extensions 5 * OpenGL extensions 6 6 * 7 7 * References: http://oss.sgi.com/projects/ogl-sample/registry/ 8 8 * http://icps.u-strasbg.fr/~marchesin/perso/extensions/ 9 */ 10 11 /* 9 12 * 10 13 * Copyright (C) 2006-2007 innotek GmbH … … 78 81 } 79 82 80 #ifdef __WIN__83 #ifdef RT_OS_WINDOWS 81 84 void vboxwglSwapIntervalEXT (VBOXOGLCTX *pClient, uint8_t *pCmdBuffer) 82 85 { … … 105 108 pClient->ulLastError = GetLastError(); 106 109 } 107 #endif /* __WIN__*/110 #endif /* RT_OS_WINDOWS */ -
trunk/src/VBox/HostServices/SharedOpenGL/gllindrv.cpp
r3471 r3698 4 4 * 5 5 * Simple buffered OpenGL functions 6 * 6 */ 7 8 /* 7 9 * Copyright (C) 2006-2007 innotek GmbH 8 10 * -
trunk/src/VBox/HostServices/SharedOpenGL/glwindrv.cpp
r3479 r3698 1 1 /** @file 2 *3 2 * VBox OpenGL 4 3 */ … … 36 35 { 37 36 switch (message) 38 { 37 { 39 38 case WM_CREATE: 40 39 return 0; … … 48 47 49 48 default: 50 return DefWindowProc( hWnd, message, wParam, lParam ); 49 return DefWindowProc( hWnd, message, wParam, lParam ); 51 50 } 52 51 } … … 57 56 HWND hwnd; 58 57 59 hwnd = pClient->hwnd= CreateWindow("VBoxOGL", "VirtualBox OpenGL", 58 hwnd = pClient->hwnd= CreateWindow("VBoxOGL", "VirtualBox OpenGL", 60 59 WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE, 61 60 0, 0, 0, 0, 62 NULL, NULL, 0, NULL); 61 NULL, NULL, 0, NULL); 63 62 Assert(hwnd); 64 63 while(true) … … 68 67 if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) 69 68 { 70 if (msg.message == WM_QUIT) 69 if (msg.message == WM_QUIT) 71 70 break; 72 71 -
trunk/src/VBox/HostServices/SharedOpenGL/vboxgl.cpp
r3467 r3698 1 1 /** @file 2 *3 2 * VBox OpenGL 4 3 */ … … 49 48 int rc = VINF_SUCCESS; 50 49 51 #ifdef __WIN__50 #ifdef RT_OS_WINDOWS 52 51 PIXELFORMATDESCRIPTOR pfd; 53 52 int iFormat; … … 88 87 end: 89 88 90 #ifdef __WIN__89 #ifdef RT_OS_WINDOWS 91 90 wglMakeCurrent(NULL, NULL); 92 91 wglDeleteContext(hRC); -
trunk/src/VBox/HostServices/SharedOpenGL/vboxgl.h
r3468 r3698 1 1 /** @file 2 *3 2 * VBox OpenGL helper functions 4 3 */ … … 20 19 */ 21 20 22 #ifndef __ VBOGL__H23 #define __ VBOGL__H24 25 #ifdef __WIN__21 #ifndef ___VBOGL_H 22 #define ___VBOGL_H 23 24 #ifdef RT_OS_WINDOWS 26 25 #include <windows.h> 27 26 #endif … … 60 59 * 61 60 * @returns VBox error code 62 * @param pClient 61 * @param pClient 63 62 * @param name glGetString name parameter 64 63 * @param pString String pointer … … 360 359 #include <VBox/HostServices/VBoxOGLOp.h> 361 360 362 #endif /* __VBOGL__H */361 #endif /* !___VBOGL_H */
Note:
See TracChangeset
for help on using the changeset viewer.