From Farshid Lashkari, "This patch adds a CoordOriginMode to the osg::PointSprite attribute.

The mode needs to be changed to LOWER_LEFT when rendering point
sprites to pbuffers or FBOs, otherwise the points will be transformed
on the CPU."
This commit is contained in:
Robert Osfield
2006-11-14 12:29:54 +00:00
parent 5f59741b42
commit 7cb1bcbd7d
4 changed files with 55 additions and 10 deletions

View File

@@ -94,6 +94,7 @@ class OSG_EXPORT Point : public StateAttribute
void setPointParametersSupported(bool flag) { _isPointParametersSupported=flag; }
bool isPointParametersSupported() const { return _isPointParametersSupported; }
void glPointParameteri(GLenum pname, GLint param) const;
void glPointParameterf(GLenum pname, GLfloat param) const;
void glPointParameterfv(GLenum pname, const GLfloat *params) const;
@@ -103,6 +104,7 @@ class OSG_EXPORT Point : public StateAttribute
bool _isPointParametersSupported;
void* _glPointParameteri;
void* _glPointParameterf;
void* _glPointParameterfv;