CrystalSpace

Public API Reference

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

clip2d.h File Reference

#include "csutil/scf_interface.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).

enum  { CS_CLIP_OUTSIDE = 0, CS_CLIP_INSIDE = 1, CS_CLIP_CLIPPED = 2 }

Additional vertex informations

enum  { CS_VERTEX_ORIGINAL = 0, CS_VERTEX_ONEDGE = 1, CS_VERTEX_INSIDE = 2 }

Defines

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


Detailed Description

Definition in file clip2d.h.


Enumeration Type Documentation

anonymous enum
 

Enumerator:
CS_CLIP_OUTSIDE  The input polygon is completely outside of clipper polygon.
CS_CLIP_INSIDE  The input polygon is completely inside (thus has not changed).
CS_CLIP_CLIPPED  The input polygon was partially inside, partially outside.

Definition at line 45 of file clip2d.h.

anonymous enum
 

Enumerator:
CS_VERTEX_ORIGINAL  The output vertex is one of the input vertices.
CS_VERTEX_ONEDGE  The output vertex is located on one of the edges of the original polygon.
CS_VERTEX_INSIDE  The output vertex is located somewhere inside the original polygon.

Definition at line 77 of file clip2d.h.


Generated for Crystal Space by doxygen 1.4.4