Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Render.h File Reference
#include <vector>
Include dependency graph for Render.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  SDashedLine
 

Namespaces

namespace  SimRender
 

Functions

void SimRender::ConstructLineOnGround (const CSimContext &context, const std::vector< float > &xz, SOverlayLine &overlay, bool floating, float heightOffset=0.25f)
 Constructs overlay line from given points, conforming to terrain. More...
 
void SimRender::ConstructCircleOnGround (const CSimContext &context, float x, float z, float radius, SOverlayLine &overlay, bool floating, float heightOffset=0.25f)
 Constructs overlay line as a circle with given center and radius, conforming to terrain. More...
 
void SimRender::ConstructClosedArcOnGround (const CSimContext &context, float x, float z, float radius, float start, float end, SOverlayLine &overlay, bool floating, float heightOffset=0.25f)
 Constructs overlay line as an outlined circle sector (an arc with straight lines between the endpoints and the circle's center), conforming to terrain. More...
 
void SimRender::ConstructSquareOnGround (const CSimContext &context, float x, float z, float w, float h, float a, SOverlayLine &overlay, bool floating, float heightOffset=0.25f)
 Constructs overlay line as rectangle with given center and dimensions, conforming to terrain. More...
 
void SimRender::ConstructBoxOutline (const CBoundingBoxOriented &box, SOverlayLine &overlayLine)
 Constructs a solid outline of an arbitrarily-aligned bounding box. More...
 
void SimRender::ConstructBoxOutline (const CBoundingBoxAligned &box, SOverlayLine &overlayLine)
 Constructs a solid outline of an axis-aligned bounding box. More...
 
void SimRender::ConstructGimbal (const CVector3D &center, float radius, SOverlayLine &out, size_t numSteps=16)
 Constructs a simple gimbal outline with the given radius and center. More...
 
void SimRender::ConstructAxesMarker (const CMatrix3D &coordSystem, SOverlayLine &outX, SOverlayLine &outY, SOverlayLine &outZ)
 Constructs 3D axis marker overlay lines for the given coordinate system. More...
 
void SimRender::SmoothPointsAverage (std::vector< CVector2D > &points, bool closed)
 Updates the given points so each point is averaged with its neighbours, resulting in a somewhat smoother curve, assuming the points are roughly equally spaced. More...
 
void SimRender::InterpolatePointsRNS (std::vector< CVector2D > &points, bool closed, float offset, int segmentSamples=4)
 Updates the given points to include intermediate points interpolating between the original control points, using a rounded nonuniform spline. More...
 
void SimRender::ConstructDashedLine (const std::vector< CVector2D > &linePoints, SDashedLine &dashedLineOut, const float dashLength, const float blankLength)
 Creates a dashed line from the given line, dash length, and blank space between. More...
 
void SimRender::SubdividePoints (std::vector< CVector2D > &points, float maxSegmentLength, bool closed)
 Subdivides a list of points into segments of maximum length maxSegmentLength that are of equal size between every two control points. More...
 
void SimRender::ConstructTexturedLineBox (SOverlayTexturedLine &overlay, const CVector2D &origin, const CFixedVector3D &rotation, const float sizeX, const float sizeZ)
 Sets the coordinates of a rectangular textured overlay, for example used by selection rings of structures. More...
 
void SimRender::ConstructTexturedLineCircle (SOverlayTexturedLine &overlay, const CVector2D &origin, const float overlay_radius)
 Sets the coordinates of a circular textured overlay, for example by selection rings of units or attack range visualization. More...