PDA

View Full Version : Why not get rid of glBindBuffer()?



halo
12-28-2006, 11:35 AM
Why can't glsl just accept texture indexes, instead of having to bind the texture and then pass in what texture unit its bound to? It seems like a roundabout way to pass textures, and it's very annoying.

Overmind
12-28-2006, 01:11 PM
I assume you mean glBindTexture. It's mainly historical. With shaders, the whole concept of texture units is obsolete.

As far as I know, they are getting rid of it in the new API for OpenGL 3.0.

zeoverlord
12-28-2006, 02:06 PM
Well only partially, i think glBindTexture will still be used in those cases where you are not using shaders.

It's either that or a default location to pass the samplers to.

halo
12-28-2006, 03:01 PM
Yes, that's what I meant.

Jan
12-29-2006, 03:01 AM
Originally posted by zeoverlord:
Well only partially, i think glBindTexture will still be used in those cases where you are not using shaders.The question is, if it will be possible to use OpenGL 3.0 without shaders, at all. That would mean it had some kind of a fixed-function pipeline and we all know, that there won't be such a thing.

But then again, that's all speculation at this time.

Jan.

Korval
12-29-2006, 03:47 PM
The question is, if it will be possible to use OpenGL 3.0 without shaders, at all.It won't.

That's what Longs Peak is all about: formally deprecating all of that stuff. And fixed-function is part of that deprecation.

dobradusa
12-30-2006, 05:04 AM
Originally posted by Korval:

The question is, if it will be possible to use OpenGL 3.0 without shaders, at all.It won't.

That's what Longs Peak is all about: formally deprecating all of that stuff. And fixed-function is part of that deprecation. But what if you won't require any special shading? Will OpenGL have some sort of default shaders emulating the fixed function pipeline?

Overmind
12-30-2006, 06:39 AM
No.

But you can still use the old API if you don't need any features of the new API. The deprecated features won't be removed.

But they won't be extended either, so if you want new features, you'll propably have to use the new API.