#include <polygon.h>
Public Methods | |
Polygon (Mesh *p, RV_Poly *d) | |
Polygon (Mesh *, FILE *, bool is_IM, bool is_Instance) | |
Polygon (Mesh *, Polygon *) | |
void | setTransparency (rvulong) |
void | setSurface (rvlong) |
void | turnInvisible (void) |
bool | isInvisible (void) |
void | setNoColl (void) |
bool | isNoColl (void) |
int | numverts (void) |
void | setTEColor (rvulong) |
void | write (FILE *, bool is_IM, bool is_Instance) |
int | detTEPart (void) |
void | shiftVIndices (rvushort) |
bool | isInTexture (rvshort page, rvfloat ulo, rvfloat uhi, rvfloat vlo, rvfloat vhi) |
int | vertidx (int) |
Public Attributes | |
Mesh* | parent |
rvlong | surface |
rvlong | ncp_type |
EnvMapType | envmap |
RVColor | env_color |
RV_Poly | data |
rvfloat | lower_coll |
Private Methods | |
bool | teheur_BlueWall (void) |
bool | teheur_Lamp (void) |
bool | teheur_Floor (void) |
bool | teheur_Floor2 (void) |
bool | teheur_RWall (void) |
bool | teheur_Box (void) |
bool | teheur_CarImage (void) |
bool | teheur_Pipe (void) |
bool | teheur_BCeil (void) |
bool | teheur_BRail (void) |
Friends | |
class | PolygonModifier |
|
|
|
|
|
ctor. creates an exact copy. Only difference is the parent pointer. |
|
obsolete |
|
|
|
|
|
|
|
number of vertices for this polygon
|
|
|
|
sets the surface type for the polygon |
|
|
|
sets the transparency for the whole polygon, and sets the bits for alpha-channel based transparency If argument is 255, disables transparency and clears the transparency-bits |
|
|
|
hack: heuristic to detect whether the poly belongs to the lego part "bridge ceiling". Simply calls isInTexture(). For internal use only. |
|
hack: heuristic to detect whether the poly belongs to the lego part "bridge railing". Simply calls isInTexture(). For internal use only. |
|
hack: heuristic to detect whether the poly belongs to the lego part "blue wall". Simply calls isInTexture(). For internal use only. |
|
hack: heuristic to detect whether the poly belongs to the lego part "box pile". Simply calls isInTexture(). For internal use only. |
|
hack: heuristic to detect whether the poly belongs to the lego part "car images". Simply calls isInTexture(). For internal use only. |
|
hack: heuristic to detect whether the poly belongs to the lego part "green floor". Simply calls isInTexture(). For internal use only. |
|
hack: heuristic to detect whether the poly belongs to the lego part "outside floor". Simply calls isInTexture(). For internal use only. |
|
hack: heuristic to detect whether the poly belongs to the lego part "ceiling lamps". Simply calls isInTexture(). For internal use only. |
|
hack: heuristic to detect whether the poly belongs to the lego part "pipe end". Simply calls isInTexture(). For internal use only. |
|
hack: heuristic to detect whether the poly belongs to the lego part "room wall". Simply calls isInTexture(). For internal use only. |
|
|
|
returns the vertex index indicated by the argument. advantage is that it "wraps over": For a triangle, vertidx(0), vertidx(3) and vertidx(-3) return all the same |
|
|
|
|
|
|
|
|
|
|
|
lower collision data, if this is a vertical axis-aligned quad poly |
|
extra bits to include in the .ncp file |
|
|
|
surface type as written to the .ncp file, or |