Using OpenGL (custom port)

div0 div0 at users.sourceforge.net
Tue Oct 6 11:09:31 PDT 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

David Butler wrote:
> 
> Is there a difference between a pointer to a D array and an int* in C?
> How do I convert between the two?  Am I even looking in the right place?
> 
> Thanks for any help!
> 
> -Dave Butler

There's nothing wrong with your int array.
What's GetLastError tell you?

According to the spec you can just pass null as the attrs anyway
to get a default, try that.

Only other thing I can suggest is maybe you've got the calling
convention of PFNWGLCREATECONTEXTATTRIBSARBPROC wrong.
But you only need to declare it in an extern (windows) block.

Just out of curiosity where did you get the c headers for opengl 3?

My card doesn't support it unfortunately so I've not bothered getting
hold of it so far.

- --
My enormous talent is exceeded only by my outrageous laziness.
http://www.ssTk.co.uk
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKy4fbT9LetA9XoXwRAkUiAKCi/APnNEJDDVYx0jv6vyo03ji86wCfTXns
Sa178i0Ry3U+tD1o2awy8d8=
=t3Cb
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-learn mailing list