Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Private Attributes
Track::sgVec3Wrapper Class Reference

sgVec3 is a float[3] array, so unfortunately we can't put it in a std::vector because it lacks a copy-constructor, this hack should help... More...

#include <track.hpp>

List of all members.

Public Member Functions

 sgVec3Wrapper (const sgVec3 &o)
 operator const float * () const
 operator float * ()

Private Attributes

sgVec3 vec

Detailed Description

sgVec3 is a float[3] array, so unfortunately we can't put it in a std::vector because it lacks a copy-constructor, this hack should help...

Definition at line 100 of file track.hpp.


Constructor & Destructor Documentation

Track::sgVec3Wrapper::sgVec3Wrapper ( const sgVec3 &  o) [inline]

Definition at line 106 of file track.hpp.

        {
            sgCopyVec3(vec, o);
        }

Member Function Documentation

Track::sgVec3Wrapper::operator const float * ( ) const [inline]

Definition at line 111 of file track.hpp.

        {
            return vec;
        }
Track::sgVec3Wrapper::operator float * ( ) [inline]

Definition at line 116 of file track.hpp.

        {
            return vec;
        }

Member Data Documentation

sgVec3 Track::sgVec3Wrapper::vec [private]

Definition at line 103 of file track.hpp.


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