Changeset 76245 in vbox
- Timestamp:
- Dec 15, 2018 6:18:19 PM (6 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
-
DevVGA-SVGA3d-glLdr.cpp (modified) (2 diffs)
-
DevVGA-SVGA3d-glLdr.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-glLdr.cpp
r76241 r76245 118 118 #define GLGETPROC_(ProcName, NameSuffix) do { \ 119 119 *(void **)&pfn_##ProcName = OGLGETPROCADDRESS(#ProcName NameSuffix); \ 120 AssertLogRelMsgReturn(pfn_##ProcName, ( #ProcName NameSuffix " missing\n"), VERR_NOT_IMPLEMENTED); \120 AssertLogRelMsgReturn(pfn_##ProcName, ("%s missing\n", #ProcName NameSuffix), VERR_NOT_IMPLEMENTED); \ 121 121 } while(0) 122 122 123 123 int glLdrInit(void) 124 124 { 125 pfn_glAlphaFunc = 0; 126 pfn_glBindTexture = 0; 127 pfn_glBlendColor = 0; 128 pfn_glBlendEquation = 0; 129 pfn_glBlendFunc = 0; 130 pfn_glClear = 0; 131 pfn_glClearColor = 0; 132 pfn_glClearDepth = 0; 133 pfn_glClearStencil = 0; 134 pfn_glClientActiveTexture = 0; 135 pfn_glClipPlane = 0; 136 pfn_glColorMask = 0; 137 pfn_glColorPointer = 0; 138 pfn_glCullFace = 0; 139 pfn_glDeleteTextures = 0; 140 pfn_glDepthFunc = 0; 141 pfn_glDepthMask = 0; 142 pfn_glDepthRange = 0; 143 pfn_glDisable = 0; 144 pfn_glDisableClientState = 0; 145 pfn_glDrawArrays = 0; 146 pfn_glDrawElements = 0; 147 pfn_glEnable = 0; 148 pfn_glEnableClientState = 0; 149 pfn_glFogf = 0; 150 pfn_glFogfv = 0; 151 pfn_glFogi = 0; 152 pfn_glFrontFace = 0; 153 pfn_glGenTextures = 0; 154 pfn_glGetBooleanv = 0; 155 pfn_glGetError = 0; 156 pfn_glGetFloatv = 0; 157 pfn_glGetIntegerv = 0; 158 pfn_glGetString = 0; 159 pfn_glGetTexImage = 0; 160 pfn_glLightModelfv = 0; 161 pfn_glLightf = 0; 162 pfn_glLightfv = 0; 163 pfn_glLineWidth = 0; 164 pfn_glLoadIdentity = 0; 165 pfn_glLoadMatrixf = 0; 166 pfn_glMaterialfv = 0; 167 pfn_glMatrixMode = 0; 168 pfn_glMultMatrixf = 0; 169 pfn_glNormalPointer = 0; 170 pfn_glPixelStorei = 0; 171 pfn_glPointSize = 0; 172 pfn_glPolygonMode = 0; 173 pfn_glPolygonOffset = 0; 174 pfn_glPopAttrib = 0; 175 pfn_glPopMatrix = 0; 176 pfn_glPushAttrib = 0; 177 pfn_glPushMatrix = 0; 178 pfn_glScissor = 0; 179 pfn_glShadeModel = 0; 180 pfn_glStencilFunc = 0; 181 pfn_glStencilMask = 0; 182 pfn_glStencilOp = 0; 183 pfn_glTexCoordPointer = 0; 184 pfn_glTexImage2D = 0; 185 pfn_glTexParameterf = 0; 186 pfn_glTexParameterfv = 0; 187 pfn_glTexParameteri = 0; 188 pfn_glTexSubImage2D = 0; 189 pfn_glVertexPointer = 0; 190 pfn_glViewport = 0; 191 125 192 GLGETPROC_(glAlphaFunc, ""); 126 193 GLGETPROC_(glBindTexture, ""); … … 199 266 return OGLGETPROCADDRESS(pszSymbol); 200 267 } 268 269 int glLdrGetExtFunctions(void) 270 { 271 GLGETPROC_(glBlendColor, ""); 272 GLGETPROC_(glBlendEquation, ""); 273 GLGETPROC_(glClientActiveTexture, ""); 274 return VINF_SUCCESS; 275 } -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-glLdr.h
r76241 r76245 22 22 # error "This include file is for VMSVGA3D_OPENGL." 23 23 #endif 24 25 /** @todo VBOX_VMSVGA3D_GL_HACK_LEVEL is not necessary when dynamic loading is used. */ 24 26 25 27 #ifdef RT_OS_WINDOWS … … 62 64 #ifdef RT_OS_WINDOWS 63 65 # define GLAPIENTRY APIENTRY 64 65 66 #else 66 ... 67 # define GLAPIENTRY 67 68 #endif 68 69 … … 77 78 /* Load OpenGL library and initialize function pointers. */ 78 79 int glLdrInit(void); 80 /* Resolve an OpenGL function name. */ 79 81 void *glLdrGetProcAddress(const char *pszSymbol); 82 /* Get pointers to extension function. They are available on Windows only when OpenGL context is set. */ 83 int glLdrGetExtFunctions(void); 80 84 81 85 /* … … 83 87 */ 84 88 89 /* 90 * GL 1.1 functions (exported from OpenGL32 on Windows). 91 */ 85 92 GLPFN void (GLAPIENTRYP pfn_glAlphaFunc)(GLenum func, GLclampf ref); 86 93 #define glAlphaFunc pfn_glAlphaFunc … … 272 279 #define glViewport pfn_glViewport 273 280 281 /* 282 * Extension functions (not exported from OpenGL32 on Windows). 283 */ 284 GLPFN void (GLAPIENTRYP pfn_glBlendColor)(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); 285 #define glBlendColor pfn_glBlendColor 286 287 GLPFN void (GLAPIENTRYP pfn_glBlendEquation)(GLenum mode); 288 #define glBlendEquation pfn_glBlendEquation 289 290 GLPFN void (GLAPIENTRYP pfn_glClientActiveTexture)(GLenum texture); 291 #define glClientActiveTexture pfn_glClientActiveTexture 292 274 293 #ifdef RT_OS_WINDOWS 294 /* 295 * WGL. 296 */ 275 297 GLPFN HGLRC (WINAPI *pfn_wglCreateContext)(HDC); 276 298 #define wglCreateContext pfn_wglCreateContext
Note:
See TracChangeset
for help on using the changeset viewer.

