#include "../renderer/qgl.h"
#include "util_list.h"
#include "util_str.h"
#include "math_vector.h"
Include dependency graph for splines.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| class | idCameraDef |
| class | idCameraEvent |
| class | idCameraFOV |
| class | idCameraPosition |
| class | idFixedPosition |
| class | idInterpolatedPosition |
| class | idPointListInterface |
| class | idSplineList |
| class | idSplinePosition |
| struct | idVelocity |
Typedefs | |
| typedef int | fileHandle_t |
Functions | |
| void | glBox (idVec3_t &color, idVec3_t &point, float size) |
| void | glLabeledPoint (idVec3_t &color, idVec3_t &point, float size, const char *label) |
Variables | |
| vec4_t | blue (0, 0, 1, 1) |
| idCameraDef * | g_splineList |
| bool | g_splineMode |
| vec4_t | red (1, 0, 0, 1) |
|
|
|
|
||||||||||||||||
|
Definition at line 69 of file splines.cpp. References point, qglBegin, qglColor3fv, qglEnd, and qglVertex3f. Referenced by idSplineList::draw(), and idPointListInterface::drawSelection(). 00069 {
00070 idVec3_t mins(point);
00071 idVec3_t maxs(point);
00072 mins[0] -= size;
00073 mins[1] += size;
00074 mins[2] -= size;
00075 maxs[0] += size;
00076 maxs[1] -= size;
00077 maxs[2] += size;
00078 qglColor3fv(color);
00079 qglBegin(GL_LINE_LOOP);
00080 qglVertex3f(mins[0],mins[1],mins[2]);
00081 qglVertex3f(maxs[0],mins[1],mins[2]);
00082 qglVertex3f(maxs[0],maxs[1],mins[2]);
00083 qglVertex3f(mins[0],maxs[1],mins[2]);
00084 qglEnd();
00085 qglBegin(GL_LINE_LOOP);
00086 qglVertex3f(mins[0],mins[1],maxs[2]);
00087 qglVertex3f(maxs[0],mins[1],maxs[2]);
00088 qglVertex3f(maxs[0],maxs[1],maxs[2]);
00089 qglVertex3f(mins[0],maxs[1],maxs[2]);
00090 qglEnd();
00091
00092 qglBegin(GL_LINES);
00093 qglVertex3f(mins[0],mins[1],mins[2]);
00094 qglVertex3f(mins[0],mins[1],maxs[2]);
00095 qglVertex3f(mins[0],maxs[1],maxs[2]);
00096 qglVertex3f(mins[0],maxs[1],mins[2]);
00097 qglVertex3f(maxs[0],mins[1],mins[2]);
00098 qglVertex3f(maxs[0],mins[1],maxs[2]);
00099 qglVertex3f(maxs[0],maxs[1],maxs[2]);
00100 qglVertex3f(maxs[0],maxs[1],mins[2]);
00101 qglEnd();
00102
00103 }
|
|
||||||||||||||||||||
|
Definition at line 54 of file splines.cpp. References point, qglBegin, qglCallLists, qglColor3fv, qglEnd, qglPointSize, qglRasterPos3fv, qglVertex3fv, strlen(), v, idVec3_t::x, idVec3_t::y, and idVec3_t::z. Referenced by idInterpolatedPosition::draw(), and idFixedPosition::draw(). 00054 {
00055 qglColor3fv(color);
00056 qglPointSize(size);
00057 qglBegin(GL_POINTS);
00058 qglVertex3fv(point);
00059 qglEnd();
00060 idVec3_t v = point;
00061 v.x += 1;
00062 v.y += 1;
00063 v.z += 1;
00064 qglRasterPos3fv (v);
00065 qglCallLists (strlen(label), GL_UNSIGNED_BYTE, label);
00066 }
|
Here is the call graph for this function:

|
|
|
|
|
Definition at line 50 of file splines.cpp. |
|
|
|
|
|
Referenced by idPointListInterface::drawSelection(). |
1.3.9.1