Gamp v0.0.8
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
Ship Class Reference
Inheritance diagram for Ship:
Collaboration diagram for Ship:

Public Member Functions

 Ship (Shape::Private, GraphRenderer &renderer)
 
void addVelo (float v) noexcept
 
void clear (GL &gl) override
 
void destroy (GL &gl) override
 
Vec3f getDir () const noexcept
 
void reset () noexcept
 
void setOriginZRotation (float v) noexcept
 Set z-axis rotation offset of movement orientation.
 
void setVelo (float v) noexcept
 
void tick (float dt) override
 
Vec3f velo () const noexcept
 
- Public Member Functions inherited from Shape
 Shape (GLenum type, ShaderState &st, GLUniformSyncPMVMat4f &pmvMatU, GLUniformVec4f &color)
 
 Shape (Private, GraphRenderer &renderer)
 
 Shape (Private, GraphRenderer &renderer)
 
 Shape (Private, GraphRenderer &renderer)
 
 Shape (Private, ShaderState &st, GLUniformSyncPMVMat4f &pmvMatU, GLUniformVec4f &color)
 
 Shape (Private, ShaderState &st, GraphRenderer &renderer)
 
virtual ~Shape () noexcept=default
 
const AABBox3fbounds () const noexcept
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
const Vec4fcolor () const noexcept
 
void destroy (GL &gl)
 
void destroy (GL &gl)
 
void destroy (GL &gl)
 
void draw (GL &gl)
 
void draw (GL &gl)
 
void draw (GL &gl)
 
void draw (GL &gl)
 
void draw (GL &gl)
 
void draw (GL &gl)
 
constexpr const OutlineShapeoutlineShape () const noexcept
 
constexpr const OutlineShapeoutlineShape () const noexcept
 
constexpr OutlineShapeoutlineShape () noexcept
 
constexpr OutlineShapeoutlineShape () noexcept
 
constexpr const std::vector< OutlineShape > & outlineShapes () const noexcept
 
constexpr const std::vector< OutlineShape > & outlineShapes () const noexcept
 
constexpr const std::vector< OutlineShape > & outlineShapes () const noexcept
 
constexpr std::vector< OutlineShape > & outlineShapes () noexcept
 
constexpr std::vector< OutlineShape > & outlineShapes () noexcept
 
constexpr std::vector< OutlineShape > & outlineShapes () noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr const Vec3fposition () const noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr Vec3fposition () noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr const Quat4frotation () const noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr Quat4frotation () noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr const Vec3frotationPivot () const noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr Vec3frotationPivot () noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr const Vec3fscale () const noexcept
 
constexpr Vec3fscale () noexcept
 
constexpr Vec3fscale () noexcept
 
constexpr Vec3fscale () noexcept
 
constexpr Vec3fscale () noexcept
 
constexpr Vec3fscale () noexcept
 
void seal (GL &gl, bool seal)
 
constexpr void set_position (Vec3f new_pos) noexcept
 
constexpr void set_position (Vec3f new_pos) noexcept
 
constexpr void set_position (Vec3f new_pos) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
void setColor (const Vec4f &c) noexcept
 
const SpatialStatespatialState () const noexcept
 
SpatialStatespatialState () noexcept
 
void tick (float dt)
 Game ..
 
void tick (float dt)
 Game ..
 
void update (GL &gl)
 
void update (GL &gl)
 
void update (GL &gl)
 
void update (GL &gl)
 
void update (GL &gl)
 
float & velo () noexcept
 
float & velo () noexcept
 
constexpr const GLFloatArrayDataServerSRefvertices () const noexcept
 
constexpr GLFloatArrayDataServerSRefvertices () noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr const float & zOffset () const noexcept
 
constexpr float & zOffset () noexcept
 
constexpr float & zOffset () noexcept
 
constexpr float & zOffset () noexcept
 
constexpr float & zOffset () noexcept
 
constexpr float & zOffset () noexcept
 

Static Public Member Functions

static ShipRef createShared (GraphRenderer &renderer)
 
- Static Public Member Functions inherited from Shape
static ShapeRef createShared (GraphRenderer &renderer)
 
static ShapeRef createShared (GraphRenderer &renderer)
 
static ShapeRef createShared (GraphRenderer &renderer)
 
static ShapeRef createShared (ShaderState &st, GLUniformSyncPMVMat4f &pmvMatU, GLUniformVec4f &color)
 
static ShapeRef createShared (ShaderState &st, GraphRenderer &renderer)
 

Additional Inherited Members

- Protected Member Functions inherited from Shape
void resetSpatial () noexcept
 

Detailed Description

Examples
PrimitivesCobraMK3.cpp.

Definition at line 560 of file PrimitivesCobraMK3.cpp.

Constructor & Destructor Documentation

◆ Ship()

Ship::Ship ( Shape::Private ,
GraphRenderer & renderer )
inline
Examples
PrimitivesCobraMK3.cpp.

Definition at line 566 of file PrimitivesCobraMK3.cpp.

Member Function Documentation

◆ createShared()

static ShipRef Ship::createShared ( GraphRenderer & renderer)
inlinestatic
Examples
PrimitivesCobraMK3.cpp.

Definition at line 570 of file PrimitivesCobraMK3.cpp.

◆ destroy()

void Ship::destroy ( GL & gl)
inlineoverridevirtual

Reimplemented from Shape.

Examples
PrimitivesCobraMK3.cpp.

Definition at line 574 of file PrimitivesCobraMK3.cpp.

◆ clear()

void Ship::clear ( GL & gl)
inlineoverridevirtual

Reimplemented from Shape.

Examples
PrimitivesCobraMK3.cpp.

Definition at line 577 of file PrimitivesCobraMK3.cpp.

◆ setOriginZRotation()

void Ship::setOriginZRotation ( float v)
inlinenoexcept

Set z-axis rotation offset of movement orientation.

Examples
PrimitivesCobraMK3.cpp.

Definition at line 583 of file PrimitivesCobraMK3.cpp.

◆ reset()

void Ship::reset ( )
inlinenoexcept
Examples
PrimitivesCobraMK3.cpp.

Definition at line 585 of file PrimitivesCobraMK3.cpp.

◆ getDir()

Vec3f Ship::getDir ( ) const
inlinenoexcept
Examples
PrimitivesCobraMK3.cpp.

Definition at line 590 of file PrimitivesCobraMK3.cpp.

Here is the caller graph for this function:

◆ velo()

Vec3f Ship::velo ( ) const
inlinenoexcept
Examples
PrimitivesCobraMK3.cpp.

Definition at line 595 of file PrimitivesCobraMK3.cpp.

Here is the caller graph for this function:

◆ setVelo()

void Ship::setVelo ( float v)
inlinenoexcept
Examples
PrimitivesCobraMK3.cpp.

Definition at line 596 of file PrimitivesCobraMK3.cpp.

◆ addVelo()

void Ship::addVelo ( float v)
inlinenoexcept
Examples
PrimitivesCobraMK3.cpp.

Definition at line 597 of file PrimitivesCobraMK3.cpp.

◆ tick()

void Ship::tick ( float dt)
inlineoverridevirtual

Reimplemented from Shape.

Examples
PrimitivesCobraMK3.cpp.

Definition at line 598 of file PrimitivesCobraMK3.cpp.


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