OpenGL 2.0 support

Started by spasi, September 09, 2004, 23:45:32

Previous topic - Next topic

spasi

Hi,

OpenGL 2.0 support was just finished and commited to CVS. Couple of issues though:

1. I've got no C compiler installed right now (and don't want to install the VS beast again :P), so the native code may be broken. Could someone have a look?

2. For the two-sided stencil stuff added in 2.0, I couldn't find the values of two constants. I'll update when I find them.

Matzon

uhh, very nice!
This fits very much in line with a new release scheduled asap. When do you think you can get that constant?

Native code doesn't compile (why the hell don't you have the free MS toolkit installed?
Bunch of these:
Quote..\..\src\native\common\org_lwjgl_opengl_GL20.cpp(826) : error C2143
: syntax error : missing '}' before '{'
there were some missing ,'s - I've fixed it and committed the changes. It compiles now.

It all looks fine, but to test it we need ogl 2.0 drivers, right? (and some demo too!)

spasi

Great, thanks. Too much code to write without a compiler! I'll put the constant in when I find some updated headers. I'll have to recheck everything too, especially the GLSL stuff that have changed considerably. It took much patience last night, digging through the spec and trying to figure out what's new/changed/removed...

But I think we can safely get the new version out, since no driver supports 2.0 yet. And probably it'll take a while.

cfmdobbie

Wow, that's a PR coup.  One day after the specification was finalised LWJGL gets support out the door.

Almost worth another release? :D
ellomynameis Charlie Dobbie.

renanse

Was the two sided stencil support ever added?

renanse

Never mind, I found it...  looks like those two constants are still set to 0x0000 though. (at least in my copy of the source)

darkprophet

public static final int GL_STENCIL_TEST_TWO_SIDE_EXT = 0x8910;
public static final int GL_ACTIVE_STENCIL_FACE_EXT = 0x8911;


thats whats in CVS...
DP

renanse

Actually I was referring to the following in GL20.java

public static final int GL_STENCIL_BACK_REF = 0x0000; // TODO: Find this value
	public static final int GL_STENCIL_BACK_VALUE_MASK = 0x0000; // TODO: Find this value


But looks like they are good in cvs too.

darkprophet

Aha, I find its always better to use the extension rather than the core feature, this way, if some card does have that extension but doesn't fully support GL2.0 then all is well.

Like my radeon 9200, its got vertex programs, but not fragment programs. So its far better to use ARBVertexProgram than GL15.

/me goes off to murmour how crap his 9200 is ...

DP