#include <Tube.h>
Inherits OpenGLObject.
Inheritance diagram for Tube:
Public Member Functions | |
Tube (int resolution, float radius, float height, float innerRadius=0.0f) | |
virtual | ~Tube () |
Private Member Functions | |
bool | createFlatTube (int resolution, float radius, float height) |
void | setVertData (int index, float tu, float tv, float nx, float ny, float nz, float vx, float vy, float vz) |
Private Attributes | |
Vertex * | m_pTubeVertices |
Author: Petter Alstermark, petter@alstermark.com
Definition at line 14 of file Tube.h.
|
Author: Petter Alstermark, petter@alstermark.com Definition at line 9 of file Tube.cpp. References createFlatTube(), LOG_ERROR, LOG_SUCCESS, and m_pTubeVertices. Here is the call graph for this function: |
|
Definition at line 85 of file Tube.cpp. References m_pTubeVertices. |
|
Vertex v = m_pTubeVertices[0]; setVertData(index++, v.tu, v.tv, v.nx, v.ny, v.nz, v.vx, v.vy, v.vz); v = m_pTubeVertices[1]; setVertData(index++, v.tu, v.tv, v.nx, v.ny, v.nz, v.vx, v.vy, v.vz); Definition at line 25 of file Tube.cpp. References Object::addFormat(), ATT_FLOAT, ATT_NORMAL, ATT_TEX, ATT_VERTEX, m_pTubeVertices, PRIM_TRIANGLE_STRIP, Object::setPrimitive(), setVertData(), Object::setVertices(), and TWOPI. Referenced by Tube(). Here is the call graph for this function: |
|
Definition at line 71 of file Tube.cpp. References m_pTubeVertices. Referenced by createFlatTube(). |
|
Definition at line 26 of file Tube.h. Referenced by createFlatTube(), setVertData(), Tube(), and ~Tube(). |