CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

clip2d.h File Reference

#include "csutil/scf.h"
#include "csgeom/vector2.h"
#include "csgeom/box.h"

Go to the source code of this file.

Classes

struct  csVertexStatus
 The clipper can output additional information about each vertex in output polygon. More...
struct  iClipper2D
 This interfaces represents a 2D clipper for polygons. More...

Clipper return codes

The clipper routines return one of CS_CLIP_OUTSIDE, CS_CLIP_INSIDE, CS_CLIP_CLIPPED so that we can distinguish between the cases when input polygon is completely outside the clipping polygon (thus it is not visible), completely inside the clipping polygon (thus it has not changed) and partially outside, partially inside (thus it was clipped).

#define CS_CLIP_OUTSIDE   0
 The input polygon is completely outside of clipper polygon.
#define CS_CLIP_INSIDE   1
 The input polygon is completely inside (thus has not changed).
#define CS_CLIP_CLIPPED   2
 The input polygon was partially inside, partially outside.

Additional vertex informations

#define CS_VERTEX_ORIGINAL   0
 The output vertex is one of the input vertices.
#define CS_VERTEX_ONEDGE   1
 The output vertex is located on one of the edges of the original polygon.
#define CS_VERTEX_INSIDE   2
 The output vertex is located somewhere inside the original polygon.

Defines

#define MAX_OUTPUT_VERTICES   64
 Maximal number of vertices in output (clipped) polygons.


Detailed Description

Definition in file clip2d.h.


Generated for Crystal Space by doxygen 1.3.9.1