This is the documentation for Enlighten.
class Geo AbstractRayChunk
template<typename T>
class Geo::AbstractRayChunk
Buffer that holds a chunk of rays and results.
Classes
Name | Description |
|---|---|
Iterator to a const ray result, allows iterating linearly over the ray results. |
Functions
Name | Description |
|---|---|
Add a ray to the set (must have already allocated enough space) | |
Allocate buffer space for nRays and set the chunk id. | |
Gets an STL-style 'begin' iterator for the results. | |
Gets an STL-style 'end' iterator for the results. | |
Gets the assigned chunk id. | |
Get the maximum number of rays that will fit in this chunk. | |
Ray data. | |
Get the number of rays currently in this chunk. | |
Gets/sets the ray filter. | |
Ray data. | |
Results data. | |
Set the number of rays in this chunk. | |
Gets/sets the ray filter. |
Typedefs
Name | Description |
|---|---|
T RayType | Type of rays. |
bool Geo::AbstractRayChunk< RayType >::AddRay
public: bool AddRay
(
const Geo::v128 origin,
const Geo::v128 direction
)
Add a ray to the set (must have already allocated enough space)
bool Geo::AbstractRayChunk< RayType >::Alloc
public: bool Alloc
(
Geo::s32 nRays,
Geo::s32 id
)