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

Removed const from drawmodes

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