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

Frederic Bouvier wrote:
| Stuart Buchanan a écrit :

|> 2) I've been finding it impossible to work out how to pass in generic 
attributes
|> into the shader. I've managed to bind an attribute to a location using
|> program->addBindAttribLocation("textureIndex", 1); but I can't seem to set 
the
|> attribute afterwards. I should be able to use glVertexAttrib... functions, 
but
|> they don't compile on Visual Studio. Any ideas ?
|>
|
| Why not using osg::Geometry::setVertexAttribArray instead of raw gl
| functions ? Standard OpenGL under windows is 1.1. Extensions have to be
| loaded manually. OSG should do it for you.

Stuart's trying to use attributes to set state before calling a display list, 
so the array
functions aren't usable here. The easiest thing would be to use 
osg::Drawable::Extensions
and look at the OSG source code for examples of using it.

Tim

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHm8YOeDhWHdXrDRURAvD3AKDDbFKR9CcgPkIQ6PpUERoVjwfn1ACgso62
zXGPCej0n7pk9jyZjVqHlmg=
=6QjO
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to