Unsigned integer and integer sampler support

0 views
Skip to first unread message

andyc

unread,
Nov 26, 2009, 12:34:01 PM11/26/09
to G3D Users
Hi,

I have a patch against yesterday's head with some support for unsigned
integer uniforms and for signed and unsigned integer sampler types
here:

http://www.cs.ucl.ac.uk/staff/Andrew.Cox/code/g3d/patches/g3d_patch3.diff

As with my last patch, integrating this upstream would ease my life
knowing that I could pull your latest changes. There is one
potentially difficult part of it however:

Index: GLG3D.lib/source/GLCaps.cpp
===================================================================
RCS file: /cvsroot/g3d-cpp/G3D/GLG3D.lib/source/GLCaps.cpp,v
retrieving revision 1.34
diff -u -8 -p -r1.34 GLCaps.cpp
--- GLG3D.lib/source/GLCaps.cpp 20 Nov 2009 19:49:10 -0000 1.34
+++ GLG3D.lib/source/GLCaps.cpp 26 Nov 2009 17:10:49 -0000
@@ -270,16 +270,18 @@ void GLCaps::loadExtensions(Log* debugLo
renderer();
glVersion();
driverVersion();

// Initialize cached GL major version pulled from glVersion() for
extensions made into 2.0 core
const std::string glver = glVersion();
_hasGLMajorVersion2 = beginsWith(glver, "2.");

+ glewExperimental = GL_TRUE; //< To get GL 3
+

I needed that line to get the version of GLEW that you guys distribute
(and possibly any other version of it: not sure) to give me the GL3
features that I am exposing through G3D. I don't know if that would be
a problem for the two cases of someone either building or running G3D
on a machine that doesn't have a GL3 implementation installed.

Best,
Andrew

Morgan McGuire

unread,
Nov 28, 2009, 1:19:59 PM11/28/09
to g3d-...@googlegroups.com
I made the GLEW change and am testing it on a GL2 machine. I filed
the other diff as a feature request.

-m

Prof. Morgan McGuire
Computer Science Department
Williams College
http://cs.williams.edu/~morgan
> --
>
> You received this message because you are subscribed to the Google Groups "G3D Users" group.
> To post to this group, send email to g3d-...@googlegroups.com.
> To unsubscribe from this group, send email to g3d-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/g3d-users?hl=en.
>
>
>
Reply all
Reply to author
Forward
0 new messages