Cortex  10.0.0-a4
Public Member Functions | Public Attributes | List of all members
IECoreGL::HitRecord Class Reference

#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.
 

Detailed Description

The HitRecord struct represents hit records found in the glSelectBuffer.

Constructor & Destructor Documentation

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.

Member Function Documentation

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.

Member Data Documentation

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.


The documentation for this class was generated from the following file: