Changeset 3395 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Feb 6, 2005, 1:12:06 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/debug.h
r3365 r3395 1 /* 2 orxonox - the future of 3D-vertical-scrollers 3 4 Copyright (C) 2004 orx 5 6 This program is free software; you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 2, or (at your option) 9 any later version. 10 11 ### File Specific: 12 main-programmer: Benjamin Grauer 13 co-programmer: ... 14 */ 15 16 /*! 17 \file debug.h 18 \brief Handles output to console for different Verbose-Modes. 19 */ 20 1 21 #ifndef _DEBUG_H 2 22 #define _DEBUG_H 3 23 24 #define NO 0 25 #define ERROR 1 26 #define WARNING 2 27 #define INFORMATION 3 28 #define DEBUGING 4 29 30 #include <stdio.h> 4 31 5 32 /////////////////////////////////////////////////// … … 12 39 PRINTF ## x 13 40 14 #if DEBUG >= 141 #if DEBUG >= ERROR 15 42 #define PRINTF1 \ 16 if (verbose >= 1) \43 if (verbose >= ERROR) \ 17 44 printf("%s:%d::", __FILE__, __LINE__) && printf 18 45 #else 19 #define PRINTF1 //46 #define PRINTF1 if (NO) 20 47 #endif 21 48 22 #if DEBUG >= 249 #if DEBUG >= WARNING 23 50 #define PRINTF2 \ 24 if (verbose >= 2) \51 if (verbose >= WARNING) \ 25 52 printf("%s:%d::", __FILE__, __LINE__) && printf 26 53 27 54 #else 28 #define PRINTF2 //55 #define PRINTF2 if (NO) 29 56 #endif 30 57 31 #if DEBUG >= 358 #if DEBUG >= INFORMATION 32 59 #define PRINTF3 \ 33 if (verbose >= 3) \60 if (verbose >= INFORMATION) \ 34 61 printf("%s:%d::", __FILE__, __LINE__) && printf 35 62 #else 36 #define PRINTF3 //63 #define PRINTF3 if (NO) 37 64 #endif 38 65 39 #if DEBUG >= 466 #if DEBUG >= DEBUGING 40 67 #define PRINTF4 \ 41 if (verbose >= 4) \68 if (verbose >= DEBUGING) \ 42 69 printf("%s:%d::", __FILE__, __LINE__) && printf 43 70 #else 44 #define PRINTF4 //71 #define PRINTF4 if (NO) 45 72 #endif 46 73 47 74 48 75 #else 49 #define PRINTF(x) //76 #define PRINTF(x) if (NO) 50 77 #endif 51 78 … … 54 81 55 82 56 57 58 83 /////////////////////////////////////////////////// 59 84 /// PRINT: just prints output as is /// 60 85 /////////////////////////////////////////////////// 86 #ifdef DEBUG 87 extern int verbose; 88 #define PRINT(x) \ 89 PRINT ## x 61 90 62 #ifdef DEBUG 63 #define PRINT(x) \ 64 PRINT ## x 91 #if DEBUG >= ERROR 92 #define PRINT1 \ 93 if (verbose >= ERROR) \ 94 printf 95 #else 96 #define PRINT1 if (NO) 97 #endif 65 98 66 #if DEBUG >= 1 67 #define PRINT1 \ 68 if (verbose >= 1 ) \ 69 printf 70 #else 71 #define PRINT1 // 72 #endif 73 74 #if DEBUG >= 2 99 #if DEBUG >= WARNING 75 100 #define PRINT2 \ 76 if (verbose >= 2) \77 101 if (verbose >= WARNING) \ 102 printf 78 103 79 104 #else 80 #define PRINT2 //105 #define PRINT2 if (NO) 81 106 #endif 82 83 #if DEBUG >= 3107 108 #if DEBUG >= INFORMATION 84 109 #define PRINT3 \ 85 if (verbose >= 3) \86 87 #else 88 #define PRINT3 //110 if (verbose >= INFORMATION) \ 111 printf 112 #else 113 #define PRINT3 if (NO) 89 114 #endif 90 91 #if DEBUG >= 4115 116 #if DEBUG >= DEBUGING 92 117 #define PRINT4 \ 93 if (verbose >= 4) \94 118 if (verbose >= DEBUGING) \ 119 printf 95 120 #else 96 #define PRINT4 //121 #define PRINT4 if (NO) 97 122 #endif 98 99 123 124 100 125 #else 101 #define PRINT(x) //126 #define PRINT(x) if (NO) 102 127 #endif 103 128 104 129 #define PRINT0 \ 105 printf 106 130 printf 107 131 108 132 /////////////////////////////////////////////////// … … 118 142 cout 119 143 #else 120 #define COUT1 //144 #define COUT1 if (NO) cout 121 145 #endif 122 146 … … 127 151 128 152 #else 129 #define COUT2 //153 #define COUT2 if (NO) cout 130 154 #endif 131 155 … … 135 159 cout 136 160 #else 137 #define COUT3 //161 #define COUT3 if (NO) cout 138 162 #endif 139 163 … … 143 167 cout 144 168 #else 145 #define COUT4 //169 #define COUT4 if (NO) cout 146 170 #endif 147 171 148 172 149 173 #else 150 #define COUT(x) //174 #define COUT(x) if (NO) cout 151 175 #endif 152 176 -
orxonox/trunk/src/importer/model.h
r3365 r3395 12 12 #include "material.h" 13 13 #include "vector.h" 14 #include <fstream>15 14 16 15 using namespace std; … … 88 87 float scaleFactor; //!< The Factor with which the Model should be scaled. \todo maybe one wants to scale the Model after Initialisation 89 88 90 char* objPath; //!< The Path wher the obj and mtl-file are located.89 char* objPath; //!< The Path where the obj and mtl-file are located. 91 90 char* objFileName; //!< The Name of the obj-file. 92 91 char* mtlFileName; //!< The Name of the mtl-file (parsed out of the obj-file)
Note: See TracChangeset
for help on using the changeset viewer.