- added a ColorFloat flag to Options, which can be set to write and read RGBA values as float instead of unsigned char
- added color_is_float function which checks if the ColorFloat flag was set git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@816 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
@@ -106,7 +106,8 @@ public:
|
|||||||
FaceNormal = 0x0100, ///< Has (r) / store (w) face normals
|
FaceNormal = 0x0100, ///< Has (r) / store (w) face normals
|
||||||
FaceColor = 0x0200, ///< Has (r) / store (w) face colors
|
FaceColor = 0x0200, ///< Has (r) / store (w) face colors
|
||||||
FaceTexCoord = 0x0400, ///< Has (r) / store (w) face texture coordinates
|
FaceTexCoord = 0x0400, ///< Has (r) / store (w) face texture coordinates
|
||||||
ColorAlpha = 0x0800 ///< Has (r) / store (w) alpha values for colors
|
ColorAlpha = 0x0800, ///< Has (r) / store (w) alpha values for colors
|
||||||
|
ColorFloat = 0x1000 ///< Has (r) / store (w) float values for colors
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@@ -202,6 +203,7 @@ public:
|
|||||||
bool face_has_color() const { return check(FaceColor); }
|
bool face_has_color() const { return check(FaceColor); }
|
||||||
bool face_has_texcoord() const { return check(FaceTexCoord); }
|
bool face_has_texcoord() const { return check(FaceTexCoord); }
|
||||||
bool color_has_alpha() const { return check(ColorAlpha); }
|
bool color_has_alpha() const { return check(ColorAlpha); }
|
||||||
|
bool color_is_float() const { return check(ColorFloat); }
|
||||||
|
|
||||||
|
|
||||||
/// Returns true if _rhs has the same options enabled.
|
/// Returns true if _rhs has the same options enabled.
|
||||||
|
|||||||
Reference in New Issue
Block a user