mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-29 09:11:56 +00:00
[CoreSupport] glewinfo profiles/flags documentation breadcrumbs.
This commit is contained in:
parent
60b0fc5c05
commit
0720521034
@ -30,16 +30,21 @@ GLXEWContext _glxewctx;
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct createParams {
|
/* Command-line parameters for GL context creation */
|
||||||
|
|
||||||
|
struct createParams
|
||||||
|
{
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
int pixelformat;
|
int pixelformat;
|
||||||
#elif !defined(__APPLE__) && !defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
#elif !defined(__APPLE__) && !defined(__HAIKU__) || defined(GLEW_APPLE_GLX)
|
||||||
const char* display;
|
const char* display;
|
||||||
int visual;
|
int visual;
|
||||||
#endif
|
#endif
|
||||||
int major, minor;
|
int major, minor; /* GL context version number */
|
||||||
int profile_mask;
|
|
||||||
int flags;
|
/* https://www.opengl.org/registry/specs/ARB/glx_create_context.txt */
|
||||||
|
int profile_mask; /* core = 1, compatibility = 2 */
|
||||||
|
int flags; /* debug = 1, forward compatible = 2 */
|
||||||
};
|
};
|
||||||
|
|
||||||
GLboolean glewCreateContext (struct createParams *params);
|
GLboolean glewCreateContext (struct createParams *params);
|
||||||
|
@ -7,7 +7,8 @@
|
|||||||
int main (int argc, char** argv)
|
int main (int argc, char** argv)
|
||||||
{
|
{
|
||||||
GLuint err;
|
GLuint err;
|
||||||
struct createParams params = {
|
struct createParams params =
|
||||||
|
{
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
-1, /* pixelformat */
|
-1, /* pixelformat */
|
||||||
#elif !defined(__HAIKU__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
#elif !defined(__HAIKU__) && !defined(__APPLE__) || defined(GLEW_APPLE_GLX)
|
||||||
|
Loading…
Reference in New Issue
Block a user