Browse Source

Add briefs for classes in the geom namespace

master
C. J. Howard 3 years ago
parent
commit
7d62eeabae
6 changed files with 16 additions and 1 deletions
  1. +3
    -0
      src/geom/aabb.hpp
  2. +3
    -0
      src/geom/plane.hpp
  3. +3
    -0
      src/geom/ray.hpp
  4. +3
    -0
      src/geom/sphere.hpp
  5. +3
    -0
      src/geom/view-frustum.hpp
  6. +1
    -1
      src/platform/windows/nvidia.cpp

+ 3
- 0
src/geom/aabb.hpp View File

@ -27,6 +27,9 @@
namespace geom { namespace geom {
/**
* Axis-aligned bounding box.
*/
template <class T> template <class T>
struct aabb: public bounding_volume<T> struct aabb: public bounding_volume<T>
{ {

+ 3
- 0
src/geom/plane.hpp View File

@ -24,6 +24,9 @@
namespace geom { namespace geom {
/**
* A flat 2-dimensional surface.
*/
template <class T> template <class T>
struct plane struct plane
{ {

+ 3
- 0
src/geom/ray.hpp View File

@ -24,6 +24,9 @@
namespace geom { namespace geom {
/**
* Half of a line proceeding from an initial point.
*/
template <class T> template <class T>
struct ray struct ray
{ {

+ 3
- 0
src/geom/sphere.hpp View File

@ -27,6 +27,9 @@
namespace geom { namespace geom {
/**
* Bounding sphere.
*/
template <class T> template <class T>
struct sphere: public bounding_volume<T> struct sphere: public bounding_volume<T>
{ {

+ 3
- 0
src/geom/view-frustum.hpp View File

@ -26,6 +26,9 @@
namespace geom { namespace geom {
/**
* View frustum.
*/
template <class T> template <class T>
class view_frustum class view_frustum
{ {

+ 1
- 1
src/platform/windows/nvidia.cpp View File

@ -20,8 +20,8 @@
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#include <windows.h> #include <windows.h>
// Direct Nvidia Optimus to use high-performance graphics
extern "C" extern "C"
{ {
// Direct Nvidia Optimus to use high-performance graphics
_declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001; _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
} }

Loading…
Cancel
Save