Changeset 904
- Timestamp:
- Sep 4, 2011, 11:02:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/debug/quad.cpp
r903 r904 508 508 */ 509 509 #if !defined ANDROID_NDK && !defined __APPLE__ 510 glColor 3f(0.0f, 1.0f, 0.0f);510 glColor4f(0.0f, 1.0f, 0.0f, 1.0f); 511 511 glPointSize(1.0f); 512 512 glEnableClientState(GL_VERTEX_ARRAY); … … 791 791 * Renders an antialiased green sine wave made of 1-pixel points. 792 792 */ 793 #if !defined ANDROID_NDK && !defined __APPLE__ 793 #if !defined ANDROID_NDK && !defined __APPLE__ && !defined __CELLOS_LV2__ 794 794 if (!shader[0]) 795 #if !defined __CELLOS_LV2__796 795 shader[0] = Shader::Create( 797 796 "#version 120\n" … … 811 810 " gl_FragColor = vec4(pass_Color.xyz, k);" 812 811 "}"); 813 #else814 shader[0] = Shader::Create(815 "void main(float4 in_Position : POSITION,"816 " float2 in_TexCoord : TEXCOORD0,"817 " float4 in_Color : COLOR,"818 " out float4 out_Color : COLOR,"819 " out float4 out_Position : POSITION,"820 " out float2 out_TexCoord : TEXCOORD0)"821 "{"822 " out_TexCoord = in_TexCoord;"823 " out_Color = in_Color;"824 " out_Position = in_Position;"825 "}",826 827 "void main(float2 in_TexCoord : TEXCOORD0,"828 " float4 in_Color : COLOR,"829 " uniform sampler2D tex,"830 " out float4 out_FragColor : COLOR)"831 "{"832 " float4 tmp = tex2D(tex, in_TexCoord * 0.25);"833 " out_FragColor = float4(abs(tmp.xyz - in_Color.xyz), 1);"834 "}");835 #endif836 812 837 813 shader[0]->Bind(); … … 1101 1077 glClientActiveTexture(GL_TEXTURE0); 1102 1078 #endif 1079 #if !defined __CELLOS_LV2__ && !defined ANDROID_NDK 1103 1080 glTexEnvi(GL_POINT_SPRITE, GL_COORD_REPLACE, GL_FALSE); 1081 #endif 1104 1082 glDisable(GL_TEXTURE_2D); 1105 1083 1106 1084 glDisable(GL_BLEND); 1085 #if !defined __CELLOS_LV2__ && !defined ANDROID_NDK 1107 1086 glDisable(GL_POINT_SPRITE); 1087 #endif 1108 1088 1109 1089 glBindBuffer(GL_ARRAY_BUFFER, 0); … … 1115 1095 #endif 1116 1096 1097 #if !defined __CELLOS_LV2__ && !defined ANDROID_NDK 1117 1098 glDisable(GL_VERTEX_PROGRAM_POINT_SIZE); 1099 #endif 1118 1100 } 1119 1101
Note: See TracChangeset
for help on using the changeset viewer.