Bind OpenGL 1.0 and 1.1 functions. */
| 232 | |
| 233 | /** Bind OpenGL 1.0 and 1.1 functions. */ |
| 234 | static bool BindBasicOpenGLProcs() |
| 235 | { |
| 236 | if (!BindGLProc(_glDisable, "glDisable")) return false; |
| 237 | if (!BindGLProc(_glEnable, "glEnable")) return false; |
| 238 | if (!BindGLProc(_glViewport, "glViewport")) return false; |
| 239 | if (!BindGLProc(_glTexImage1D, "glTexImage1D")) return false; |
| 240 | if (!BindGLProc(_glTexImage2D, "glTexImage2D")) return false; |
| 241 | if (!BindGLProc(_glTexParameteri, "glTexParameteri")) return false; |
| 242 | if (!BindGLProc(_glTexSubImage1D, "glTexSubImage1D")) return false; |
| 243 | if (!BindGLProc(_glTexSubImage2D, "glTexSubImage2D")) return false; |
| 244 | if (!BindGLProc(_glBindTexture, "glBindTexture")) return false; |
| 245 | if (!BindGLProc(_glDeleteTextures, "glDeleteTextures")) return false; |
| 246 | if (!BindGLProc(_glGenTextures, "glGenTextures")) return false; |
| 247 | if (!BindGLProc(_glPixelStorei, "glPixelStorei")) return false; |
| 248 | if (!BindGLProc(_glClear, "glClear")) return false; |
| 249 | if (!BindGLProc(_glClearColor, "glClearColor")) return false; |
| 250 | if (!BindGLProc(_glBlendFunc, "glBlendFunc")) return false; |
| 251 | if (!BindGLProc(_glDrawArrays, "glDrawArrays")) return false; |
| 252 | |
| 253 | return true; |
| 254 | } |
| 255 | |
| 256 | /** Bind texture-related extension functions. */ |
| 257 | static bool BindTextureExtensions() |