GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Data Structures | Public Member Functions | Data Fields | Static Public Attributes | Private Member Functions
glPortal::Portal Class Reference

#include <include/glPortal/Portal.hpp>

Inherits radix::Component.

Data Structures

struct  Wrapper
 

Public Member Functions

 Portal (radix::Entity &ent)
 
 ~Portal ()
 
radix::Vector3f getDirection () const
 
void placeOnWall (const radix::Vector3f &launchPos, const radix::Vector3f &point, const radix::Vector3f &normal)
 
radix::Vector3f getScaleMult () const
 
- Public Member Functions inherited from radix::Component
 Component (Entity &ent) noexcept
 
virtual const char * getName () const =0
 
virtual TypeId getTypeId () const =0
 
virtual ~Component ()
 

Data Fields

radix::Material overlayTex
 
radix::Material maskTex
 
double openSince
 
radix::Mesh overlayMesh
 
radix::Mesh stencilMesh
 
radix::Vector3f direction
 
radix::Vector3f color
 
bool open
 
bool isUncolliderActive = false
 
std::unique_ptr
< btDefaultMotionState > 
uncolliderMotionState
 
std::unique_ptr< btCollisionShape > uncolliderShape
 
std::unique_ptr
< btCollisionObject > 
uncollider
 
struct glPortal::Portal::Wrapper wrapper
 

Static Public Attributes

static const int PORTAL_RANGE
 
static const radix::Vector3f BLUE_COLOR
 
static const radix::Vector3f ORANGE_COLOR
 
static const double NOISE_FADE_DELAY
 
static const double OPEN_ANIM_DURATION
 
static const float SURFACE_OFFSET
 
- Static Public Attributes inherited from radix::Component
static constexpr TypeId MaxId = 32
 

Private Member Functions

void placeWrapperPiece (const radix::Vector3f &p, const radix::Quaternion &o, const radix::Vector3f &s, const std::unique_ptr< btCollisionShape > &shape, Wrapper::Side &side, const radix::Vector3f &offset)
 

Additional Inherited Members

- Public Types inherited from radix::Component
using TypeId = ComponentTypeId
 
- Static Public Member Functions inherited from radix::Component
template<typename T >
static TypeId getTypeId ()
 Gets a component's type ID. More...
 
- Protected Attributes inherited from radix::Component
Entityentity
 

Constructor & Destructor Documentation

glPortal::Portal::Portal ( radix::Entity ent)
glPortal::Portal::~Portal ( )

Member Function Documentation

radix::Vector3f glPortal::Portal::getDirection ( ) const
radix::Vector3f glPortal::Portal::getScaleMult ( ) const
void glPortal::Portal::placeOnWall ( const radix::Vector3f launchPos,
const radix::Vector3f point,
const radix::Vector3f normal 
)
void glPortal::Portal::placeWrapperPiece ( const radix::Vector3f p,
const radix::Quaternion o,
const radix::Vector3f s,
const std::unique_ptr< btCollisionShape > &  shape,
Wrapper::Side side,
const radix::Vector3f offset 
)
private

Field Documentation

const radix::Vector3f glPortal::Portal::BLUE_COLOR
static
radix::Vector3f glPortal::Portal::color
radix::Vector3f glPortal::Portal::direction
bool glPortal::Portal::isUncolliderActive = false
radix::Material glPortal::Portal::maskTex
const double glPortal::Portal::NOISE_FADE_DELAY
static
bool glPortal::Portal::open
const double glPortal::Portal::OPEN_ANIM_DURATION
static
double glPortal::Portal::openSince
const radix::Vector3f glPortal::Portal::ORANGE_COLOR
static
radix::Mesh glPortal::Portal::overlayMesh
radix::Material glPortal::Portal::overlayTex
const int glPortal::Portal::PORTAL_RANGE
static
radix::Mesh glPortal::Portal::stencilMesh
const float glPortal::Portal::SURFACE_OFFSET
static
std::unique_ptr<btCollisionObject> glPortal::Portal::uncollider
std::unique_ptr<btDefaultMotionState> glPortal::Portal::uncolliderMotionState
std::unique_ptr<btCollisionShape> glPortal::Portal::uncolliderShape
struct glPortal::Portal::Wrapper glPortal::Portal::wrapper

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