|
QSDK 1.1 Documentation |
#include <Q/q.h>
Public Member Functions | |
| RayInfo () | |
| bool | valid () const |
| const Instance & | instance () const |
| Instance & | instance () |
| Maths::Vec3f | coord () const |
| Maths::Vec3f | normal () const |
| float | distance () const |
| const Shader & | shader () const |
| Shader & | shader () |
| unsigned int | index () const |
| void | setValid (bool v) |
| void | setInstance (const Instance &i) |
| void | setCoord (const Maths::Vec3f &v) |
| void | setDistance (float dist) |
| void | setNormal (const Maths::Vec3f &v) |
| void | setShader (const Shader &s) |
| void | setIndex (unsigned int i) |
The RayInfo structure represents the information returned from a ray test.
|
|
Create a new ray info structure. |
|
|
Return the world coordinate in the scene where the ray intersected the object. |
|
|
Return the distance from the ray's origin to the hit point. |
|
|
Return the index of the component within a compound instance (e.g. a ClusterInstance) which this ray hit. For non-compound instances, the index will always be zero. |
|
|
Return the instance object which the ray hit. |
|
|
Return the instance object which the ray hit. |
|
|
Return the normal vector (in world coordinates) at the point where the ray intersected the object. |
|
|
Set the ray info's world coordinate. |
|
|
Set the ray info's distance. |
|
|
Set the component index for a ray which hits a compound instance. |
|
|
Set the ray info's instance. |
|
|
Set the ray info's world normal. |
|
|
Set the ray info's shader. |
|
|
Set the ray info's valid flag. |
|
|
Return the shader used for the triangle at the hit point. |
|
|
Return the shader used for the triangle at the hit point. |
|
|
Return |
|
|
|
Qube Software Limited © 2000-2004
|
|