Commit e251d0c0 authored by Jan Möbius's avatar Jan Möbius
Browse files

Changed draw mode definitions to extern

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@10916 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 68c1e378
......@@ -65,6 +65,67 @@ namespace SceneGraph {
namespace DrawModes {
// == Default Draw Mode intitialization ======================================
DrawMode NONE = ModeFlagSet(0);
DrawMode const DEFAULT = ModeFlagSet(1);
DrawMode const POINTS = ModeFlagSet(1) << 1;
DrawMode const POINTS_COLORED = ModeFlagSet(1) << 2;
DrawMode const POINTS_SHADED = ModeFlagSet(1) << 3;
DrawMode const EDGES = ModeFlagSet(1) << 4;
DrawMode const EDGES_COLORED = ModeFlagSet(1) << 5;
DrawMode const WIREFRAME = ModeFlagSet(1) << 6;
DrawMode const FACES = ModeFlagSet(1) << 7;
DrawMode const HIDDENLINE = ModeFlagSet(1) << 8;
DrawMode const SOLID_FLAT_SHADED = ModeFlagSet(1) << 9;
DrawMode const SOLID_SMOOTH_SHADED = ModeFlagSet(1) << 10;
DrawMode const SOLID_PHONG_SHADED = ModeFlagSet(1) << 11;
DrawMode const SOLID_FACES_COLORED = ModeFlagSet(1) << 12;
DrawMode const SOLID_POINTS_COLORED = ModeFlagSet(1) << 13;
DrawMode const SOLID_ENV_MAPPED = ModeFlagSet(1) << 14;
DrawMode const SOLID_TEXTURED = ModeFlagSet(1) << 15;
DrawMode const SOLID_TEXTURED_SHADED = ModeFlagSet(1) << 16;
DrawMode const SOLID_1DTEXTURED = ModeFlagSet(1) << 17;
DrawMode const SOLID_1DTEXTURED_SHADED = ModeFlagSet(1) << 18;
DrawMode const SOLID_3DTEXTURED = ModeFlagSet(1) << 19;
DrawMode const SOLID_3DTEXTURED_SHADED = ModeFlagSet(1) << 20;
DrawMode const SOLID_FACES_COLORED_FLAT_SHADED = ModeFlagSet(1) << 21;
DrawMode const SOLID_2DTEXTURED_FACE = ModeFlagSet(1) << 22;
DrawMode const SOLID_2DTEXTURED_FACE_SHADED = ModeFlagSet(1) << 23;
DrawMode const SOLID_SHADER = ModeFlagSet(1) << 24;
//======================================================================
// Face Based Rendering Modes
//======================================================================
// draw cells
DrawMode const CELLS = ModeFlagSet(1) << 25;
/// draw cells with colors (without shading)
DrawMode const CELLS_COLORED = ModeFlagSet(1) << 26;
//======================================================================
// Halfedge Based Rendering Modes
//======================================================================
/// draw halfedges
DrawMode const HALFEDGES = ModeFlagSet(1) << 27;
/// draw halfedges with colors (without shading)
DrawMode const HALFEDGES_COLORED = ModeFlagSet(1) << 28;
/// marks the last used ID
DrawMode const UNUSED = ModeFlagSet(1) << 29;
//== IMPLEMENTATION ==========================================================
......
......@@ -176,96 +176,96 @@ namespace DrawModes {
/// not a valid draw mode
DrawMode const NONE = ModeFlagSet(0);
extern DrawMode NONE;
/// use the default (global) draw mode and not the node's own.
DrawMode const DEFAULT = ModeFlagSet(1);
extern DrawMode const DEFAULT;
//======================================================================
// Point Based Rendering Modes
//======================================================================
/// draw unlighted points using the default base color
DrawMode const POINTS = ModeFlagSet(1) << 1;
extern DrawMode const POINTS;
/// draw colored, but not lighted points (requires point colors)
DrawMode const POINTS_COLORED = ModeFlagSet(1) << 2;
extern DrawMode const POINTS_COLORED;
/// draw shaded points (requires point normals)
DrawMode const POINTS_SHADED = ModeFlagSet(1) << 3;
extern DrawMode const POINTS_SHADED;
//======================================================================
// Edge Based Rendering Modes
//======================================================================
/// draw edges
DrawMode const EDGES = ModeFlagSet(1) << 4;
extern DrawMode const EDGES;
/// draw edges with colors (without shading)
DrawMode const EDGES_COLORED = ModeFlagSet(1) << 5;
extern DrawMode const EDGES_COLORED;
/// draw wireframe
DrawMode const WIREFRAME = ModeFlagSet(1) << 6;
extern DrawMode const WIREFRAME;
//======================================================================
// Face Based Rendering Modes
//======================================================================
// draw faces
DrawMode const FACES = ModeFlagSet(1) << 7;
extern DrawMode const FACES;
/// draw hidden line (2 rendering passes needed)
DrawMode const HIDDENLINE = ModeFlagSet(1) << 8;
extern DrawMode const HIDDENLINE;
/// draw flat shaded faces (requires face normals)
DrawMode const SOLID_FLAT_SHADED = ModeFlagSet(1) << 9;
extern DrawMode const SOLID_FLAT_SHADED;
/// draw smooth shaded (Gouraud shaded) faces (requires halfedge normals)
DrawMode const SOLID_SMOOTH_SHADED = ModeFlagSet(1) << 10;
extern DrawMode const SOLID_SMOOTH_SHADED;
/// draw phong shaded faces
DrawMode const SOLID_PHONG_SHADED = ModeFlagSet(1) << 11;
extern DrawMode const SOLID_PHONG_SHADED;
/// draw colored, but not lighted faces using face colors
DrawMode const SOLID_FACES_COLORED = ModeFlagSet(1) << 12;
extern DrawMode const SOLID_FACES_COLORED;
/// draw faces, but use Gouraud shading to interpolate vertex colors
DrawMode const SOLID_POINTS_COLORED = ModeFlagSet(1) << 13;
extern DrawMode const SOLID_POINTS_COLORED;
/// draw environment mapped
DrawMode const SOLID_ENV_MAPPED = ModeFlagSet(1) << 14;
extern DrawMode const SOLID_ENV_MAPPED;
/// draw textured faces
DrawMode const SOLID_TEXTURED = ModeFlagSet(1) << 15;
extern DrawMode const SOLID_TEXTURED;
/// draw smooth shaded textured faces
DrawMode const SOLID_TEXTURED_SHADED = ModeFlagSet(1) << 16;
extern DrawMode const SOLID_TEXTURED_SHADED;
/// draw textured faces
DrawMode const SOLID_1DTEXTURED = ModeFlagSet(1) << 17;
extern DrawMode const SOLID_1DTEXTURED;
/// draw smooth shaded textured faces
DrawMode const SOLID_1DTEXTURED_SHADED = ModeFlagSet(1) << 18;
extern DrawMode const SOLID_1DTEXTURED_SHADED;
/// draw textured faces
DrawMode const SOLID_3DTEXTURED = ModeFlagSet(1) << 19;
extern DrawMode const SOLID_3DTEXTURED;
/// draw smooth shaded textured faces
DrawMode const SOLID_3DTEXTURED_SHADED = ModeFlagSet(1) << 20;
extern DrawMode const SOLID_3DTEXTURED_SHADED;
/// draw flat shaded and colored faces (requires face normals and colors)
DrawMode const SOLID_FACES_COLORED_FLAT_SHADED = ModeFlagSet(1) << 21;
extern DrawMode const SOLID_FACES_COLORED_FLAT_SHADED;
/// draw per halfedge textured faces
DrawMode const SOLID_2DTEXTURED_FACE = ModeFlagSet(1) << 22;
extern DrawMode const SOLID_2DTEXTURED_FACE;
/// draw per halfedge textured faces
DrawMode const SOLID_2DTEXTURED_FACE_SHADED = ModeFlagSet(1) << 23;
extern DrawMode const SOLID_2DTEXTURED_FACE_SHADED;
/// drawing is controlled by shaders
/// ( Use shadernodes to set them before the actual object to render)
DrawMode const SOLID_SHADER = ModeFlagSet(1) << 24;
extern DrawMode const SOLID_SHADER;
//======================================================================
// Face Based Rendering Modes
//======================================================================
// draw cells
DrawMode const CELLS = ModeFlagSet(1) << 25;
extern DrawMode const CELLS;
/// draw cells with colors (without shading)
DrawMode const CELLS_COLORED = ModeFlagSet(1) << 26;
extern DrawMode const CELLS_COLORED;
//======================================================================
// Halfedge Based Rendering Modes
//======================================================================
/// draw halfedges
DrawMode const HALFEDGES = ModeFlagSet(1) << 27;
extern DrawMode const HALFEDGES;
/// draw halfedges with colors (without shading)
DrawMode const HALFEDGES_COLORED = ModeFlagSet(1) << 28;
extern DrawMode const HALFEDGES_COLORED;
/// marks the last used ID
DrawMode const UNUSED = ModeFlagSet(1) << 29;
extern DrawMode const UNUSED;
//=======================================================================
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment