Changeset 20467 in vbox
- Timestamp:
- Jun 10, 2009 4:09:27 PM (15 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_getshaders.c
r20438 r20467 96 96 } 97 97 98 void PACKSPU_APIENTRY packspu_GetAttachedObjectsARB(GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj) 99 { 100 GET_THREAD(thread); 101 int writeback = 1; 102 GLsizei *pLocal; 103 104 if (!obj) return; 105 106 pLocal = (GLsizei*) crAlloc(maxCount*sizeof(GLhandleARB)+sizeof(GLsizei)); 107 if (!pLocal) return; 108 109 crPackGetAttachedObjectsARB(containerObj, maxCount, pLocal, NULL, &writeback); 110 111 packspuFlush((void *) thread); 112 while (writeback) 113 crNetRecv(); 114 115 if (count) *count=*pLocal; 116 crMemcpy(obj, &pLocal[1], *pLocal*sizeof(GLhandleARB)); 117 crFree(pLocal); 118 } 119 120 void PACKSPU_APIENTRY packspu_GetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog) 121 { 122 GET_THREAD(thread); 123 int writeback = 1; 124 GLsizei *pLocal; 125 126 if (!infoLog) return; 127 128 pLocal = (GLsizei*) crAlloc(maxLength+sizeof(GLsizei)); 129 if (!pLocal) return; 130 131 crPackGetInfoLogARB(obj, maxLength, pLocal, NULL, &writeback); 132 133 packspuFlush((void *) thread); 134 while (writeback) 135 crNetRecv(); 136 137 if (length) *length=*pLocal; 138 crMemcpy(infoLog, &pLocal[1], (*pLocal)+1); 139 crFree(pLocal); 140 } 141 98 142 void PACKSPU_APIENTRY packspu_GetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * length, char * infoLog) 99 143 { -
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_special
r20437 r20467 70 70 GetProgramInfoLog 71 71 GetShaderSource 72 GetAttachedObjectsARB 73 GetInfoLogARB -
trunk/src/VBox/GuestHost/OpenGL/glapi_parser/APIspec.txt
r20419 r20467 9096 9096 category 2.0 9097 9097 props get 9098 chromium extpack9098 chromium nopack 9099 9099 9100 9100 name GetVertexAttribfv … … 9110 9110 category 2.0 9111 9111 props get 9112 chromium extpack9112 chromium nopack 9113 9113 9114 9114 name GetVertexAttribiv … … 9124 9124 category 2.0 9125 9125 props get 9126 chromium extpack9126 chromium nopack 9127 9127 9128 9128 name GetVertexAttribPointerv … … 9136 9136 category 2.0 9137 9137 props useclient get 9138 chromium extpack9138 chromium nopack 9139 9139 9140 9140 name GetUniformfv … … 9204 9204 chromium extpack 9205 9205 9206 name VertexAttrib1s 9207 alias VertexAttrib1sARB 9208 return void 9209 param index GLuint 9210 param x GLshort 9211 category 2.0 9212 props pervertex 9213 chromium nopack 9214 9215 name VertexAttrib1f 9216 alias VertexAttrib1fARB 9217 return void 9218 param index GLuint 9219 param x GLfloat 9220 category 2.0 9221 props pervertex 9222 chromium nopack 9223 9224 name VertexAttrib1d 9225 alias VertexAttrib1dARB 9226 return void 9227 param index GLuint 9228 param x GLdouble 9229 category 2.0 9230 props pervertex 9231 chromium nopack 9232 9233 name VertexAttrib2s 9234 alias VertexAttrib2sARB 9235 return void 9236 param index GLuint 9237 param x GLshort 9238 param y GLshort 9239 category 2.0 9240 props pervertex 9241 chromium nopack 9242 9243 name VertexAttrib2f 9244 alias VertexAttrib2fARB 9245 return void 9246 param index GLuint 9247 param x GLfloat 9248 param y GLfloat 9249 category 2.0 9250 props pervertex 9251 chromium nopack 9252 9253 name VertexAttrib2d 9254 alias VertexAttrib2dARB 9255 return void 9256 param index GLuint 9257 param x GLdouble 9258 param y GLdouble 9259 category 2.0 9260 props pervertex 9261 chromium nopack 9262 9263 name VertexAttrib3s 9264 alias VertexAttrib3sARB 9265 return void 9266 param index GLuint 9267 param x GLshort 9268 param y GLshort 9269 param z GLshort 9270 category 2.0 9271 props pervertex 9272 chromium nopack 9273 9274 name VertexAttrib3f 9275 alias VertexAttrib3fARB 9276 return void 9277 param index GLuint 9278 param x GLfloat 9279 param y GLfloat 9280 param z GLfloat 9281 category 2.0 9282 props pervertex 9283 chromium nopack 9284 9285 name VertexAttrib3d 9286 alias VertexAttrib3dARB 9287 return void 9288 param index GLuint 9289 param x GLdouble 9290 param y GLdouble 9291 param z GLdouble 9292 category 2.0 9293 props pervertex 9294 chromium nopack 9295 9296 name VertexAttrib4s 9297 alias VertexAttrib4sARB 9298 return void 9299 param index GLuint 9300 param x GLshort 9301 param y GLshort 9302 param z GLshort 9303 param w GLshort 9304 category 2.0 9305 props pervertex 9306 chromium nopack 9307 9308 name VertexAttrib4f 9309 alias VertexAttrib4fARB 9310 return void 9311 param index GLuint 9312 param x GLfloat 9313 param y GLfloat 9314 param z GLfloat 9315 param w GLfloat 9316 category 2.0 9317 props pervertex 9318 chromium nopack 9319 9320 name VertexAttrib4d 9321 alias VertexAttrib4dARB 9322 return void 9323 param index GLuint 9324 param x GLdouble 9325 param y GLdouble 9326 param z GLdouble 9327 param w GLdouble 9328 category 2.0 9329 props pervertex 9330 chromium nopack 9331 9332 name VertexAttrib4Nub 9333 alias VertexAttrib4NubARB 9334 return void 9335 param index GLuint 9336 param x GLubyte 9337 param y GLubyte 9338 param z GLubyte 9339 param w GLubyte 9340 category 2.0 9341 props pervertex 9342 chromium nopack 9343 9344 name VertexAttrib1sv 9345 alias VertexAttrib1svARB 9346 return void 9347 param index GLuint 9348 paramlist index 0 1 2 3 4 5 6 7 9349 param v const GLshort * 9350 paramvec v 1 9351 vector v 1 9352 category 2.0 9353 props pervertex 9354 chromium nopack 9355 9356 name VertexAttrib1fv 9357 alias VertexAttrib1fvARB 9358 return void 9359 param index GLuint 9360 paramlist index 0 1 2 3 4 5 6 7 9361 param v const GLfloat * 9362 paramvec v 1.0 9363 vector v 1 9364 category 2.0 9365 props pervertex 9366 chromium nopack 9367 9368 name VertexAttrib1dv 9369 alias VertexAttrib1dvARB 9370 return void 9371 param index GLuint 9372 paramlist index 0 1 2 3 4 5 6 7 9373 param v const GLdouble * 9374 paramvec v 1.0 9375 vector v 1 9376 category 2.0 9377 props pervertex 9378 chromium nopack 9379 9380 name VertexAttrib2sv 9381 alias VertexAttrib2svARB 9382 return void 9383 param index GLuint 9384 paramlist index 0 1 2 3 4 5 6 7 9385 param v const GLshort * 9386 paramvec v 1 1 9387 vector v 2 9388 category 2.0 9389 props pervertex 9390 chromium nopack 9391 9392 name VertexAttrib2fv 9393 alias VertexAttrib2fvARB 9394 return void 9395 param index GLuint 9396 paramlist index 0 1 2 3 4 5 6 7 9397 param v const GLfloat * 9398 paramvec v 1.0 1.0 9399 vector v 2 9400 category 2.0 9401 props pervertex 9402 chromium nopack 9403 9404 name VertexAttrib2dv 9405 alias VertexAttrib2dvARB 9406 return void 9407 param index GLuint 9408 paramlist index 0 1 2 3 4 5 6 7 9409 param v const GLdouble * 9410 paramvec v 1.0 1.0 9411 vector v 2 9412 category 2.0 9413 props pervertex 9414 chromium nopack 9415 9416 name VertexAttrib3sv 9417 alias VertexAttrib3svARB 9418 return void 9419 param index GLuint 9420 paramlist index 0 1 2 3 4 5 6 7 9421 param v const GLshort * 9422 paramvec v 1 1 9423 vector v 3 9424 category 2.0 9425 props pervertex 9426 chromium nopack 9427 9428 name VertexAttrib3fv 9429 alias VertexAttrib3fvARB 9430 return void 9431 param index GLuint 9432 paramlist index 0 1 2 3 4 5 6 7 9433 param v const GLfloat * 9434 paramvec v 1.0 1.0 1.0 9435 vector v 3 9436 category 2.0 9437 props pervertex 9438 chromium nopack 9439 9440 name VertexAttrib3dv 9441 alias VertexAttrib3dvARB 9442 return void 9443 param index GLuint 9444 paramlist index 0 1 2 3 4 5 6 7 9445 param v const GLdouble * 9446 paramvec v 1.0 1.0 1.0 9447 vector v 3 9448 category 2.0 9449 props pervertex 9450 chromium nopack 9451 9452 name VertexAttrib4bv 9453 alias VertexAttrib4bvARB 9454 return void 9455 param index GLuint 9456 paramlist index 0 1 2 3 4 5 6 7 9457 param v const GLbyte * 9458 paramvec v 1 1 1 1 9459 vector v 4 9460 category 2.0 9461 props pervertex 9462 chromium nopack 9463 9464 name VertexAttrib4sv 9465 alias VertexAttrib4svARB 9466 return void 9467 param index GLuint 9468 paramlist index 0 1 2 3 4 5 6 7 9469 param v const GLshort * 9470 paramvec v 1 1 1 1 9471 vector v 4 9472 category 2.0 9473 props pervertex 9474 chromium nopack 9475 9476 name VertexAttrib4iv 9477 alias VertexAttrib4ivARB 9478 return void 9479 param index GLuint 9480 paramlist index 0 1 2 3 4 5 6 7 9481 param v const GLint * 9482 paramvec v 1 1 1 1 9483 vector v 4 9484 category 2.0 9485 props pervertex 9486 chromium nopack 9487 9488 name VertexAttrib4ubv 9489 alias VertexAttrib4ubvARB 9490 return void 9491 param index GLuint 9492 paramlist index 0 1 2 3 4 5 6 7 9493 param v const GLubyte * 9494 paramvec v 1 1 1 1 9495 vector v 4 9496 category 2.0 9497 props pervertex 9498 chromium nopack 9499 9500 name VertexAttrib4usv 9501 alias VertexAttrib4usvARB 9502 return void 9503 param index GLuint 9504 paramlist index 0 1 2 3 4 5 6 7 9505 param v const GLushort * 9506 paramvec v 1 1 1 1 9507 vector v 4 9508 category 2.0 9509 props pervertex 9510 chromium nopack 9511 9512 name VertexAttrib4uiv 9513 alias VertexAttrib4uivARB 9514 return void 9515 param index GLuint 9516 paramlist index 0 1 2 3 4 5 6 7 9517 param v const GLuint * 9518 paramvec v 1 1 1 1 9519 vector v 4 9520 category 2.0 9521 props pervertex 9522 chromium nopack 9523 9524 name VertexAttrib4fv 9525 alias VertexAttrib4fvARB 9526 return void 9527 param index GLuint 9528 paramlist index 0 1 2 3 4 5 6 7 9529 param v const GLfloat * 9530 paramvec v 1 1 1 1 9531 vector v 4 9532 category 2.0 9533 props pervertex 9534 chromium nopack 9535 9536 name VertexAttrib4dv 9537 alias VertexAttrib4dvARB 9538 return void 9539 param index GLuint 9540 paramlist index 0 1 2 3 4 5 6 7 9541 param v const GLdouble * 9542 paramvec v 1.0 1.0 1.0 1.0 9543 vector v 4 9544 category 2.0 9545 props pervertex 9546 chromium nopack 9547 9548 name VertexAttrib4Nbv 9549 alias VertexAttrib4NbvARB 9550 return void 9551 param index GLuint 9552 paramlist index 0 1 2 3 4 5 6 7 9553 param v const GLbyte * 9554 paramvec v 1 1 1 1 9555 vector v 4 9556 category 2.0 9557 props pervertex 9558 chromium nopack 9559 9560 name VertexAttrib4Nsv 9561 alias VertexAttrib4NsvARB 9562 return void 9563 param index GLuint 9564 paramlist index 0 1 2 3 4 5 6 7 9565 param v const GLshort * 9566 paramvec v 1 1 1 1 9567 vector v 4 9568 category 2.0 9569 props pervertex 9570 chromium nopack 9571 9572 name VertexAttrib4Niv 9573 alias VertexAttrib4NivARB 9574 return void 9575 param index GLuint 9576 paramlist index 0 1 2 3 4 5 6 7 9577 param v const GLint * 9578 paramvec v 1 1 1 1 9579 vector v 4 9580 category 2.0 9581 props pervertex 9582 chromium nopack 9583 9584 name VertexAttrib4Nubv 9585 alias VertexAttrib4NubvARB 9586 return void 9587 param index GLuint 9588 paramlist index 0 1 2 3 4 5 6 7 9589 param v const GLubyte * 9590 paramvec v 1 1 1 1 9591 vector v 4 9592 category 2.0 9593 props pervertex 9594 chromium nopack 9595 9596 name VertexAttrib4Nusv 9597 alias VertexAttrib4NusvARB 9598 return void 9599 param index GLuint 9600 paramlist index 0 1 2 3 4 5 6 7 9601 param v const GLushort * 9602 paramvec v 1 1 1 1 9603 vector v 4 9604 category 2.0 9605 props pervertex 9606 chromium nopack 9607 9608 name VertexAttrib4Nuiv 9609 alias VertexAttrib4NuivARB 9610 return void 9611 param index GLuint 9612 paramlist index 0 1 2 3 4 5 6 7 9613 param v const GLuint * 9614 paramvec v 1 1 1 1 9615 vector v 4 9616 category 2.0 9617 props pervertex 9618 chromium nopack 9619 9620 name VertexAttribPointer 9621 alias VertexAttribPointerARB 9622 return void 9623 param index GLuint 9624 paramlist index 0 1 2 3 4 5 6 7 9625 param size GLint 9626 paramlist size 1 2 3 4 9627 param type GLenum 9628 paramprop type GL_SHORT GL_FLOAT GL_DOUBLE 9629 param normalized GLboolean 9630 paramlist normalized GL_TRUE GL_FALSE 9631 param stride GLsizei 9632 paramlist stride 0 9633 param pointer const GLvoid * 9634 category 2.0 9635 props setclient 9636 chromium nopack 9637 9638 name EnableVertexAttribArray 9639 alias EnableVertexAttribArrayARB 9640 return void 9641 param index GLuint 9642 category 2.0 9643 props setclient 9644 chromium nopack 9645 9646 name DisableVertexAttribArray 9647 alias DisableVertexAttribArrayARB 9648 return void 9649 param index GLuint 9650 category 2.0 9651 props setclient 9652 chromium nopack 9653 9654 # GL_ARB_shader_objects 9655 9656 name GetHandleARB 9657 return GLhandleARB 9658 param pname GLenum 9659 paramprop pname GL_PROGRAM_OBJECT_ARB 9660 category GL_ARB_shader_objects 9661 props get 9662 chromium extpack serverdependent 9663 9664 name DeleteObjectARB 9665 return void 9666 param obj GLhandleARB 9667 category GL_ARB_shader_objects 9668 props nolist 9669 chromium extpack 9670 9671 name DetachObjectARB 9672 return void 9673 param containerObj GLhandleARB 9674 param attachedObj GLhandleARB 9675 category GL_ARB_shader_objects 9676 chromium extpack 9677 9678 name CreateShaderObjectARB 9679 alias CreateShader 9680 return GLhandleARB 9681 param shaderType GLenum 9682 paramprop shaderType GL_FRAGMENT_SHADER_ARB GL_VERTEX_SHADER_ARB 9683 category GL_ARB_shader_objects 9684 props get 9685 chromium nopack 9686 9687 name ShaderSourceARB 9688 alias ShaderSource 9689 return void 9690 param shaderObj GLhandleARB 9691 param count GLsizei 9692 param string const GLcharARB ** 9693 param length const GLint * 9694 category GL_ARB_shader_objects 9695 chromium nopack 9696 9697 name CompileShaderARB 9698 alias CompileShader 9699 return void 9700 param shaderObj GLhandleARB 9701 category GL_ARB_shader_objects 9702 chromium nopack 9703 9704 name CreateProgramObjectARB 9705 alias CreateProgram 9706 return GLhandleARB 9707 category GL_ARB_shader_objects 9708 props get 9709 chromium nopack 9710 9711 name AttachObjectARB 9712 return void 9713 param containerObj GLhandleARB 9714 param obj GLhandleARB 9715 category GL_ARB_shader_objects 9716 chromium extpack 9717 9718 name LinkProgramARB 9719 alias LinkProgram 9720 return void 9721 param programObj GLhandleARB 9722 category GL_ARB_shader_objects 9723 chromium nopack 9724 9725 name UseProgramObjectARB 9726 alias UseProgram 9727 return void 9728 param programObj GLhandleARB 9729 category GL_ARB_shader_objects 9730 chromium nopack 9731 9732 name ValidateProgramARB 9733 alias ValidateProgram 9734 return void 9735 param programObj GLhandleARB 9736 category GL_ARB_shader_objects 9737 chromium nopack 9738 9739 name Uniform1fARB 9740 alias Uniform1f 9741 return void 9742 param location GLint 9743 param v0 GLfloat 9744 category GL_ARB_shader_objects 9745 chromium nopack 9746 9747 name Uniform2fARB 9748 alias Uniform2f 9749 return void 9750 param location GLint 9751 param v0 GLfloat 9752 param v1 GLfloat 9753 category GL_ARB_shader_objects 9754 chromium nopack 9755 9756 name Uniform3fARB 9757 alias Uniform3f 9758 return void 9759 param location GLint 9760 param v0 GLfloat 9761 param v1 GLfloat 9762 param v2 GLfloat 9763 category GL_ARB_shader_objects 9764 chromium nopack 9765 9766 name Uniform4fARB 9767 alias Uniform4f 9768 return void 9769 param location GLint 9770 param v0 GLfloat 9771 param v1 GLfloat 9772 param v2 GLfloat 9773 param v3 GLfloat 9774 category GL_ARB_shader_objects 9775 chromium nopack 9776 9777 name Uniform1iARB 9778 alias Uniform1i 9779 return void 9780 param location GLint 9781 param v0 GLint 9782 category GL_ARB_shader_objects 9783 chromium nopack 9784 9785 name Uniform2iARB 9786 alias Uniform2i 9787 return void 9788 param location GLint 9789 param v0 GLint 9790 param v1 GLint 9791 category GL_ARB_shader_objects 9792 chromium nopack 9793 9794 name Uniform3iARB 9795 alias Uniform3i 9796 return void 9797 param location GLint 9798 param v0 GLint 9799 param v1 GLint 9800 param v2 GLint 9801 category GL_ARB_shader_objects 9802 chromium nopack 9803 9804 name Uniform4iARB 9805 alias Uniform4i 9806 return void 9807 param location GLint 9808 param v0 GLint 9809 param v1 GLint 9810 param v2 GLint 9811 param v3 GLint 9812 category GL_ARB_shader_objects 9813 chromium nopack 9814 9815 name Uniform1fvARB 9816 alias Uniform1fv 9817 return void 9818 param location GLint 9819 param count GLsizei 9820 param value const GLfloat * 9821 category GL_ARB_shader_objects 9822 chromium nopack 9823 9824 name Uniform2fvARB 9825 alias Uniform2fv 9826 return void 9827 param location GLint 9828 param count GLsizei 9829 param value const GLfloat * 9830 category GL_ARB_shader_objects 9831 chromium nopack 9832 9833 name Uniform3fvARB 9834 alias Uniform3fv 9835 return void 9836 param location GLint 9837 param count GLsizei 9838 param value const GLfloat * 9839 category GL_ARB_shader_objects 9840 chromium nopack 9841 9842 name Uniform4fvARB 9843 alias Uniform4fv 9844 return void 9845 param location GLint 9846 param count GLsizei 9847 param value const GLfloat * 9848 category GL_ARB_shader_objects 9849 chromium nopack 9850 9851 name Uniform1ivARB 9852 alias Uniform1iv 9853 return void 9854 param location GLint 9855 param count GLsizei 9856 param value const GLint * 9857 category GL_ARB_shader_objects 9858 chromium nopack 9859 9860 name Uniform2ivARB 9861 alias Uniform2iv 9862 return void 9863 param location GLint 9864 param count GLsizei 9865 param value const GLint * 9866 category GL_ARB_shader_objects 9867 chromium nopack 9868 9869 name Uniform3ivARB 9870 alias Uniform3iv 9871 return void 9872 param location GLint 9873 param count GLsizei 9874 param value const GLint * 9875 category GL_ARB_shader_objects 9876 chromium nopack 9877 9878 name Uniform4ivARB 9879 alias Uniform4iv 9880 return void 9881 param location GLint 9882 param count GLsizei 9883 param value const GLint * 9884 category GL_ARB_shader_objects 9885 chromium nopack 9886 9887 name UniformMatrix2fvARB 9888 alias UniformMatrix2fv 9889 return void 9890 param location GLint 9891 param count GLsizei 9892 param transpose GLboolean 9893 param value const GLfloat * 9894 category GL_ARB_shader_objects 9895 chromium nopack 9896 9897 name UniformMatrix3fvARB 9898 alias UniformMatrix3fv 9899 return void 9900 param location GLint 9901 param count GLsizei 9902 param transpose GLboolean 9903 param value const GLfloat * 9904 category GL_ARB_shader_objects 9905 chromium nopack 9906 9907 name UniformMatrix4fvARB 9908 alias UniformMatrix4fv 9909 return void 9910 param location GLint 9911 param count GLsizei 9912 param transpose GLboolean 9913 param value const GLfloat * 9914 category GL_ARB_shader_objects 9915 chromium nopack 9916 9917 name GetObjectParameterfvARB 9918 return void 9919 param obj GLhandleARB 9920 param pname GLenum 9921 paramprop pname GL_OBJECT_TYPE_ARB GL_OBJECT_SUBTYPE_ARB GL_OBJECT_DELETE_STATUS_ARB GL_OBJECT_COMPILE_STATUS_ARB GL_OBJECT_LINK_STATUS_ARB GL_OBJECT_VALIDATE_STATUS_ARB GL_OBJECT_INFO_LOG_LENGTH_ARB GL_OBJECT_ATTACHED_OBJECTS_ARB GL_OBJECT_ACTIVE_UNIFORMS_ARB GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 9922 param params GLfloat * 9923 category GL_ARB_shader_objects 9924 props get serverdependent 9925 chromium extpack 9926 9927 name GetObjectParameterivARB 9928 return void 9929 param obj GLhandleARB 9930 param pname GLenum 9931 paramprop pname GL_OBJECT_TYPE_ARB GL_OBJECT_SUBTYPE_ARB GL_OBJECT_DELETE_STATUS_ARB GL_OBJECT_COMPILE_STATUS_ARB GL_OBJECT_LINK_STATUS_ARB GL_OBJECT_VALIDATE_STATUS_ARB GL_OBJECT_INFO_LOG_LENGTH_ARB GL_OBJECT_ATTACHED_OBJECTS_ARB GL_OBJECT_ACTIVE_UNIFORMS_ARB GL_OBJECT_ACTIVE_UNIFORM_MAX_LENGTH_ARB GL_OBJECT_SHADER_SOURCE_LENGTH_ARB 9932 param params GLint * 9933 category GL_ARB_shader_objects 9934 props get serverdependent 9935 chromium extpack 9936 9937 name GetInfoLogARB 9938 return void 9939 param obj GLhandleARB 9940 param maxLength GLsizei 9941 param length GLsizei * 9942 param infoLog GLcharARB * 9943 category GL_ARB_shader_objects 9944 props get serverdependent 9945 chromium extpack 9946 9947 name GetAttachedObjectsARB 9948 return void 9949 param containerObj GLhandleARB 9950 param maxCount GLsizei 9951 param count GLsizei * 9952 param obj GLhandleARB * 9953 category GL_ARB_shader_objects 9954 props get 9955 chromium extpack 9956 9957 name GetUniformLocationARB 9958 alias GetUniformLocation 9959 return GLint 9960 param programObj GLhandleARB 9961 param name const GLcharARB * 9962 category GL_ARB_shader_objects 9963 props get 9964 chromium nopack 9965 9966 name GetActiveUniformARB 9967 alias GetActiveUniform 9968 return void 9969 param programObj GLhandleARB 9970 param index GLuint 9971 param maxLength GLsizei 9972 param length GLsizei * 9973 param size GLint * 9974 param type GLenum * 9975 param name GLcharARB * 9976 category GL_ARB_shader_objects 9977 props get 9978 chromium nopack 9979 9980 name GetShaderSourceARB 9981 alias GetShaderSource 9982 return void 9983 param obj GLhandleARB 9984 param maxLength GLsizei 9985 param length GLsizei * 9986 param source GLcharARB * 9987 category GL_ARB_shader_objects 9988 props get 9989 chromium nopack 9990 9991 name GetUniformfvARB 9992 alias GetUniformfv 9993 return void 9994 param programObj GLhandleARB 9995 param location GLint 9996 param params GLfloat * 9997 category GL_ARB_shader_objects 9998 props get 9999 chromium nopack 10000 10001 name GetUniformivARB 10002 alias GetUniformiv 10003 return void 10004 param programObj GLhandleARB 10005 param location GLint 10006 param params GLint * 10007 category GL_ARB_shader_objects 10008 props get 10009 chromium nopack 10010 10011 # GL_ARB_vertex_shader 10012 10013 name GetActiveAttribARB 10014 alias GetActiveAttrib 10015 return void 10016 param programObj GLhandleARB 10017 param index GLuint 10018 param maxLength GLsizei 10019 param length GLsizei * 10020 param size GLint * 10021 param type GLenum * 10022 param name GLcharARB * 10023 category GL_ARB_vertex_shader 10024 props get 10025 chromium nopack 10026 10027 name GetAttribLocationARB 10028 alias GetAttribLocation 10029 return GLint 10030 param programObj GLhandleARB 10031 param name const GLcharARB * 10032 category GL_ARB_vertex_shader 10033 props get 10034 chromium nopack 10035 10036 name BindAttribLocationARB 10037 alias BindAttribLocation 10038 return void 10039 param programObj GLhandleARB 10040 param index GLuint 10041 param name const GLcharARB * 10042 category GL_ARB_vertex_shader 10043 chromium nopack 10044 9206 10045 # end of file sentinel 9207 10046 -
trunk/src/VBox/GuestHost/OpenGL/glapi_parser/apiutil.py
r20147 r20467 610 610 'int': 4, 611 611 'GLintptrARB': 4, # XXX or 8 bytes? 612 'GLsizeiptrARB': 4 # XXX or 8 bytes? 612 'GLsizeiptrARB': 4, # XXX or 8 bytes? 613 'GLhandleARB': 4, 614 'GLcharARB': 1 613 615 } 614 616 -
trunk/src/VBox/GuestHost/OpenGL/include/cr_version.h
r20147 r20467 30 30 #define CR_OPENGL_VERSION_1_4 1 31 31 #define CR_OPENGL_VERSION_1_5 1 32 /*#define CR_OPENGL_VERSION_2_0 1*/ 32 #define CR_OPENGL_VERSION_2_0 1 33 33 34 34 /* Version (string) of OpenGL functionality suported by Chromium */ … … 112 112 #define CR_EXT_texture_from_pixmap 1 113 113 114 #define CR_ARB_shader_objects 1 114 115 #define CR_ARB_vertex_shader 1 115 116 #define CR_ARB_fragment_shader 1 -
trunk/src/VBox/GuestHost/OpenGL/packer/pack_shaders.c
r20437 r20467 263 263 } 264 264 265 /*@todo next 5functions are bit hacky,265 /*@todo next 7 functions are bit hacky, 266 266 * we expect packspu to pass a single structure with all output parameters via first output pointer. 267 267 * it'd be better to add CRMessageMultiReadback one day. … … 321 321 } 322 322 323 void PACK_APIENTRY crPackGetAttachedObjectsARB(GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj, int * writeback) 324 { 325 GET_PACKER_CONTEXT(pc); 326 unsigned char *data_ptr; 327 (void) pc; 328 GET_BUFFERED_POINTER(pc, 32); 329 WRITE_DATA(0, GLint, 32); 330 WRITE_DATA(4, GLenum, CR_GETATTACHEDOBJECTSARB_EXTEND_OPCODE); 331 WRITE_DATA(8, GLhandleARB, containerObj); 332 WRITE_DATA(12, GLsizei, maxCount); 333 WRITE_NETWORK_POINTER(16, (void *) count); 334 WRITE_NETWORK_POINTER(24, (void *) writeback); 335 WRITE_OPCODE(pc, CR_EXTEND_OPCODE); 336 } 337 338 void PACK_APIENTRY crPackGetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog, int * writeback) 339 { 340 GET_PACKER_CONTEXT(pc); 341 unsigned char *data_ptr; 342 (void) pc; 343 GET_BUFFERED_POINTER(pc, 32); 344 WRITE_DATA(0, GLint, 32); 345 WRITE_DATA(4, GLenum, CR_GETINFOLOGARB_EXTEND_OPCODE); 346 WRITE_DATA(8, GLhandleARB, obj); 347 WRITE_DATA(12, GLsizei, maxLength); 348 WRITE_NETWORK_POINTER(16, (void *) length); 349 WRITE_NETWORK_POINTER(24, (void *) writeback); 350 WRITE_OPCODE(pc, CR_EXTEND_OPCODE); 351 } 352 323 353 void PACK_APIENTRY crPackGetProgramInfoLog(GLuint program, GLsizei bufSize, GLsizei * length, char * infoLog, int * writeback) 324 354 { … … 382 412 crMemcpy(data_ptr, name, cbName*sizeof(*name)); 383 413 data_ptr += cbName*sizeof(*name); 384 WRITE_NETWORK_POINTER(0, (void *) return_value 385 WRITE_NETWORK_POINTER(8, (void *) writeback 386 WRITE_OPCODE(pc, CR_EXTEND_OPCODE); 387 } 388 389 void PACK_APIENTRY crPackGetUniformLocation( GLuint program, const char * name, GLint * return_value, int * writeback)414 WRITE_NETWORK_POINTER(0, (void *) return_value); 415 WRITE_NETWORK_POINTER(8, (void *) writeback); 416 WRITE_OPCODE(pc, CR_EXTEND_OPCODE); 417 } 418 419 void PACK_APIENTRY crPackGetUniformLocation(GLuint program, const char * name, GLint * return_value, int * writeback) 390 420 { 391 421 GET_PACKER_CONTEXT(pc); … … 400 430 crMemcpy(data_ptr, name, cbName*sizeof(*name)); 401 431 data_ptr += cbName*sizeof(*name); 402 WRITE_NETWORK_POINTER(0, (void *) return_value 403 WRITE_NETWORK_POINTER(8, (void *) writeback 432 WRITE_NETWORK_POINTER(0, (void *) return_value); 433 WRITE_NETWORK_POINTER(8, (void *) writeback); 404 434 WRITE_OPCODE(pc, CR_EXTEND_OPCODE); 405 435 } … … 560 590 } 561 591 562 void PACK_APIENTRY crPackGetUniformLocationSWAP( GLuint program, const char * name, GLint * return_value, int * writeback)592 void PACK_APIENTRY crPackGetUniformLocationSWAP(GLuint program, const char * name, GLint * return_value, int * writeback) 563 593 { 564 594 GET_PACKER_CONTEXT(pc); -
trunk/src/VBox/GuestHost/OpenGL/packer/packer_special
r20437 r20467 163 163 GetAttribLocation 164 164 GetUniformLocation 165 GetAttachedObjectsARB 166 GetInfoLogARB -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/get_sizes.py
r20327 r20467 336 336 # We don't support GL_ARB_draw_buffers, but for some reason ubuntu64 8.10 vm queries it on macos host 337 337 'GL_MAX_DRAW_BUFFERS_ARB': (1, 'VBOX'), 338 'GL_MAX_PROGRAM_MATRICES_ARB': (1, 'CR_ARB_vertex_program'), 339 'GL_MAX_PROGRAM_MATRIX_STACK_DEPTH_ARB': (1, 'CR_ARB_vertex_program'), 338 340 # Vertex shaders (2.0) # 339 341 'GL_MAX_VERTEX_UNIFORM_COMPONENTS': (1, 'CR_OPENGL_VERSION_2_0'), -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_get.py
r20147 r20467 72 72 'GetQueryivARB' : 1, 73 73 'GetProgramiv' : 1, 74 'GetShaderiv' : 1 74 'GetShaderiv' : 1, 75 'GetObjectParameterfvARB': 1, 76 'GetObjectParameterivARB': 1 75 77 } 76 78 … … 89 91 'AreProgramsResidentNV', 90 92 'GetProgramiv', 91 'GetShaderiv' 93 'GetShaderiv', 94 'GetObjectParameterfvARB', 95 'GetObjectParameterivARB' 92 96 ]; 93 97 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_getshaders.c
r20437 r20467 76 76 } 77 77 78 void SERVER_DISPATCH_APIENTRY crServerDispatchGetAttachedObjectsARB(GLhandleARB containerObj, GLsizei maxCount, GLsizei * count, GLhandleARB * obj) 79 { 80 GLsizei *pLocal; 81 82 pLocal = (GLsizei*) crAlloc(maxCount*sizeof(GLhandleARB)+sizeof(GLsizei)); 83 if (!pLocal) 84 { 85 GLsizei zero=0; 86 crServerReturnValue(&zero, sizeof(zero)); 87 } 88 cr_server.head_spu->dispatch_table.GetAttachedObjectsARB(containerObj, maxCount, pLocal, (GLhandleARB*)&pLocal[1]); 89 crServerReturnValue(pLocal, (*pLocal)*sizeof(GLhandleARB)+sizeof(GLsizei)); 90 crFree(pLocal); 91 } 92 93 void SERVER_DISPATCH_APIENTRY crServerDispatchGetInfoLogARB(GLhandleARB obj, GLsizei maxLength, GLsizei * length, GLcharARB * infoLog) 94 { 95 GLsizei *pLocal; 96 97 pLocal = (GLsizei*) crAlloc(maxLength+sizeof(GLsizei)); 98 if (!pLocal) 99 { 100 GLsizei zero=0; 101 crServerReturnValue(&zero, sizeof(zero)); 102 } 103 cr_server.head_spu->dispatch_table.GetInfoLogARB(obj, maxLength, pLocal, (char*)&pLocal[1]); 104 crServerReturnValue(pLocal, (*pLocal)+1+sizeof(GLsizei)); 105 crFree(pLocal); 106 } 107 78 108 void SERVER_DISPATCH_APIENTRY crServerDispatchGetShaderInfoLog(GLuint shader, GLsizei bufSize, GLsizei *length, char *infoLog) 79 109 { -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_special
r20147 r20467 189 189 GetUniformfv 190 190 GetUniformiv 191 GetAttachedObjectsARB 192 GetInfoLogARB -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_shaders.c
r20437 r20467 189 189 } 190 190 191 void crUnpackExtendGetAttachedObjectsARB(void) 192 { 193 GLhandleARB containerObj = READ_DATA(8, GLhandleARB); 194 GLsizei maxCount = READ_DATA(12, GLsizei); 195 SET_RETURN_PTR(16); 196 SET_WRITEBACK_PTR(24); 197 cr_unpackDispatch.GetAttachedObjectsARB(containerObj, maxCount, NULL, NULL); 198 } 199 200 void crUnpackExtendGetInfoLogARB(void) 201 { 202 GLhandleARB obj = READ_DATA(8, GLhandleARB); 203 GLsizei maxLength = READ_DATA(12, GLsizei); 204 SET_RETURN_PTR(16); 205 SET_WRITEBACK_PTR(24); 206 cr_unpackDispatch.GetInfoLogARB(obj, maxLength, NULL, NULL); 207 } 208 191 209 void crUnpackExtendGetProgramInfoLog(void) 192 210 { -
trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpacker_special
r20437 r20467 161 161 GetAttribLocation 162 162 GetUniformLocation 163 GetAttachedObjectsARB 164 GetInfoLogARB
Note:
See TracChangeset
for help on using the changeset viewer.