From: Ricardo <rio...@ya...> - 2001-12-17 15:08:56
|
-----Mensaje original----- De: Kenneth B. Russell [mailto:kbr...@al...] Enviado el: viernes, 14 de diciembre de 2001 5:02 Para: Ricardo CC: gl4...@li... Asunto: Re: [gl4java-usergroup] DEPTH BUFFER > How can I change the number of bits of the depth buffer. > I have used: > GLContext kj =this.getGLContext(); > GLCapabilities lk = kj.getGLCapabilities(); > lk.setDepthBits(32); This definitely won't work; you need to set this before you create the context. For example, use the GLDrawableFactory and set up the GLCapabilities when you call createGLAnimCanvas. However, I'm not sure what depth buffer sizes most current hardware supports. I think the GLDrawableFactory will return null if the requested depth can't be satisfied, but am not sure. I have a class that extends GLCanvas, and I have the functions related with tha canvas, preinit, init, display, ... With GLDrawableFactory I can create a GLCanvas, but how can I use the functions of my class, that extends GLCanvas, there are any examples of use? Thanks _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |