@@ -73,6 +73,18 @@ internal static class Gles
73
73
public const int GL_UNSIGNED_INT_24_8_OES = 0x84FA ;
74
74
public const int GL_DEPTH24_STENCIL8_OES = 0x88F0 ;
75
75
76
+ [ DllImport ( libGLESv2 ) ]
77
+ public static extern void glGetIntegerv ( uint pname , out int data ) ;
78
+ [ DllImport ( libGLESv2 ) ]
79
+ public static extern System . IntPtr glGetString ( uint value ) ;
80
+ [ DllImport ( libGLESv2 ) ]
81
+ public static extern void glViewport ( int x , int y , int width , int height ) ;
82
+ [ DllImport ( libGLESv2 ) ]
83
+ public static extern void glClearColor ( float red , float green , float blue , float alpha ) ;
84
+ [ DllImport ( libGLESv2 ) ]
85
+ public static extern void glClear ( uint mask ) ;
86
+
87
+ #if ! __DESKTOP__
76
88
[ DllImport ( libGLESv2 ) ]
77
89
public static extern void glGenRenderbuffers ( int n , [ In , Out ] uint [ ] buffers ) ;
78
90
[ DllImport ( libGLESv2 ) ]
@@ -82,18 +94,10 @@ internal static class Gles
82
94
[ DllImport ( libGLESv2 ) ]
83
95
public static extern void glGenFramebuffers ( int n , ref uint buffer ) ;
84
96
[ DllImport ( libGLESv2 ) ]
85
- public static extern void glGetIntegerv ( uint pname , out int data ) ;
86
- [ DllImport ( libGLESv2 ) ]
87
97
public static extern void glGetRenderbufferParameteriv ( uint target , int pname , out int param ) ;
88
98
[ DllImport ( libGLESv2 ) ]
89
99
public static extern void glBindRenderbuffer ( uint target , uint buffer ) ;
90
100
[ DllImport ( libGLESv2 ) ]
91
- public static extern void glViewport ( int x , int y , int width , int height ) ;
92
- [ DllImport ( libGLESv2 ) ]
93
- public static extern void glClearColor ( float red , float green , float blue , float alpha ) ;
94
- [ DllImport ( libGLESv2 ) ]
95
- public static extern void glClear ( uint mask ) ;
96
- [ DllImport ( libGLESv2 ) ]
97
101
public static extern void glBindFramebuffer ( uint target , uint framebuffer ) ;
98
102
[ DllImport ( libGLESv2 ) ]
99
103
public static extern void glDeleteFramebuffers ( int n , [ In , Out ] uint [ ] framebuffers ) ;
@@ -105,8 +109,7 @@ internal static class Gles
105
109
public static extern void glDeleteRenderbuffers ( int n , ref uint renderbuffer ) ;
106
110
[ DllImport ( libGLESv2 ) ]
107
111
public static extern void glFramebufferRenderbuffer ( uint target , uint attachment , uint renderbuffertarget , uint renderbuffer ) ;
108
- [ DllImport ( libGLESv2 ) ]
109
- public static extern System . IntPtr glGetString ( uint value ) ;
112
+ #endif
110
113
}
111
114
}
112
115
#endif
0 commit comments