#include <portal.h>
Public Methods | |
PORTAL () | |
~PORTAL () | |
int | Compare (const PORTAL &Portal) |
int | GetMyPosition () const |
void | SetMyPosition (int newPosition) |
VECTOR | GetNormal () |
void | SetNormal () |
Public Attributes | |
int | linkPosition |
BSP_node * | frontleaf |
BSP_node * | backleaf |
int | PortalId |
int | PartitionNodeId |
unsigned int | numVertices |
unsigned int | Texture |
float | Scale [2] |
float | Shift [2] |
float | Rotate |
VERTEX * | Vertex |
|
Definition at line 22 of file portal.cpp.
00023 { 00024 } |
|
Definition at line 26 of file portal.cpp.
00027 { 00028 } |
|
Definition at line 30 of file portal.cpp. References bigger, linkPosition, same, and smaller.
00031 { 00032 if (linkPosition < Portal.linkPosition) 00033 return smaller; 00034 if (linkPosition > Portal.linkPosition) 00035 return bigger; 00036 else 00037 return same; 00038 } |
|
Definition at line 20 of file portal.h. References linkPosition.
00020 {return linkPosition;} |
|
Definition at line 40 of file portal.cpp. References VERTEX::coords, Vertex, VECTOR::x, VECTOR::y, and VECTOR::z.
|
|
Definition at line 21 of file portal.h. References linkPosition.
00021 {linkPosition = newPosition;} |
|
Definition at line 53 of file portal.cpp. References VERTEX::coords, VERTEX::normal, Vertex, VECTOR::x, VECTOR::y, and VECTOR::z. Referenced by CreateLargePortal().
00054 { 00055 VECTOR u; 00056 VECTOR v; 00057 u = Vertex[1].coords - Vertex[0].coords; 00058 v = Vertex[2].coords - Vertex[0].coords; 00059 Vertex[0].normal.x = (u.y*v.z)-(v.y*u.z); 00060 Vertex[0].normal.y = (u.z*v.x)-(v.z*u.x); 00061 Vertex[0].normal.z = (u.x*v.y)-(v.x*u.y); 00062 Vertex[1].normal = Vertex[0].normal; 00063 Vertex[2].normal = Vertex[0].normal; 00064 } |
|
Definition at line 28 of file portal.h. Referenced by CheckForSinglePortals(), ClipPortalToBackLeaf(), FindVisibleLeaves(), InvertPortals(), and RemoveExtraPortals(). |
|
Definition at line 27 of file portal.h. Referenced by CheckForSinglePortals(), ClipPortalToFrontLeaf(), and InvertPortals(). |
|
Definition at line 22 of file portal.h. Referenced by AddPortal(), Compare(), GetMyPosition(), MakePortalList(), and SetMyPosition(). |
|
Definition at line 31 of file portal.h. Referenced by ClassifyInvertedPortal(), ClassifyPortal(), ClipPortalToBackLeaf(), ClipPortalToFrontLeaf(), CopyPortal(), CreateLargePortal(), FindVisibleLeaves(), InvertPortal(), and SplitPortal(). |
|
Definition at line 30 of file portal.h. Referenced by MakePortalList(). |
|
Definition at line 29 of file portal.h. Referenced by CheckForSinglePortals(), and MakePortalList(). |
|
|
|
|
|
|
|
|
|
Definition at line 36 of file portal.h. Referenced by CalculatePVS(), ClassifyInvertedPortal(), ClassifyPortal(), ClipPortalToBackLeaf(), ClipPortalToFrontLeaf(), CopyPortal(), CreateLargePortal(), DeleteBSP(), FindTruePortals(), FindVisibleLeaves(), GetNormal(), InvertPortal(), InvertPortals(), MakePortalList(), SetNormal(), SplitPortal(), and WndProc(). |