Changeset 21308 in vbox for trunk/src/VBox/Additions/common/crOpenGL/array
- Timestamp:
- Jul 7, 2009 10:49:52 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49651
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/array/arrayspu.c
r20970 r21308 478 478 } 479 479 #endif 480 //crDebug("arrayspu_DrawElements mode:0x%x, count:%d, type:0x%x", mode, count, type); 481 480 482 481 483 array_spu.self.Begin(mode); … … 521 523 static void ARRAYSPU_APIENTRY arrayspu_ColorPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 522 524 { 523 crStateColorPointer( size, type, stride, pointer ); 525 crStateColorPointer(size, type, stride, pointer); 526 array_spu.child.ColorPointer(size, type, stride, pointer); 524 527 } 525 528 526 529 static void ARRAYSPU_APIENTRY arrayspu_SecondaryColorPointerEXT( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 527 530 { 528 crStateSecondaryColorPointerEXT( size, type, stride, pointer ); 531 crStateSecondaryColorPointerEXT(size, type, stride, pointer); 532 array_spu.child.SecondaryColorPointerEXT(size, type, stride, pointer); 529 533 } 530 534 531 535 static void ARRAYSPU_APIENTRY arrayspu_VertexPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 532 536 { 533 crStateVertexPointer( size, type, stride, pointer ); 537 crStateVertexPointer(size, type, stride, pointer); 538 array_spu.child.VertexPointer(size, type, stride, pointer); 534 539 } 535 540 536 541 static void ARRAYSPU_APIENTRY arrayspu_TexCoordPointer( GLint size, GLenum type, GLsizei stride, const GLvoid *pointer ) 537 542 { 538 crStateTexCoordPointer( size, type, stride, pointer ); 543 crStateTexCoordPointer(size, type, stride, pointer); 544 array_spu.child.TexCoordPointer(size, type, stride, pointer); 539 545 } 540 546 541 547 static void ARRAYSPU_APIENTRY arrayspu_NormalPointer( GLenum type, GLsizei stride, const GLvoid *pointer ) 542 548 { 543 crStateNormalPointer( type, stride, pointer ); 549 crStateNormalPointer(type, stride, pointer); 550 array_spu.child.NormalPointer(type, stride, pointer); 544 551 } 545 552 546 553 static void ARRAYSPU_APIENTRY arrayspu_IndexPointer( GLenum type, GLsizei stride, const GLvoid *pointer ) 547 554 { 548 crStateIndexPointer( type, stride, pointer ); 555 crStateIndexPointer(type, stride, pointer); 556 array_spu.child.IndexPointer(type, stride, pointer); 549 557 } 550 558 551 559 static void ARRAYSPU_APIENTRY arrayspu_EdgeFlagPointer( GLsizei stride, const GLvoid *pointer ) 552 560 { 553 crStateEdgeFlagPointer( stride, pointer ); 561 crStateEdgeFlagPointer(stride, pointer); 562 array_spu.child.EdgeFlagPointer(stride, pointer); 554 563 } 555 564 556 565 static void ARRAYSPU_APIENTRY arrayspu_VertexAttribPointerNV( GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid * pointer ) 557 566 { 558 crStateVertexAttribPointerNV( index, size, type, stride, pointer ); 567 crStateVertexAttribPointerNV(index, size, type, stride, pointer); 568 array_spu.child.VertexAttribPointerNV(index, size, type, stride, pointer); 559 569 } 560 570 561 571 static void ARRAYSPU_APIENTRY arrayspu_FogCoordPointerEXT( GLenum type, GLsizei stride, const GLvoid *pointer ) 562 572 { 563 crStateFogCoordPointerEXT( type, stride, pointer ); 573 crStateFogCoordPointerEXT(type, stride, pointer); 574 array_spu.child.FogCoordPointerEXT(type, stride, pointer); 564 575 } 565 576 566 577 static void ARRAYSPU_APIENTRY arrayspu_GetPointerv( GLenum pname, GLvoid **params ) 567 578 { 568 crStateGetPointerv( pname, params);579 crStateGetPointerv(pname, params); 569 580 } 570 581 571 582 static void ARRAYSPU_APIENTRY arrayspu_EnableClientState( GLenum array ) 572 583 { 573 crStateEnableClientState( array ); 584 crStateEnableClientState(array); 585 array_spu.child.EnableClientState(array); 574 586 } 575 587 576 588 static void ARRAYSPU_APIENTRY arrayspu_DisableClientState( GLenum array ) 577 589 { 578 crStateDisableClientState( array ); 590 crStateDisableClientState(array); 591 array_spu.child.DisableClientState(array); 579 592 } 580 593 581 594 static void ARRAYSPU_APIENTRY arrayspu_ClientActiveTextureARB( GLenum texture ) 582 595 { 583 crStateClientActiveTextureARB( texture ); 596 crStateClientActiveTextureARB(texture); 597 array_spu.child.ClientActiveTextureARB(texture); 584 598 } 585 599 … … 662 676 const GLvoid *pointer) 663 677 { 664 crStateVertexAttribPointerARB( index, size, type, normalized, stride, pointer ); 678 crStateVertexAttribPointerARB(index, size, type, normalized, stride, pointer); 679 array_spu.child.VertexAttribPointerARB(index, size, type, normalized, stride, pointer); 665 680 } 666 681 … … 703 718 arrayspu_GenBuffersARB( GLsizei n, GLuint * buffers ) 704 719 { 705 crStateGenBuffersARB(n, buffers);720 array_spu.child.GenBuffersARB(n, buffers); 706 721 } 707 722 … … 710 725 { 711 726 crStateDeleteBuffersARB(n, buffers); 727 array_spu.child.DeleteBuffersARB(n, buffers); 712 728 } 713 729 … … 716 732 { 717 733 crStateBindBufferARB(target, buffer); 734 array_spu.child.BindBufferARB(target, buffer); 718 735 } 719 736 … … 721 738 arrayspu_IsBufferARB (GLuint buffer) 722 739 { 723 return crStateIsBufferARB(buffer);740 return array_spu.child.IsBufferARB(buffer); 724 741 } 725 742 … … 728 745 { 729 746 crStateBufferDataARB(target, size, data, usage); 747 array_spu.child.BufferDataARB(target, size, data, usage); 730 748 } 731 749 … … 735 753 { 736 754 crStateBufferSubDataARB(target, offset, size, data); 755 array_spu.child.BufferSubDataARB(target, offset, size, data); 737 756 } 738 757 … … 752 771 arrayspu_UnmapBufferARB(GLenum target) 753 772 { 754 return crStateUnmapBufferARB(target); 773 crStateUnmapBufferARB(target); 774 return array_spu.child.UnmapBufferARB(target); 755 775 } 756 776
Note:
See TracChangeset
for help on using the changeset viewer.