Cortex
10.0.0-a4
|
#include <HitRecord.h>
Public Member Functions | |
HitRecord (const GLuint *hitRecord) | |
HitRecord (float dMin, float dMax, GLuint name) | |
bool | operator< (const HitRecord &other) const |
Performs comparison based on the depth.min member. | |
size_t | offsetToNext () const |
Public Attributes | |
float | depthMin |
float | depthMax |
GLuint | name |
Identifier for the hit object. | |
The HitRecord struct represents hit records found in the glSelectBuffer.
IECoreGL::HitRecord::HitRecord | ( | const GLuint * | hitRecord | ) |
Construct from a hit record in the format specified for the OpenGL select buffer. Raises an exception if more than one name is specified in the record.
size_t IECoreGL::HitRecord::offsetToNext | ( | ) | const |
Returns the offset to the next hit record in the select buffer - this is a constant as the constructor accepts only hit records with a single name.
float IECoreGL::HitRecord::depthMin |
The minimum and maximum depths of the hit, normalised in the 0-1 range between the near and far clipping planes.