Changeset 1082 for trunk/src/debug/quad.cpp
- Timestamp:
- Nov 21, 2011, 1:49:47 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/debug/quad.cpp
r1051 r1082 154 154 if (!data->initialised && !IsDestroying()) 155 155 { 156 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ 156 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 157 157 glGenVertexArrays(NUM_ARRAYS, data->array); 158 158 #endif … … 184 184 else if (data->initialised && IsDestroying()) 185 185 { 186 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ 186 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 187 187 glDeleteVertexArrays(NUM_ARRAYS, data->array); 188 188 #endif … … 495 495 * Renders an orange square. 496 496 */ 497 #if !defined __ANDROID__ && !defined __APPLE__ 497 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 498 498 glColor4f(orange.x, orange.y, orange.z, orange.w); 499 499 glEnableClientState(GL_VERTEX_ARRAY); … … 513 513 * Renders a green sine wave made of 1-pixel points. 514 514 */ 515 #if !defined __ANDROID__ && !defined __APPLE__ 515 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 516 516 glColor4f(0.0f, 1.0f, 0.0f, 1.0f); 517 517 glPointSize(1.0f); … … 532 532 * Renders a multicoloured square with varying colors. 533 533 */ 534 #if !defined __ANDROID__ && !defined __APPLE__ 534 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 535 535 glEnableClientState(GL_VERTEX_ARRAY); 536 536 glEnableClientState(GL_COLOR_ARRAY); … … 553 553 * animated distorted checkerboard. 554 554 */ 555 #if !defined __ANDROID__ && !defined __APPLE__ 555 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 556 556 glEnable(GL_TEXTURE_2D); 557 557 glBindTexture(GL_TEXTURE_2D, data->texture[0]); … … 581 581 * Renders an orange square. 582 582 */ 583 #if !defined __ANDROID__ && !defined __APPLE__ 583 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 584 584 if (!shader[0]) 585 585 #if !defined __CELLOS_LV2__ … … 627 627 * Renders an orange square. 628 628 */ 629 #if !defined __ANDROID__ && !defined __APPLE__ 629 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 630 630 if (!shader[0]) 631 631 { … … 680 680 * Renders a static, coloured and tiled pattern. 681 681 */ 682 #if !defined __ANDROID__ && !defined __APPLE__ 682 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 683 683 if (!shader[0]) 684 684 #if !defined __CELLOS_LV2__ … … 733 733 * Renders a multicoloured square with varying colors. 734 734 */ 735 #if !defined __ANDROID__ && !defined __APPLE__ 735 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 736 736 if (!shader[0]) 737 737 { … … 797 797 * Renders an antialiased green sine wave made of 1-pixel points. 798 798 */ 799 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __CELLOS_LV2__ 799 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __CELLOS_LV2__ && !defined __native_client__ 800 800 if (!shader[0]) 801 801 shader[0] = Shader::Create( … … 843 843 * animated distorted checkerboard. 844 844 */ 845 #if !defined __ANDROID__ && !defined __APPLE__ 845 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 846 846 if (!shader[0]) 847 847 #if !defined __CELLOS_LV2__ … … 916 916 * animated distorted checkerboard. 917 917 */ 918 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ 918 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 919 919 if (!shader[0]) 920 920 { … … 986 986 * animated distorted checkerboard. 987 987 */ 988 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ 988 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 989 989 if (!shader[0]) 990 990 { … … 1074 1074 #endif 1075 1075 1076 #if !defined __ANDROID__ && !defined __APPLE__ 1076 #if !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 1077 1077 glColor4f(1.0f, 1.0f, 1.0f, 1.0f); 1078 1078 #endif … … 1083 1083 glClientActiveTexture(GL_TEXTURE0); 1084 1084 #endif 1085 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ 1085 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 1086 1086 glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_FALSE); 1087 1087 #endif … … 1089 1089 1090 1090 glDisable(GL_BLEND); 1091 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ 1091 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 1092 1092 glDisable(GL_POINT_SPRITE); 1093 1093 #endif … … 1101 1101 #endif 1102 1102 1103 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ 1103 #if !defined __CELLOS_LV2__ && !defined __ANDROID__ && !defined __APPLE__ && !defined __native_client__ 1104 1104 glDisable(GL_VERTEX_PROGRAM_POINT_SIZE); 1105 1105 #endif
Note: See TracChangeset
for help on using the changeset viewer.