Skip to content

Commit

Permalink
Made bool isImageTranslucent() const virtual to allow subclasses to p…
Browse files Browse the repository at this point in the history
…rovide their own implementation
  • Loading branch information
robertosfield committed Mar 10, 2009
1 parent 287ff37 commit c0863e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/osg/Image
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class OSG_EXPORT Image : public Object
}*/

/** Return true if this image is translucent - i.e. it has alpha values that are less 1.0 (when normalized). */
bool isImageTranslucent() const;
virtual bool isImageTranslucent() const;

/** Set the optional PixelBufferObject used to map the image memory efficiently to graphics memory. */
void setPixelBufferObject(PixelBufferObject* buffer) { _bufferObject = buffer; if (_bufferObject.valid()) _bufferObject->setImage(this); }
Expand Down

0 comments on commit c0863e9

Please sign in to comment.