MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
anonymous_namespace{Ray.cpp} Namespace Reference

Functions

void resetIdCounter ()
 
::std::uint64_t generateId ()
 
::std::uint64_t getCurrentId ()
 

Variables

::std::atomic<::std::uint64_t > counter {}
 

Function Documentation

◆ generateId()

::std::uint64_t anonymous_namespace{Ray.cpp}::generateId ( )

A helper method that generates an id by using a counter.

Returns
The new value of the counter.
Here is the caller graph for this function:

◆ getCurrentId()

::std::uint64_t anonymous_namespace{Ray.cpp}::getCurrentId ( )

Helper method that gets the current id generated.

Returns
The current value of the counter.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetIdCounter()

void anonymous_namespace{Ray.cpp}::resetIdCounter ( )

A helper method that resets the Ray id generator counter.

Here is the caller graph for this function:

Variable Documentation

◆ counter

::std::atomic<::std::uint64_t> anonymous_namespace{Ray.cpp}::counter {}

An atomic counter to generate Ray ids.