Browse Source

Added Mesh::setProgramPointSize().

pull/279/head
Vladimír Vondruš 14 years ago
parent
commit
3931cccd08
  1. 17
      src/Mesh.h

17
src/Mesh.h

@ -121,11 +121,26 @@ class MAGNUM_EXPORT Mesh {
glLineWidth(width); glLineWidth(width);
} }
/** @brief Set point size */ /**
* @brief Set point size
*
* @see setProgramPointSize()
*/
inline static void setPointSize(GLfloat size) { inline static void setPointSize(GLfloat size) {
glPointSize(size); glPointSize(size);
} }
/**
* @brief Enable/disable programmable point size
*
* If enabled, the point size is taken from vertex/geometry shader
* builtin `gl_PointSize`.
* @see setPointSize()
*/
inline static void setProgramPointSize(bool enabled) {
enabled ? glEnable(GL_PROGRAM_POINT_SIZE) : glDisable(GL_PROGRAM_POINT_SIZE);
}
/** /**
* @brief Implicit constructor * @brief Implicit constructor
* @param primitive Primitive type * @param primitive Primitive type

Loading…
Cancel
Save